mirror of
https://github.com/SeriousBug/dotfiles
synced 2024-12-22 02:50:00 -06:00
trying to fix screenshot commands
This commit is contained in:
parent
82dd3a6baf
commit
324e2df4a9
14
sway/config
14
sway/config
|
@ -222,12 +222,18 @@ input "1452:613:Apple_Inc._Magic_Trackpad_2" {
|
||||||
# Screenshots:
|
# Screenshots:
|
||||||
#
|
#
|
||||||
# full screen
|
# 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
|
# 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
|
# 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:
|
# Media controls:
|
||||||
|
|
Loading…
Reference in a new issue