feat: enhance screen recorder with merge functionality and duration tracking; refactor: update swaync configuration with new power menu buttons and toggle actions; fix: remove desktop cache option since it screwed up my app history; refactor: update swaync styling with new button variables and border styles;
25 lines
421 B
Bash
Executable File
25 lines
421 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mode=$(echo -e "\n⏻\n" | rofi \
|
|
-modes drun,run,calc \
|
|
-dmenu -p "Power menu" \
|
|
-theme "$HOME/.config/rofi/styles/style-powermenu.rasi" \
|
|
-markup-rows \
|
|
-drun-use-desktop-cache \
|
|
)
|
|
|
|
case "$mode" in
|
|
"")
|
|
systemctl suspend
|
|
;;
|
|
"⏻")
|
|
systemctl poweroff
|
|
;;
|
|
"")
|
|
systemctl reboot
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|