.local/bin: update
parent
6293d9075d
commit
8863f1de5f
|
@ -36,16 +36,18 @@ while true; do
|
||||||
# scratchpad
|
# scratchpad
|
||||||
swaymsg -t get_tree | jq -Mcj '.nodes[] | select(.name=="__i3").nodes[] |
|
swaymsg -t get_tree | jq -Mcj '.nodes[] | select(.name=="__i3").nodes[] |
|
||||||
select(.name=="__i3_scratch").floating_nodes |
|
select(.name=="__i3_scratch").floating_nodes |
|
||||||
{
|
{
|
||||||
"full_text":length,
|
"full_text":length,
|
||||||
"urgent":length,
|
"urgent":length,
|
||||||
}, ","'
|
}, ","'
|
||||||
# notifications
|
# notifications
|
||||||
makoctl list | jq -Mcj '.data[][0] |
|
makoctl list | jq -Mcj '.data[] |
|
||||||
{
|
if length>0 then {
|
||||||
"full_text":.summary.data,
|
"full_text":(["(",length,") ",.[0].summary.data]|join("")),
|
||||||
"urgent":(.urgency.data==2),
|
"urgent":(.[0].urgency.data==2),
|
||||||
}, ","'
|
} else {
|
||||||
|
"full_text":(["(",length,")"]|join("")),
|
||||||
|
} end, ","'
|
||||||
printf "],"
|
printf "],"
|
||||||
# timeout
|
# timeout
|
||||||
timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null
|
timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null
|
||||||
|
|
Loading…
Reference in New Issue