diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2026-02-14 13:36:52 +0000 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2026-02-14 13:36:52 +0000 |
| commit | cd82f9c945182d55b4bd10bccb6d7e0ad83d6627 (patch) | |
| tree | ae0722582bfb60763a658acf2270b26c30e33ad9 | |
| parent | fcb8f1581338349094ad3a2f4e109488760dcde9 (diff) | |
Added -r to sort to reverse the screen layout status fields so the left screen is on the left of the layout statusHEADmaster
| -rwxr-xr-x | .config/waybar/scripts/layout.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/waybar/scripts/layout.sh b/.config/waybar/scripts/layout.sh index 997d837..f7c7691 100755 --- a/.config/waybar/scripts/layout.sh +++ b/.config/waybar/scripts/layout.sh @@ -8,7 +8,7 @@ case $1 in mmsg -d switch_layout ;; *) - text=$(mmsg -g | grep " layout" | sort -t: -k2,2nr | awk '{ print $3 }' FS=' ') + text=$(mmsg -g | grep " layout" | sort -t: -k2,2nr -r | awk '{ print $3 }' FS=' ') echo "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}" ;; esac |
