Waybar and Wodi

This commit is contained in:
OdiousImp2604
2021-01-24 13:47:49 +00:00
committed by GitHub
parent 02d4a89da6
commit c4b69bf43e
16 changed files with 845 additions and 115 deletions

View 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)'" }'

View File

@@ -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)

View File

@@ -0,0 +1,7 @@
#!/bin/bash
if pgrep river; then
wlogout -p layer-shell
else
nwgbar -o 0.4
fi