From 3056e3a4b77ce96c8921d9a80a76ab568c09c69e Mon Sep 17 00:00:00 2001 From: urosm Date: Thu, 8 Feb 2024 15:40:20 +0100 Subject: [PATCH] update scripts --- .local/bin/status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/status.sh b/.local/bin/status.sh index 716e663..56c1355 100755 --- a/.local/bin/status.sh +++ b/.local/bin/status.sh @@ -6,10 +6,10 @@ while true do printf [ swaymsg -t get_inputs | jq -Mcj '[.[] | select(.type=="keyboard")][0] | {"full_text":.xkb_active_layout_name,"urgent":.xkb_active_layout_index}, ","' - makoctl list | jq -Mcj '.data[] | if length>0 then {"full_text":([length, .[0].summary.data] | join(": ")),"urgent":(.[0].urgency.data == 2)}, "," else "" end' cat /sys/class/power_supply/BAT0/capacity | jq -Mcj 'if .<20 then {"full_text":.,"urgent":true} else {"full_text":.} end, ","' date +%c | jq -RMcj '{"full_text":.}, ","' swaymsg -t get_tree | jq -Mcj '.nodes[] | select(.name=="__i3").nodes[] | select(.name=="__i3_scratch").floating_nodes | {"full_text":length,"urgent":length}, ","' + makoctl list | jq -Mcj '.data[] | if length>0 then {"full_text":([length, .[0].summary.data] | join(": ")),"urgent":(.[0].urgency.data == 2)}, "," else "" end' printf ], timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null done