From a104edcc9aa7dbc0801ce4a329725b32a609620c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 3 Jan 2022 14:45:37 +0100 Subject: sway: improve support with swaylock --- config/sway/config | 4 ++-- config/swayidle/config | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 config/swayidle/config (limited to 'config') diff --git a/config/sway/config b/config/sway/config index cf0a671..f27e89d 100644 --- a/config/sway/config +++ b/config/sway/config @@ -215,7 +215,6 @@ for_window [ title="Music player daemon client" ] move position center # Set IM to scratchpad for_window [class="Ferdi"] move scratchpad -for_window [class="Rambox"] move scratchpad for_window [class="Signal"] move scratchpad # On-screen keyboard Florence for_window [class="Florence"] floating enable @@ -224,8 +223,9 @@ for_window [class="Florence"] floating enable # Start various applications # Start daemons +exec --no-startup-id swayidle exec --no-startup-id kanshi -#exec --no-startup-id ibus-daemon -drx +exec --no-startup-id ibus-daemon -drx exec --no-startup-id dunst # Set background exec --no-startup-id i3background diff --git a/config/swayidle/config b/config/swayidle/config new file mode 100644 index 0000000..c344033 --- /dev/null +++ b/config/swayidle/config @@ -0,0 +1,7 @@ +timeout 301 'swaymsg output "*" dpms off' resume 'swaymsg output "*" dpms on' + +timeout 300 'myswaylock' +lock 'myswaylock' +before-sleep 'myswaylock' + +unlock 'killall swaylock' -- cgit v1.2.3