diff options
| author | 2026-04-17 10:54:05 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:54:05 +0100 | |
| commit | 3bc5f9676e0f5886eba1c22eddf4ad6157e66026 (patch) | |
| tree | 9f172306f1dfbec42a51b5a9386cf3a2e4416a70 | |
| parent | e8a510cc0d0a44823d27346308c8ec65380fe052 (diff) | |
| download | dotfiles-3bc5f9676e0f5886eba1c22eddf4ad6157e66026.tar.gz dotfiles-3bc5f9676e0f5886eba1c22eddf4ad6157e66026.tar.bz2 dotfiles-3bc5f9676e0f5886eba1c22eddf4ad6157e66026.zip | |
fix: fuzzel width and default display mode
fuzzel width is in characters, not pixels — 600 was absurdly wide.
Changed default display mode to laptop-off when external connected.
Cycle order: laptop-off → side-by-side → mirror → laptop-off.
| -rw-r--r-- | home/.config/fuzzel/fuzzel.ini | 2 | ||||
| -rwxr-xr-x | home/.config/sway/display-toggle.sh | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/home/.config/fuzzel/fuzzel.ini b/home/.config/fuzzel/fuzzel.ini index 164ce7d..36830df 100644 --- a/home/.config/fuzzel/fuzzel.ini +++ b/home/.config/fuzzel/fuzzel.ini @@ -1,6 +1,6 @@ [main] font=mono:size=8 -width=600 +width=60 lines=15 [colors] diff --git a/home/.config/sway/display-toggle.sh b/home/.config/sway/display-toggle.sh index c2d2447..24569fc 100755 --- a/home/.config/sway/display-toggle.sh +++ b/home/.config/sway/display-toggle.sh @@ -23,15 +23,15 @@ fi LAPTOP_WIDTH=$(swaymsg -t get_outputs -r | jq -r ".[] | select(.name == \"$LAPTOP\") | .current_mode.width") [ -z "$LAPTOP_WIDTH" ] && LAPTOP_WIDTH=1920 -# On init, go straight to mirror; otherwise cycle +# On init, go straight to laptop-off; otherwise cycle if [ "$1" = "init" ]; then - NEXT="mirror" + NEXT="laptop-off" else - CURRENT=$(cat "$STATE_FILE" 2>/dev/null || echo "mirror") + CURRENT=$(cat "$STATE_FILE" 2>/dev/null || echo "laptop-off") case "$CURRENT" in - mirror) NEXT="laptop-off" ;; laptop-off) NEXT="side-by-side" ;; - *) NEXT="mirror" ;; + side-by-side) NEXT="mirror" ;; + *) NEXT="laptop-off" ;; esac fi |
