update smol stuff

This commit is contained in:
Marco Thomas
2022-05-27 21:37:49 +02:00
parent 30c9f007ab
commit 7d84b4ffe0
3 changed files with 7 additions and 6 deletions

View File

@@ -3,12 +3,13 @@
date=$(date +'%A, %d. %b %R')
battery=$(cat /sys/class/power_supply/BAT1/capacity)
if [ ${battery} -lt 8 ]; then
notify-send "Battery" "Critical Battery State!\n ${battery}% remaining!"
fi
if [ $(cat /sys/class/power_supply/BAT1/status) = 'Discharging' ]; then
bat_rem="▼"
if [ ${battery} -lt 6 ]; then
notify-send -i battery "Battery" "Critical Battery State!\n ${battery}% remaining!"
fi
else
bat_rem="⯅"
fi

View File

@@ -178,8 +178,8 @@ input type:keyboard {
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
for_window [class="discord"] move container to workspace number $ws3
for_window [class="Spotify"] move container to workspace number $ws4
assign [app_id="org.keepassxc.KeePassXC"] $ws9
assign [app_id="geary"] $ws8
for_window [app_id="geary"] move container to workspace number $ws8
for_window [app_id="org.keepassxc.KeepassXC"] move container to workspace number $ws9
# Status Bar
# man 5 sway-bar