summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2020-03-03 22:20:58 +0000
committerUrbain Vaes <urbain@vaes.uk>2020-03-03 22:20:58 +0000
commit981d8a9f49dea9c6435c97b6948c50995ad40258 (patch)
treee7e1394505fcee3d8c5533b677c0370423481297 /bin
parentebe9521c37b97959df974f8adeb4c7bfed0a527a (diff)
Fix workspace script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/.local/bin/workspace4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/.local/bin/workspace b/bin/.local/bin/workspace
index 4f2ab67..b3fdfaa 100755
--- a/bin/.local/bin/workspace
+++ b/bin/.local/bin/workspace
@@ -1,13 +1,13 @@
#!/usr/bin/env bash
-# List of workspaces: (id, number, name)
+# List of workspaces: ( number, name, focused)
workspaces=$(i3-msg -t get_workspaces | awk 'BEGIN {
RS="(},{)|(\\[{)|(}\\])";
FPAT="([^,:\"]+)|([^,\"]+:[^,\"]+)|([^,]+{[^}]+})"
}
$0 !~ "^\\s*$" {
gsub(/"/, "", $4)
- print $4, $6
+ print $4, $6, $10
}' | sort)