feat: reserved screen space keybind and pinning windows for watching shows in the background;
refactor: waybar adjustments; refactor: swaync idle inhibitor now handles idle state correctly; feat: rmpc config
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
{
|
||||
"label": "",
|
||||
"type": "toggle",
|
||||
"command": "[[ $SWAYNC_TOGGLE_STATE == true ]] && ( systemd-inhibit --why='User request via swaync' --what=sleep:handle-lid-switch sh -c 'echo \"$$\" > \"$XDG_RUNTIME_DIR/swaync-idle.pid\"; while true; do sleep 3600; done' ) || kill $(<\"$XDG_RUNTIME_DIR/swaync-idle.pid\")",
|
||||
"command": "[[ $SWAYNC_TOGGLE_STATE == true ]] && ( systemd-inhibit --why='User request via swaync' --what=sleep:handle-lid-switch:idle sh -c 'echo \"$$\" > \"$XDG_RUNTIME_DIR/swaync-idle.pid\"; while true; do sleep 3600; done' ) || kill $(<\"$XDG_RUNTIME_DIR/swaync-idle.pid\")",
|
||||
"update-command": "kill -0 $(<\"$XDG_RUNTIME_DIR/swaync-idle.pid\") && echo true || echo false"
|
||||
}
|
||||
]
|
||||
@@ -170,15 +170,15 @@
|
||||
"actions": [
|
||||
{
|
||||
"label": "Razgonnnn",
|
||||
"command": "powerprofilesctl set performance"
|
||||
"command": "notify-send -t 2000 ' Power-Profile Performance' && powerprofilesctl set performance"
|
||||
},
|
||||
{
|
||||
"label": "Balanced",
|
||||
"command": "powerprofilesctl set balanced"
|
||||
"command": "notify-send -t 2000 'Power-Profile Balanced' && powerprofilesctl set balanced"
|
||||
},
|
||||
{
|
||||
"label": "Survival",
|
||||
"command": "powerprofilesctl set power-saver"
|
||||
"command": "notify-send -t 2000 'Power-Profile Power-saver' && powerprofilesctl set power-saver"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
1
swaync/scripts/idle_inhibit_check.sh
Executable file
1
swaync/scripts/idle_inhibit_check.sh
Executable file
@@ -0,0 +1 @@
|
||||
pgrep hypridle && echo false || echo true
|
||||
10
swaync/scripts/idle_inhibit_toggle.sh
Executable file
10
swaync/scripts/idle_inhibit_toggle.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
kill -0 $(<\"$XDG_RUNTIME_DIR/swaync-idle.pid\") && echo true || echo false
|
||||
if [ $1 == "on" ]; then
|
||||
pkill hypridle
|
||||
systemd-inhibit --why='User request via swaync' --what=sleep:handle-lid-switch sh -c 'echo \"$$\" > \"$XDG_RUNTIME_DIR/swaync-idle.pid\"; while true; do sleep 3600; done'
|
||||
elif [ $2 == "off" ]; then
|
||||
hypridle & disown
|
||||
kill $(<\"$XDG_RUNTIME_DIR/swaync-idle.pid\")
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user