dotfiles/.config/sway/modes/screenshot

24 lines
1.1 KiB
Plaintext
Executable File

set $mode_screenshot "<span foreground='$color10'></span> \
<span foreground='$color5'><b>Pick</b></span> <span foreground='$color10'>(<b>p</b>)</span> \
<span foreground='$color5'><b>Output</b></span> <span foreground='$color10'>(<b>o</b>)</span> \
<span foreground='$color7'>+ <span foreground='$color10'><b>Shift</b></span> for </span> \
<span foreground='$color7'>+ <span foreground='$color10'><b>Ctrl</b></span> for </span>"
mode --pango_markup $mode_screenshot {
# output = currently active output
$bindsym o mode "default", exec $screenshot_screen_clipboard
$bindsym Shift+o mode "default", exec $screenshot_screen_file
$bindsym Shift+Ctrl+o mode "default", exec $screenshot_screen_upload
# pick the region to screenshot
$bindsym p mode "default", exec $screenshot_selection_clipboard
$bindsym Shift+p mode "default", exec $screenshot_selection_file
$bindsym Shift+Ctrl+p mode "default", exec $screenshot_selection_upload
# Return to default mode.
$bindsym Escape mode "default"
}
## Launch // Screenshot Mode ##
$bindsym Print mode $mode_screenshot