From 3bc5f9676e0f5886eba1c22eddf4ad6157e66026 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:54:05 +0100 Subject: fix: fuzzel width and default display mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- home/.config/fuzzel/fuzzel.ini | 2 +- 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 -- cgit v1.2.3-70-g09d2