suicide
This commit is contained in:
parent
a901c85eb3
commit
c022b6eeb6
4 changed files with 74 additions and 29 deletions
|
|
@ -1,14 +1,18 @@
|
||||||
font=Monospace 10
|
font=Departure Mono 10
|
||||||
|
default-timeout=5000
|
||||||
|
|
||||||
[urgency=low]
|
[urgency=low]
|
||||||
background-color=#121218
|
background-color=#000000
|
||||||
text-color=#e0e0e0
|
text-color=#ffffff
|
||||||
border-color=#646496
|
border-color=#ffffff
|
||||||
|
|
||||||
[urgency=normal]
|
[urgency=normal]
|
||||||
background-color=#121218
|
background-color=#000000
|
||||||
text-color=#e0e0e0
|
text-color=#ffffff
|
||||||
border-color=#646496
|
border-color=#ffffff
|
||||||
|
|
||||||
[urgency=high]
|
[urgency=high]
|
||||||
text-color=#CB4B16
|
background-color=#000000
|
||||||
|
text-color=#ff0000
|
||||||
|
border-color=#ff0000
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
|
|
||||||
"modules-left": ["sway/workspaces", "custom/sway-layout"],
|
"modules-left": ["sway/workspaces", "custom/sway-layout", "sway/window"],
|
||||||
"modules-center": ["sway/window"],
|
"modules-center": [],
|
||||||
"modules-right": ["custom/dwmstatus"],
|
"modules-right": ["custom/dwmstatus"],
|
||||||
|
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"sway/window": {
|
"sway/window": {
|
||||||
"max-length": 80,
|
"format": " | {title}",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,20 +3,32 @@
|
||||||
cpu() {
|
cpu() {
|
||||||
awk '/^cpu / {
|
awk '/^cpu / {
|
||||||
usage = ($2 + $4) * 100 / ($2 + $4 + $5)
|
usage = ($2 + $4) * 100 / ($2 + $4 + $5)
|
||||||
printf "CPU: %.1f%%", usage
|
printf "%.1f%%", usage
|
||||||
}' /proc/stat
|
}' /proc/stat
|
||||||
}
|
}
|
||||||
|
|
||||||
mem() {
|
mem() {
|
||||||
free | awk '/Mem:/ {
|
free | awk '/Mem:/ {
|
||||||
used = $3 / $2 * 100
|
used = $3 / $2 * 100
|
||||||
printf "MEM: %.1f%%", used
|
printf "%.1f%%", used
|
||||||
}'
|
}'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
localip() {
|
||||||
|
sb-network
|
||||||
|
}
|
||||||
|
|
||||||
|
vol() {
|
||||||
|
sb-volume
|
||||||
|
}
|
||||||
|
|
||||||
|
charging() {
|
||||||
|
bat-symbol
|
||||||
|
}
|
||||||
|
|
||||||
get_time() {
|
get_time() {
|
||||||
date '+%I:%M-%p'
|
date '+%I:%M-%p'
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "$(cpu) | $(mem) | $(get_time)"
|
echo "[$(vol)] [$(cpu)] [$(mem)] $(charging) [$(get_time)]"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
|
||||||
background: #000000;
|
background: #000000;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
@ -14,6 +13,7 @@ window#waybar {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Workspaces */
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
background: #000000;
|
background: #000000;
|
||||||
color: #888888;
|
color: #888888;
|
||||||
|
|
@ -21,23 +21,52 @@ window#waybar {
|
||||||
margin: 0 1px;
|
margin: 0 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: #000000;
|
||||||
|
color: #888888;
|
||||||
|
padding: 0 4px;
|
||||||
|
margin: 0 1px;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
transition-duration: 0s;
|
||||||
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
font-weight: bold;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
transition-duration: 0s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout icon */
|
||||||
#sway-layout {
|
#sway-layout {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* WINDOW TITLE with distinct background */
|
||||||
#sway-window {
|
#sway-window {
|
||||||
font-style: italic;
|
background-color: #222222;
|
||||||
color: #cccccc;
|
color: #ffffff;
|
||||||
|
padding: 2px 8px;
|
||||||
|
margin: 0 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Filler pushes the window title toward the right modules */
|
||||||
|
#custom-filler {
|
||||||
|
background: transparent;
|
||||||
|
color: transparent;
|
||||||
|
min-width: 800px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* DWM-style right status bar */
|
||||||
#custom-dwmstatus {
|
#custom-dwmstatus {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue