update rotation waybar module to use iio-hyprland

This commit is contained in:
jacekpoz 2024-06-03 21:04:22 +02:00
parent b62e014084
commit 24994cc2e7
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -201,9 +201,9 @@ in {
format = "X {}";
};
"custom/rot" = {
exec = "${pkgs.procps}/bin/pidof rot8 > /dev/null; if [ $? -eq '0' ]; then echo -n '󰿆'; else echo -n '󰌾'; fi";
exec = "${pkgs.procps}/bin/pidof iio-hyprland > /dev/null; if [ $? -eq '0' ]; then echo -n '󰿆'; else echo -n '󰌾'; fi";
interval = 1;
on-click = "${pkgs.procps}/bin/pkill rot8 || rot8 --threshold 0.75 & disown";
on-click = "${pkgs.procps}/bin/pkill iio-hyprland || iio-hyprland & disown";
format = "󰑤 {}";
};
"custom/wvkbd" = {