1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2024-05-19 11:19:04 -05:00

trying to fix screenshot commands

This commit is contained in:
Kaan Barmore-Genç 2022-03-16 03:39:46 -04:00
parent 82dd3a6baf
commit 324e2df4a9

View file

@ -222,12 +222,18 @@ input "1452:613:Apple_Inc._Magic_Trackpad_2" {
# Screenshots:
#
# full screen
bindsym Print exec grim - | swappy -f -
#bindsym Print exec grim - | swappy -f -
bindsym Print exec grim "$HOME/Pictures/Screenshot/$(date +'%Y-%m-%d-%H-%M-%S-%N.png')"
# selected region
bindsym $mod+Shift+Print exec grim -g "$(slurp)" - | swappy -f -
bindsym $mod+Shift+Print exec grim -g "$(slurp)" "$HOME/Pictures/Screenshot/$(date +'%Y-%m-%d-%H-%M-%S-%N.png')"
mode "screenshot" {
# selected window
#bindsym $mod+Print exec grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)" - | swappy -f -
bindsym w exec exec grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)" "$HOME/Pictures/Screenshot/$(date +'%Y-%m-%d-%H-%M-%S-%N.png')"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+c mode "screenshot"
#
# Media controls: