Change swayidle stuff
This commit is contained in:
13
config/run-swayidle.sh
Executable file
13
config/run-swayidle.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
local config_file
|
||||||
|
case "${HOST}" in
|
||||||
|
*-desktop)
|
||||||
|
config_file='swayidle-desktop.conf'
|
||||||
|
;;
|
||||||
|
*-portable)
|
||||||
|
config_file='swayidle-laptop.conf'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exec swayidle -w -C "${HOME}/.config/river/config/${config_file}"
|
||||||
@ -6,7 +6,7 @@ After=graphical-session.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=exec
|
Type=exec
|
||||||
ExecStart=/usr/bin/swayidle -w -C ${HOME}/.config/river/config/swayidle-%i.conf
|
ExecStart=%h/.config/river/config/run-swayidle.sh
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"custom/swayidle": {
|
"custom/swayidle": {
|
||||||
"exec": "pgrep swayidle >/dev/null 2>&1 || printf ' '",
|
"exec": "systemctl --user --quiet is-active swayidle.service || printf ' '",
|
||||||
"interval": 10,
|
"interval": 10,
|
||||||
"signal": 3,
|
"signal": 3,
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user