Compare commits
No commits in common. "03815a602f3075093eb9aa0c4981b5ff1054bb16" and "f8f9ba11ecd42dfa66375b3e480a7c95f741e158" have entirely different histories.
03815a602f
...
f8f9ba11ec
2 changed files with 1 additions and 16 deletions
|
|
@ -4,7 +4,6 @@ listopts() {
|
|||
echo "⏼ Shut down"
|
||||
echo "⟲ Reboot"
|
||||
echo "🚪 Log out"
|
||||
echo "💤 Hibernate"
|
||||
}
|
||||
|
||||
option=$(listopts | fuzzel --dmenu)
|
||||
|
|
@ -16,6 +15,4 @@ case "${option}" in
|
|||
systemctl reboot;;
|
||||
"🚪 Log out")
|
||||
swaymsg exit;;
|
||||
"💤 Hibernate")
|
||||
systemctl hibernate;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -7,18 +7,6 @@ else
|
|||
recs="📽${recordings}"
|
||||
fi
|
||||
|
||||
if [ "$(cat /sys/class/leds/input0::capslock/brightness)" = "1" ]; then
|
||||
capslock="𝗔"
|
||||
else
|
||||
capslock="𝗮"
|
||||
fi
|
||||
|
||||
if [ "$(cat /sys/class/leds/input0::numlock/brightness)" = "1" ]; then
|
||||
numlock="🔢"
|
||||
else
|
||||
numlock="⮔"
|
||||
fi
|
||||
|
||||
touchpad=$(swaymsg -t get_inputs | jq -r '[.[] | select(.type == "touchpad")][0] | .libinput.send_events')
|
||||
if [ "${touchpad}" = "enabled" ]; then
|
||||
touchpad_active="✅"
|
||||
|
|
@ -109,4 +97,4 @@ case "${battery_state}" in
|
|||
;;
|
||||
esac
|
||||
|
||||
echo "${numlock}${capslock} ${recs} 🕹️${touchpad_active} 📆${today} ${clock_face}${now} ${mike_symbol}${mike_volume}% ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%"
|
||||
echo "${recs} 🕹️${touchpad_active} 📆${today} ${clock_face}${now} ${mike_symbol}${mike_volume}% ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue