From 0ee4a2f862f62c0ee780c2c6094bad6151c3d633 Mon Sep 17 00:00:00 2001 From: foosinn Date: Fri, 8 Oct 2021 00:31:48 +0200 Subject: [PATCH] cleanup wallpaper handling --- dotfiles/sway/config | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dotfiles/sway/config b/dotfiles/sway/config index b52276f..7502785 100644 --- a/dotfiles/sway/config +++ b/dotfiles/sway/config @@ -5,6 +5,8 @@ set $down j set $up k set $right l set $term alacritty +set $wallpaper /home/stefan/Downloads/bg.jpg +set $lock swaylock -t -i $wallpaper --scaling=fill # echo -- bemenu -H 23 -b -p run --{ff,nf}=#eeeeeee --{tf,hf}=#78dce8 --{tb,fb,nb,hb,sb}=#2d2a2e @@ -21,9 +23,7 @@ set $menu bemenu-run -H 23 -b -p run \ input "1:1:AT_Translated_Set_2_keyboard" xkb_layout de -output * bg /home/stefan/Downloads/bg.jpg fill -#output * bg /home/stefan/Sync/wall/nasa-yZygONrUBe8-unsplash.jpg fill -output DP-1 res 5120x1440 +output * bg $wallpaper fill # user keybinds bindsym $mod+Return exec $term @@ -33,7 +33,7 @@ floating_modifier $mod normal bindsym $mod+Shift+c reload bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+p exec keepassxc -bindsym $mod+z exec swaylock -t -i /home/stefan/Downloads/bg.jpg --scaling=fill +bindsym $mod+z exec $lock bindsym $mod+Up exec light -A 5 bindsym $mod+Down exec light -U 5 bindsym Print exec grim -g "$(slurp)" - | wl-copy -t image/png @@ -150,6 +150,7 @@ include /etc/sway/config.d/* exec mako --border-color=#cc6666 \ --background-color=#2d2a2eee exec emacs --daemon +exec swayidle before-sleep "$lock" set $gnome-schema org.gnome.desktop.interface exec_always {