feat: add rofi-based power menu and power mode menu scripts with custom styles;
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;
This commit is contained in:
24
rofi/scripts/dmenu_powermodemenu.sh
Executable file
24
rofi/scripts/dmenu_powermodemenu.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
mode=$(echo -e "\n\n" | rofi \
|
||||
-modes drun,run,calc \
|
||||
-dmenu -p "Power menu" \
|
||||
-theme "$HOME/.config/rofi/styles/style-powermodemenu.rasi" \
|
||||
-markup-rows \
|
||||
-drun-use-desktop-cache \
|
||||
)
|
||||
|
||||
case "$mode" in
|
||||
"")
|
||||
powerprofilesctl set power-saver
|
||||
;;
|
||||
"")
|
||||
powerprofilesctl set balanced
|
||||
;;
|
||||
"")
|
||||
powerprofilesctl set performance
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user