aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/config.d/00-sway.conf10
-rw-r--r--sway/config.d/40-sway-shortcuts.conf2
-rw-r--r--sway/config.d/99-launch.conf2
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"