diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-01-04 15:28:58 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-01-04 15:28:58 +0100 |
commit | de14052d51f8fc4b31b3c0cf975651fc3233b88b (patch) | |
tree | 526a76bbe72523e53689d15c9e414b8875839f06 /sway | |
parent | 557312425bdd75342c5f61013b640be3cddaa355 (diff) | |
download | dotfiles-de14052d51f8fc4b31b3c0cf975651fc3233b88b.tar.gz |
sway
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.d/00-sway.conf | 10 | ||||
-rw-r--r-- | sway/config.d/40-sway-shortcuts.conf | 2 | ||||
-rw-r--r-- | sway/config.d/99-launch.conf | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/sway/config.d/00-sway.conf b/sway/config.d/00-sway.conf index 395162a..c5f3063 100644 --- a/sway/config.d/00-sway.conf +++ b/sway/config.d/00-sway.conf @@ -1,4 +1,4 @@ -# vi: ft=i3config +# vi: ft=swayconfig input * { xkb_layout "de" @@ -16,3 +16,11 @@ input "2:10:TPPS/2_ALPS_TrackPoint" { pointer_accel 0.3 scroll_factor 0.2 } + +exec swayidle -w \ + timeout 10 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ + resume 'swaymsg "output * dpms on"' \ + timeout 1800 'swaylock -f' \ + timeout 1805 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock' diff --git a/sway/config.d/40-sway-shortcuts.conf b/sway/config.d/40-sway-shortcuts.conf index 95f8ddc..3901cd2 100644 --- a/sway/config.d/40-sway-shortcuts.conf +++ b/sway/config.d/40-sway-shortcuts.conf @@ -2,5 +2,7 @@ bindsym $mod+Shift+e exec "sh -c 'rofi-exit-menu.sh $(rofi-exit-menu.sh | bemenu)'" +bindsym $mod+Shift+w exec "swaylock --color 000000FF" + bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s +5% bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 5%- diff --git a/sway/config.d/99-launch.conf b/sway/config.d/99-launch.conf index bf7237e..12b6fc7 100644 --- a/sway/config.d/99-launch.conf +++ b/sway/config.d/99-launch.conf @@ -2,5 +2,5 @@ exec --no-startup-id "waybar" exec --no-startup-id "random_background_sway" -exec --no-startup-id "nextcloud" +exec --no-startup-id "sleep 3 && nextcloud" exec --no-startup-id "keepassxc" |