[systemd] revert mako and swayidle to start via sway

This commit is contained in:
Felix Buehler 2020-02-25 21:54:42 +01:00
parent d14503cf00
commit 62be429c6d
4 changed files with 24 additions and 15 deletions

View file

@ -28,6 +28,13 @@ output * bg #0C0C0D solid_color
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec nm-applet --indicator
exec gnome-keyring-daemon --start --components secrets
exec swayidle -w \
timeout 285 'notify-send -a lockscreen -c lock-warn -u critical -t 14900 -i system-lock-screen "Locking Screen" "Will Lock Screen in 15s"' \
timeout 300 '~/.dotfiles/sway/lock.sh' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '~/.dotfiles/sway/lock.sh'
exec mako
exec sleep 2 && QSyncthingTray
exec telegram-desktop -startintray
exec /usr/lib/geoclue-2.0/demos/agent
@ -81,7 +88,7 @@ bindsym $mod+e exec subl3
bindsym $mod+w exec firefox
bindsym $mod+u exec feedreader
# dunst
# mako
bindsym $mod+dead_circumflex exec makoctl dismiss
bindsym $mod+Shift+dead_circumflex exec makoctl dismiss --all
bindsym $mod+grave exec makoctl dismiss

View file

@ -1,7 +1,9 @@
[Unit]
Description=Idle manager for Wayland
Documentation=man:swayidle(1)
PartOf=graphical-session.target
[Install]
WantedBy=graphical-session.target
[Service]
Type=simple
@ -11,6 +13,5 @@ ExecStart=/usr/bin/swayidle -w \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '~/.dotfiles/sway/lock.sh'
[Install]
WantedBy=sway-session.target
RestartSec=5
Restart=always