.config/sway/modes/screenshot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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 |