From 7fba1358b68028ca61bc0ed007ff01b546b51ce2 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 10 Jan 2021 22:17:39 +0000 Subject: [PATCH] Simplify jq usage to format current mode --- Tricks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tricks.md b/Tricks.md index ab77464..0f7a737 100644 --- a/Tricks.md +++ b/Tricks.md @@ -1,6 +1,6 @@ # Get workspace dimensions - swaymsg -t get_outputs | jq -r '.[] | select(.focused) | (.current_mode.width | tostring) + "x" + (.current_mode.height | tostring)' + swaymsg -t get_outputs | jq -r '.. | select(.focused?) | .current_mode | "\(.width)x\(.height)"' # Start a program on a specific workspace