This content originally appeared on DEV Community and was authored by Diego Juliao
Have excellent screenshot shortcuts in your i3wm.
Feature | Shortcut |
---|---|
Full Screen | PrtScrn |
Selection |
Shift + PrtScrn
|
Active Window |
Super + PrtScrn
|
Clipboard Full Screen |
Ctrl + PrtScrn
|
Clipboard Selection |
Ctrl + Shift + PrtScrn
|
Clipboard Active Window |
Ctrl + Super + PrtScrn
|
All the screenshots are saved on
~/Pictures/CURRENT_DATE
.
The keysuper
refers to the modifier key (window/command or alt by default depending on config).
Requirements
- maim
- xclip
Set-up
Set this on your i3 config file ~/.i3/config
.
## Screenshots
bindsym Print exec --no-startup-id maim "/home/$USER/Pictures/$(date)"
bindsym $mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) "/home/$USER/Pictures/$(date)"
bindsym Shift+Print exec --no-startup-id maim --select "/home/$USER/Pictures/$(date)"
## Clipboard Screenshots
bindsym Ctrl+Print exec --no-startup-id maim | xclip -selection clipboard -t image/png
bindsym Ctrl+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png
bindsym Ctrl+Shift+Print exec --no-startup-id maim --select | xclip -selection clipboard -t image/png
You may want to remove the default or any other screenshot shortcuts to prevent errors.
Don't forget to reload your window managersuper
+shift
+c
.
The source of this information is from my gist My i3 shortcuts to take screenshots.
This content originally appeared on DEV Community and was authored by Diego Juliao
Diego Juliao | Sciencx (2022-03-26T20:53:35+00:00) i3wm Screenshot Shortcuts. Retrieved from https://www.scien.cx/2022/03/26/i3wm-screenshot-shortcuts/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.