1
0
Fork 0

cleanup jq, sway config

This commit is contained in:
Massaki Archambault 2019-04-04 17:44:39 -04:00
parent ad20551289
commit 943b189141
3 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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)'

View File

@ -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