diff options
author | Karel Kočí <cynerd@email.cz> | 2022-01-03 14:45:37 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-01-03 14:45:37 +0100 |
commit | a104edcc9aa7dbc0801ce4a329725b32a609620c (patch) | |
tree | 25645bbcecbee8ebae7a78bc2703e84fc87a2b5c | |
parent | a9cedcceca62f5ab93befcdef226196d76ac1981 (diff) | |
download | myconfigs-a104edcc9aa7dbc0801ce4a329725b32a609620c.tar.gz myconfigs-a104edcc9aa7dbc0801ce4a329725b32a609620c.tar.bz2 myconfigs-a104edcc9aa7dbc0801ce4a329725b32a609620c.zip |
sway: improve support with swaylock
-rw-r--r-- | config/sway/config | 4 | ||||
-rw-r--r-- | config/swayidle/config | 7 | ||||
-rwxr-xr-x | install | 1 |
3 files changed, 10 insertions, 2 deletions
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' @@ -98,6 +98,7 @@ if ask "wayland" "Install Wayland (sway)"; then inst Xresources ~/.Xdefaults # X resources for wayland session inst config/sway/ ~/.config/sway inst config/swaylock/ ~/.config/swaylock + inst config/swayidle/ ~/.config/swayidle fi if ask "alacritty" "Install configurations for terminal emulator"; then |