From 14705eb80b5509787c2012dbdbd3861714c7fb43 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 28 Jan 2026 09:46:04 -0800 Subject: Use fit option for swaybg --- home/nipsy/common/optional/desktops/sway/config | 2 +- home/nipsy/common/optional/desktops/sway/swaybg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'home') diff --git a/home/nipsy/common/optional/desktops/sway/config b/home/nipsy/common/optional/desktops/sway/config index 6924877..804c61e 100644 --- a/home/nipsy/common/optional/desktops/sway/config +++ b/home/nipsy/common/optional/desktops/sway/config @@ -21,7 +21,7 @@ set $menu wmenu-run ### Output configuration # # Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/) -output * mode 2560x1440@143.972Hz adaptive_sync on allow_tearing yes bg ~/bg/StarWarsRetro-BrentCheshire.jpg center +output * mode 2560x1440@143.972Hz adaptive_sync on allow_tearing yes bg ~/bg/StarWarsRetro-BrentCheshire.jpg fit # # Example configuration: # diff --git a/home/nipsy/common/optional/desktops/sway/swaybg b/home/nipsy/common/optional/desktops/sway/swaybg index ae1a41e..71b3634 100755 --- a/home/nipsy/common/optional/desktops/sway/swaybg +++ b/home/nipsy/common/optional/desktops/sway/swaybg @@ -38,7 +38,7 @@ while true; do bg=(~/bg/**/*(.)) # select and set our new background at random based on the array length - swaymsg -s ${SWAYSOCK} output '*' bg ${bg[$((RANDOM % $#bg + 1))]} fill + swaymsg -s ${SWAYSOCK} output '*' bg ${bg[$((RANDOM % $#bg + 1))]} fit done -- cgit v1.2.3