diff options
Diffstat (limited to '')
| -rwxr-xr-x | dist/bar.sh (renamed from dist/dwl/bar.sh) | 0 | ||||
| -rwxr-xr-x | dist/dwm/bar.sh | 29 | ||||
| -rwxr-xr-x | dist/dwm/power.sh | 12 | ||||
| -rwxr-xr-x | dist/run.sh (renamed from dist/dwl/run.sh) | 0 |
4 files changed, 0 insertions, 41 deletions
diff --git a/dist/dwl/bar.sh b/dist/bar.sh index 2b23972..2b23972 100755 --- a/dist/dwl/bar.sh +++ b/dist/bar.sh diff --git a/dist/dwm/bar.sh b/dist/dwm/bar.sh deleted file mode 100755 index dbc76e5..0000000 --- a/dist/dwm/bar.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -battery() { - capacity="$(cat /sys/class/power_supply/BAT1/capacity)" - case "$(cat /sys/class/power_supply/BAT1/status)" in - Charging) printf " $capacity +";; - Discharging) printf " $capacity -";; - Full) printf " $capacity";; - esac -} - -wlan() { - case "$(cat /sys/class/net/wl*/operstate 2>/dev/null)" in - up) echo " $(iwgetid -r)";; - down) printf " Disconnected";; - esac -} - -clock() { - printf " $(date '+%H:%M')" -} - -user() { - printf "$(whoami)" -} - -while(true) do - xsetroot -name "| $(battery) | $(wlan) | $(clock) | $(user) " && sleep 2 -done diff --git a/dist/dwm/power.sh b/dist/dwm/power.sh deleted file mode 100755 index 318c7cf..0000000 --- a/dist/dwm/power.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash -chosen=$(printf " Power Off\n Restart\n Suspend\n Hibernate\n Log Out\n Lock" | rofi -dmenu -i -p "Choice:") - -case "$chosen" in - " Power Off") poweroff ;; - " Restart") reboot ;; - " Suspend") systemctl suspend-then-hibernate ;; - " Hibernate") systemctl hibernate ;; - " Log Out") killall dwm ;; - " Lock") betterlockscreen -l ;; - *) exit 1 ;; -esac diff --git a/dist/dwl/run.sh b/dist/run.sh index dc13e69..dc13e69 100755 --- a/dist/dwl/run.sh +++ b/dist/run.sh |
