Kieran's opinionated (and probably slightly dumb) nix config
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: only show webcam module if in use

+1 -1
+1 -1
home-manager/waybar.nix
··· 303 303 awk '{print $2 " " $3}' |\ 304 304 # filter out the program path 305 305 awk -F "/" '{print "{\"tooltip\": \"" $1 " " $NF "\"}"}' |\ 306 - jq -s 'if length > 0 then {text: "󰄀 ", tooltip: (map(.tooltip) | join("\r"))} else {text: "󱦿 ", tooltip: "No applications are using your webcam!"} end' |\ 306 + jq -s 'if length > 0 then {text: "󰄀 ", tooltip: (map(.tooltip) | join("\r"))} else {text: "", tooltip: ""} end' |\ 307 307 jq --unbuffered --compact-output 308 308 ''; 309 309 };