fix: sway scaling, wallpaper, gaps

This commit is contained in:
Tim Schubert 2025-04-13 15:26:18 +02:00
parent cf328ce296
commit eb0b01a17d
No known key found for this signature in database

View file

@ -190,15 +190,16 @@ in
# Note: pass the final command to swaymsg so that the resulting window can be opened # Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on. # on the original workspace that the command was run on.
set $menu fuzzel set $menu fuzzel
set $wallpaper "~/lib/pictures/wallpaper.jpg"
### Idle configuration ### Idle configuration
# #
# Example configuration: # Example configuration:
# #
exec swayidle -w \ exec swayidle -w \
timeout 300 'swaylock -f -c ${background}' \ timeout 300 'swaylock -f -i $wallpaper -s fill' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -c ${background}' before-sleep 'swaylock -f -i $wallpaper -s fill'
# #
# This will lock your screen after 300 seconds of inactivity, then turn off # This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when # your displays after another 300 seconds, and turn your screens back on when
@ -395,6 +396,10 @@ in
} }
} }
# Gaps between multiple tiling windows
gaps inner 10
smart_gaps on
bindsym $mod+grave exec busctl --user call org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow lockAllDatabases && swaylock -c #fdf6e3 bindsym $mod+grave exec busctl --user call org.keepassxc.KeePassXC.MainWindow /keepassxc org.keepassxc.KeePassXC.MainWindow lockAllDatabases && swaylock -c #fdf6e3
# class border backgr. text indicator child_border # class border backgr. text indicator child_border
@ -409,7 +414,7 @@ in
include /etc/sway/config.d/* include /etc/sway/config.d/*
exec sleep 5; systemctl --user restart kanshi.service exec sleep 5; systemctl --user restart kanshi.service
exec sleep 5; output * bg ~/tmp/51761494940_7f9d6ab0e3_o.jpg fill exec sleep 5; swaymsg output '*' bg $wallpaper fill
''; '';
home.file.".config/sway/status".source = ./status; home.file.".config/sway/status".source = ./status;
home.file.".config/kanshi/config".text = '' home.file.".config/kanshi/config".text = ''
@ -420,9 +425,9 @@ in
profile Docked { profile Docked {
output eDP-1 disable output eDP-1 disable
output "LG Electronics LG HDR 4K 0x000354D1" { output "LG Electronics LG HDR 4K 0x000354D1" {
enable enable
scale 1.2 scale 1.4
position 0,0 position 0,0
} }
} }
''; '';