Waybar and Wodi
This commit is contained in:
3
.config/waybar/scripts/mediaplayer.sh
Normal file
3
.config/waybar/scripts/mediaplayer.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo '{"text": "'$(playerctl metadata title)'", "alt": "'$(playerctl status)'", "tooltip": "'$(playerctl metadata --format "{{ playerName }} : {{ artist }} - {{ title }}")'", "class": "'$(playerctl status)'" }'
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
entries="Logout Suspend Reboot Shutdown"
|
||||
|
||||
selected=$(printf '%s\n' $entries | wofi --width 300 --height 150 --show=dmenu --cache-file /dev/null | awk '{print tolower($1)}')
|
||||
selected=$(printf '%s\n' $entries | wofi --width 100 --height 20 --show=dmenu --cache-file /dev/null | awk '{print tolower($1)}')
|
||||
|
||||
case $selected in
|
||||
logout)
|
||||
|
||||
7
.config/waybar/scripts/power.sh
Normal file
7
.config/waybar/scripts/power.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if pgrep river; then
|
||||
wlogout -p layer-shell
|
||||
else
|
||||
nwgbar -o 0.4
|
||||
fi
|
||||
Reference in New Issue
Block a user