Update some scripts and SXHkD config

This commit is contained in:
2024-10-14 00:44:54 +01:00
parent bc3fae6b88
commit de80fa4426
5 changed files with 17 additions and 13 deletions

View File

@@ -104,20 +104,20 @@ Scroll_Lock
# Brightness # Brightness
XF86MonBrightness{Down,Up} XF86MonBrightness{Down,Up}
kill -37 $(pidof dwmblocks); \ xbacklight -{dec,inc} 5; \
xbacklight -{dec,inc} 5; kill -37 $(pidof dwmblocks);
shift + XF86MonBrightness{Down,Up} shift + XF86MonBrightness{Down,Up}
kill -37 $(pidof dwmblocks); \ xbacklight -{dec,inc} 1; \
xbacklight -{dec,inc} 1; kill -37 $(pidof dwmblocks);
super + F{3,4} super + F{3,4}
kill -37 $(pidof dwmblocks); \ xbacklight -{dec,inc} 5; \
xbacklight -{dec,inc} 5; kill -37 $(pidof dwmblocks);
super + shift + F{3,4} super + shift + F{3,4}
kill -37 $(pidof dwmblocks); \ xbacklight -{dec,inc} 1; \
xbacklight -{dec,inc} 1; kill -37 $(pidof dwmblocks);
;; Local Variables: ;; Local Variables:
;; mode: conf ;; mode: conf

View File

@@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
feh --bg-fill --randomize $HOME/Pictures/Backgrounds; # feh --bg-fill --randomize $HOME/Pictures/Backgrounds;
feh --bg-fill $HOME/Pictures/Backgrounds/black.jpg;

View File

@@ -5,7 +5,10 @@ status=$(cat /sys/class/power_supply/BAT0/status)
if [[ $status == "Charging" ]] if [[ $status == "Charging" ]]
then then
status="" echo " $capacity% $time_left"
elif [[ $status == "Not charging" ]]
then
echo " $capacity%"
else else
if [[ $capacity -ge 75 ]] if [[ $capacity -ge 75 ]]
then then
@@ -23,5 +26,5 @@ else
notify-send -u critical "Charge now!" notify-send -u critical "Charge now!"
status="" status=""
fi fi
echo "$status $capacity% $time_left"
fi fi
echo "$status $capacity% $time_left"

View File

@@ -6,5 +6,5 @@ then
con=$(nmcli | grep "connected to" | sed "s/.*: connected to \(.*\)/\1/g") con=$(nmcli | grep "connected to" | sed "s/.*: connected to \(.*\)/\1/g")
echo "" $con echo "" $con
else else
echo " Not Connected" echo ""
fi fi

View File

@@ -1,2 +1,2 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo "⏲ $(date +'%a %d %b %R')" echo "⏲ $(date +'%a %d/%m %R')"