cleanup jq, sway config
This commit is contained in:
parent
ad20551289
commit
943b189141
|
@ -47,10 +47,14 @@ smart_gaps on
|
|||
|
||||
# Floating mod
|
||||
for_window [app_id="pavucontrol"] floating enable
|
||||
for_window [class="Remmina" title="Remmina Remote Desktop Client"] floating enable
|
||||
for_window [class="feh"] floating enable
|
||||
for_window [app_id="org.remmina.Remmina" title="Remmina Remote Desktop Client"] floating enable
|
||||
for_window [class="TeamViewer"] floating enable
|
||||
|
||||
for_window [class="feh" title="Pinned screenshot"] {
|
||||
floating enable
|
||||
sticky enable
|
||||
}
|
||||
|
||||
for_window [window_type="dialog"] floating enable
|
||||
for_window [window_type="utility"] floating enable
|
||||
for_window [window_type="toolbar"] floating enable
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
swaymsg -t get_tree | jq --raw-output '..|if .focused? == true then . else empty end'
|
||||
swaymsg -t get_tree | jq --raw-output '..|select(.focused? == true)'
|
||||
|
|
|
@ -33,7 +33,7 @@ wl-copy < "$file"
|
|||
|
||||
if [[ -n "$ARG_PIN" ]]; then
|
||||
# pin the screenshot
|
||||
feh --geometry "$(echo -n "$geometry" | sed -E 's/([0-9]+),([0-9]+) ([0-9]+)x([0-9]+)/\3x\4+\1+\2/')" "$file" &
|
||||
feh --title "Pinned screenshot" --geometry "$(echo -n "$geometry" | sed -E 's/([0-9]+),([0-9]+) ([0-9]+)x([0-9]+)/\3x\4+\1+\2/')" "$file" &
|
||||
fi
|
||||
|
||||
# print the file name
|
||||
|
|
Loading…
Reference in New Issue