Skip to content

Commit

Permalink
polish(sh): funnier caps lock panic messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Aug 1, 2024
1 parent d724167 commit f50e8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sh-scripts/redo-keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ fi

# if caps lock is on, kill it
if [ "$(xset -q | sed -n 's/^.*Caps Lock:\s*\(\S*\).*$/\1/p')" = "on" ]; then
echo "OH NO CAPS LOCK"
echo "OH NO CAPS LOCK IS ON AAAAAAAA"
xdotool key Caps_Lock
if [ "$(xset -q | sed -n 's/^.*Caps Lock:\s*\(\S*\).*$/\1/p')" = "off" ]; then
echo "OK we turned it off, phew"
else
echo "FUCK!"
echo "씨발!"
notify-send -u critical -t 5000 "Turn off caps lock!"
exit 1
fi
Expand Down

0 comments on commit f50e8a6

Please sign in to comment.