From 6c022fff675dfe4441adbe017b77353ca0805f54 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 16 Jan 2025 14:43:58 +0100 Subject: [PATCH] i3: More robust workspace json parsing Use the name instead of the number as that could be -1. --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index b96b20f..46e3e0f 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -101,7 +101,7 @@ workspace_auto_back_and_forth yes # Switch visible workspaces (e.g. multi monitor setup) bindsym $mod+Tab exec i3-msg workspace "$( \ i3-msg -t get_workspaces | \ - jq '.[] | select(.visible and (.focused | not)).num' | \ + jq -r '.[] | select(.visible and (.focused | not)).name' | \ head -1)" # move focused container to workspace