Screenshot : Fix waybar widget update.
This commit is contained in:
parent
cbf2a48eaf
commit
972513ad66
|
@ -42,7 +42,8 @@ in {
|
||||||
scrTransform="$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .transform')"
|
scrTransform="$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .transform')"
|
||||||
[[ "''${scrTransform}" = "normal" ]] && scrTransform=""
|
[[ "''${scrTransform}" = "normal" ]] && scrTransform=""
|
||||||
|
|
||||||
wf-recorder \
|
pkill -RTMIN+4 waybar \
|
||||||
|
| wf-recorder \
|
||||||
--geometry "''${scrSelection}" \
|
--geometry "''${scrSelection}" \
|
||||||
--codec ${codec} \
|
--codec ${codec} \
|
||||||
--file "''${scrFile}" \
|
--file "''${scrFile}" \
|
||||||
|
@ -67,6 +68,8 @@ in {
|
||||||
"''${scrFile}_" \
|
"''${scrFile}_" \
|
||||||
&& mv "''${scrFile}_" "''${scrFile}" \
|
&& mv "''${scrFile}_" "''${scrFile}" \
|
||||||
|| rm "''${scrFile}_"
|
|| rm "''${scrFile}_"
|
||||||
|
|
||||||
|
pkill -RTMIN+4 waybar
|
||||||
};
|
};
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -77,7 +80,8 @@ in {
|
||||||
scrTransform="$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .transform')"
|
scrTransform="$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .transform')"
|
||||||
[[ "''${scrTransform}" = "normal" ]] && scrTransform=""
|
[[ "''${scrTransform}" = "normal" ]] && scrTransform=""
|
||||||
|
|
||||||
wf-recorder \
|
pkill -RTMIN+4 waybar \
|
||||||
|
| wf-recorder \
|
||||||
-o $(swaymsg -t get_outputs | jq -r ".[] | select(.focused) | .name") - \
|
-o $(swaymsg -t get_outputs | jq -r ".[] | select(.focused) | .name") - \
|
||||||
--codec ${codec} \
|
--codec ${codec} \
|
||||||
--file "''${scrFile}" \
|
--file "''${scrFile}" \
|
||||||
|
@ -102,6 +106,8 @@ in {
|
||||||
"''${scrFile}_" \
|
"''${scrFile}_" \
|
||||||
&& mv "''${scrFile}_" "''${scrFile}" \
|
&& mv "''${scrFile}_" "''${scrFile}" \
|
||||||
|| rm "''${scrFile}_"
|
|| rm "''${scrFile}_"
|
||||||
|
|
||||||
|
pkill -RTMIN+4 waybar
|
||||||
};
|
};
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
|
|
Loading…
Reference in a new issue