proper screenshot/exit ui
This commit is contained in:
parent
602017b3dd
commit
c6be2f0362
|
@ -82,7 +82,7 @@ exec swayidle -w \
|
|||
bindsym $mod+Shift+c reload
|
||||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
# bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
|
@ -222,10 +222,12 @@ mode "$mode_system" {
|
|||
bindsym h exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh hibernate, mode "default"
|
||||
bindsym r exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh reboot, mode "default"
|
||||
bindsym d exec --no-startup-id $XDG_CONFIG_HOME/sway/sway-exit.sh shutdown, mode "default"
|
||||
# back to normal: Enter or Escape
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+Shift+e mode "$mode_system"
|
||||
|
||||
#notification
|
||||
exec mako
|
||||
|
@ -270,15 +272,14 @@ include "$HOME/.cache/wal/colors-sway"
|
|||
output HDMI-A-1 pos 1920 0
|
||||
output eDP-1 pos 0 0
|
||||
|
||||
|
||||
# Screen capture
|
||||
set $screenshot 1 selected, 2 whole, 3 selected clipboard, 4 whole clipboard, 5 swappy
|
||||
# screenshot
|
||||
set $screenshot 1 All, 2 Current, 3 Region, 4 Region (clipboard)
|
||||
mode "$screenshot" {
|
||||
bindsym 1 exec 'grim -g "$(slurp)" ~/Pictures/Screenshots/ps_$(date +"%Y%m%d%H%M%S").png', mode "default"
|
||||
bindsym 2 exec 'grim ~/Pictures/Screenshots/ps_$(date +"%Y%m%d%H%M%S").png', mode "default"
|
||||
bindsym 3 exec 'grim -g "$(slurp)" - | wl-copy', mode "default"
|
||||
bindsym 4 exec 'grim - | wl-copy', mode "default"
|
||||
bindsym 5 exec 'grim -g "$(slurp)" - | swappy -f -', mode "default"
|
||||
|
||||
bindsym 1 exec 'grim $(xdg-user-dir PICTURES)/Screenshots/SS_"$(date)".png', mode "default"
|
||||
bindsym 2 exec 'grim -o $(swaymsg -t get_outputs | jq -r ".[] | select(.focused) | .name") ~/Pictures/Screenshots/SS_"$(date)".png', mode "default"
|
||||
bindsym 3 exec 'grim -g "$(slurp)" $(xdg-user-dir PICTURES)/Screenshots/SS_"$(date)".png', mode "default"
|
||||
bindsym 4 exec 'grim -g "$(slurp)" - | wl-copy', mode "default"
|
||||
|
||||
# back to normal: Enter or Escape
|
||||
bindsym Return mode "default"
|
||||
|
@ -287,5 +288,4 @@ mode "$screenshot" {
|
|||
}
|
||||
|
||||
bindsym $mod+Print mode "$screenshot"
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
|
Loading…
Reference in a new issue