Replace jq with jaq where possible
This commit is contained in:
parent
4fdff06b85
commit
3dc604a559
4 changed files with 6 additions and 6 deletions
|
@ -104,7 +104,7 @@
|
||||||
(box :class "cpu"
|
(box :class "cpu"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 2
|
:spacing 2
|
||||||
:tooltip {jq(EWW_CPU, "reduce .cores[] as $core (\"\"; . + $core.core + \": \" + ($core.usage | tostring) + \"%\\n\") | {tooltip:.}").tooltip}
|
:tooltip {jaq(EWW_CPU, "reduce .cores[] as $core (\"\"; . + $core.core + \": \" + ($core.usage | tostring) + \"%\\n\") | {tooltip:.}").tooltip}
|
||||||
(label :class "icon"
|
(label :class "icon"
|
||||||
:text "")
|
:text "")
|
||||||
(label :text "${round(EWW_CPU.avg, 2)}%")))
|
(label :text "${round(EWW_CPU.avg, 2)}%")))
|
||||||
|
@ -113,7 +113,7 @@
|
||||||
(box :class "temperature"
|
(box :class "temperature"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 2
|
:spacing 2
|
||||||
:tooltip {jq(EWW_TEMPS, ". | to_entries | reduce .[] as $temp (\"\"; . + $temp.key + \": \" + ($temp.value | tostring) + \"\\n\") | {tooltip:.}").tooltip}
|
:tooltip {jaq(EWW_TEMPS, ". | to_entries | reduce .[] as $temp (\"\"; . + $temp.key + \": \" + ($temp.value | tostring) + \"\\n\") | {tooltip:.}").tooltip}
|
||||||
(label :class "icon"
|
(label :class "icon"
|
||||||
:text "")
|
:text "")
|
||||||
(label :text "${round(EWW_TEMPS.ZENPOWER_TDIE, 1)}°C")))
|
(label :text "${round(EWW_TEMPS.ZENPOWER_TDIE, 1)}°C")))
|
||||||
|
|
|
@ -230,8 +230,8 @@ in
|
||||||
|
|
||||||
"${mod}+c" = mkIf config.eboskma.programs.emacs.enable "exec ${config.programs.emacs.package}/bin/emacsclient -c";
|
"${mod}+c" = mkIf config.eboskma.programs.emacs.enable "exec ${config.programs.emacs.package}/bin/emacsclient -c";
|
||||||
|
|
||||||
"${mod}+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq -r '.[] | select(.focused) | .name')";
|
"${mod}+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jaq}/bin/jaq -r '.[] | select(.focused) | .name')";
|
||||||
"${mod}+Shift+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jq}/bin/jq -r '.[] | select(.focused) | .name') - | ${pkgs.wl-clipboard}/bin/wl-copy -t \"image/png\" -f";
|
"${mod}+Shift+Print" = "exec ${pkgs.grim}/bin/grim -o $(${pkgs.sway}/bin/swaymsg -t get_outputs | ${pkgs.jaq}/bin/jaq -r '.[] | select(.focused) | .name') - | ${pkgs.wl-clipboard}/bin/wl-copy -t \"image/png\" -f";
|
||||||
"${mod}+Shift+Ctrl+Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy -t \"image/png\" -f";
|
"${mod}+Shift+Ctrl+Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy -t \"image/png\" -f";
|
||||||
"${mod}+Shift+Alt+Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\"";
|
"${mod}+Shift+Alt+Print" = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\"";
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
"custom/keyboard-layout" = {
|
"custom/keyboard-layout" = {
|
||||||
exec = ''${pkgs.sway}/bin/swaymsg -t get_inputs | ${pkgs.jq}/bin/jq -r '.[] | select(.identifier == "36125:40349:splitkb_Kyria_rev1") | .xkb_active_layout_name' '';
|
exec = ''${pkgs.sway}/bin/swaymsg -t get_inputs | ${pkgs.jaq}/bin/jaq -r '.[] | select(.identifier == "36125:40349:splitkb_Kyria_rev1") | .xkb_active_layout_name' '';
|
||||||
interval = 30;
|
interval = 30;
|
||||||
format = " {}"; # Icon: keyboard
|
format = " {}"; # Icon: keyboard
|
||||||
# Signal sent by Sway key binding (~/.config/sway/key-bindings)
|
# Signal sent by Sway key binding (~/.config/sway/key-bindings)
|
||||||
|
|
|
@ -69,7 +69,7 @@ in
|
||||||
du-dust
|
du-dust
|
||||||
file
|
file
|
||||||
hexyl
|
hexyl
|
||||||
jq
|
jaq
|
||||||
lm_sensors
|
lm_sensors
|
||||||
man-pages
|
man-pages
|
||||||
man-pages-posix
|
man-pages-posix
|
||||||
|
|
Loading…
Reference in a new issue