waybar
This commit is contained in:
32
.scripts/waybar-toggle.sh
Executable file
32
.scripts/waybar-toggle.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/env bash
|
||||||
|
|
||||||
|
function close() {
|
||||||
|
if pgrep -x "waybar" > /dev/null; then
|
||||||
|
killall -q waybar
|
||||||
|
|
||||||
|
# Wait until the processes have been shut down
|
||||||
|
while pgrep -x waybar >/dev/null; do sleep 1; done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function open() {
|
||||||
|
waybar &
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
close
|
||||||
|
open
|
||||||
|
elif [ "$1" = "close" ]; then
|
||||||
|
if ! pgrep -x "waybar" > /dev/null; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
close
|
||||||
|
elif [ "$1" = "open" ]; then
|
||||||
|
if pgrep -x "waybar" > /dev/null; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
open
|
||||||
|
else
|
||||||
|
echo "Usage: $0 [close|open]"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/desktop.jpg?raw=true"/>
|
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/desktop.jpg?raw=true"/>
|
||||||
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/tiling.png?raw=true"/>
|
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/tiling.jpg?raw=true"/>
|
||||||
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/grub.jpg?raw=true"/>
|
<img src="https://github.com/Uyanide/dotfiles/blob/main/.chores/grub.jpg?raw=true"/>
|
||||||
|
|
||||||
## Setup Overview
|
## Setup Overview
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
(defpoll music-art :interval "1s" "Main/scripts/music-art")
|
(defpoll music-art :interval "1s" "Main/scripts/music-art")
|
||||||
(defpoll volume :interval "1s" "Main/scripts/system --vol")
|
(defpoll volume :interval "1s" "Main/scripts/system --vol")
|
||||||
(defpoll brightness :interval "1s" "Main/scripts/system --bri")
|
(defpoll brightness :interval "1s" "Main/scripts/system --bri")
|
||||||
(defpoll fortune :interval "1h" "Main/scripts/fortune.py 32 9")
|
(defpoll fortune :interval "1h" "Main/scripts/fortune-split 32 9")
|
||||||
(deflisten cava "Main/scripts/cava")
|
(deflisten cava "Main/scripts/cava")
|
||||||
(defpoll title :interval "1s" "Main/scripts/music-title --status")
|
(defpoll title :interval "1s" "Main/scripts/music-title --status")
|
||||||
(defpoll artist :interval "1s" "Main/scripts/player --artist")
|
(defpoll artist :interval "1s" "Main/scripts/player --artist")
|
||||||
|
|||||||
@@ -161,4 +161,5 @@ bind = Super+Alt, S, movetoworkspace, special:s
|
|||||||
bind = Super, P, pin
|
bind = Super, P, pin
|
||||||
bind = Alt, Tab, cyclenext
|
bind = Alt, Tab, cyclenext
|
||||||
bind = Super, Tab, hyprexpo:expo, toggle # can be: toggle, select, off/disable or on/enable
|
bind = Super, Tab, hyprexpo:expo, toggle # can be: toggle, select, off/disable or on/enable
|
||||||
bind = Super+Ctrl, T, exec, ~/.scripts/workspace-new.sh
|
bind = Super+Ctrl, T, exec, ~/.scripts/workspace-new.sh # Create new workspace
|
||||||
|
bind = Super+Shift, K, exec, waybar-toggle.sh close || waybar-toggle.sh open # Toggle waybar visibility
|
||||||
|
|||||||
@@ -140,8 +140,8 @@
|
|||||||
"min-length": 20
|
"min-length": 20
|
||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
// "thermal-zone": 1,
|
"interval": 5,
|
||||||
"interval": 4,
|
"thermal-zone": 6,
|
||||||
"hwmon-path": "/sys/class/hwmon/hwmon6/temp1_input",
|
"hwmon-path": "/sys/class/hwmon/hwmon6/temp1_input",
|
||||||
"critical-threshold": 80,
|
"critical-threshold": 80,
|
||||||
// "format-critical": " {temperatureC}°C",
|
// "format-critical": " {temperatureC}°C",
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
"min-length": 7
|
"min-length": 7
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"interval": 30,
|
"interval": 11,
|
||||||
// "format": " {used:0.2f} / {total:0.0f} GB",
|
// "format": " {used:0.2f} / {total:0.0f} GB",
|
||||||
"format": " {percentage}%",
|
"format": " {percentage}%",
|
||||||
"on-click": "killall btop || ghostty -e btop",
|
"on-click": "killall btop || ghostty -e btop",
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
"max-length": 7
|
"max-length": 7
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 1,
|
"interval": 3,
|
||||||
//"format": " {}%", // Icon: microchip
|
//"format": " {}%", // Icon: microchip
|
||||||
"format": " {usage}%",
|
"format": " {usage}%",
|
||||||
"max-length": 7,
|
"max-length": 7,
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
"on-click": "killall btop || ghostty -e btop"
|
"on-click": "killall btop || ghostty -e btop"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"interval": 2,
|
"interval": 30,
|
||||||
"states": {
|
"states": {
|
||||||
"good": 95,
|
"good": 95,
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ button {
|
|||||||
color: #cdd6f4;
|
color: #cdd6f4;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
outline-style: none;
|
outline-style: none;
|
||||||
background-color: #1e1e2e;
|
background-color: alpha(#1e1e2e, 0.8);
|
||||||
border: none;
|
border: none;
|
||||||
border-width: 0px;
|
border-width: 0px;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
@@ -29,9 +29,8 @@ button {
|
|||||||
button:focus,
|
button:focus,
|
||||||
button:active,
|
button:active,
|
||||||
button:hover {
|
button:hover {
|
||||||
/* 20% Overlay 2, 80% mantle */
|
|
||||||
background-color: #313244;
|
|
||||||
background-size: 20%;
|
background-size: 20%;
|
||||||
|
background-color: alpha(#1e1e2e, 0.6);
|
||||||
animation: gradient_f 20s ease-in infinite;
|
animation: gradient_f 20s ease-in infinite;
|
||||||
transition: all 0.3s cubic-bezier(0.55, 0, 0.28, 1.682);
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.28, 1.682);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user