screenshots

This commit is contained in:
TheK4n 2022-05-19 04:03:13 +03:00
parent f9d1198bd0
commit a0e3533f39
2 changed files with 13 additions and 1 deletions

View File

@ -67,7 +67,7 @@ gpg:
echo -e "default-cache-ttl 1\nmax-cache-ttl 1" > ~/.gnupg/gpg-agent.conf; echo RELOADAGENT | gpg-connect-agent echo -e "default-cache-ttl 1\nmax-cache-ttl 1" > ~/.gnupg/gpg-agent.conf; echo RELOADAGENT | gpg-connect-agent
i3: i3:
echo "sudo pacman -S nitrogen picom compton ttf-font-awesome" echo "sudo pacman -S nitrogen picom compton ttf-font-awesome xdotool xclip maim"
test -d ~/.config/i3 || \ test -d ~/.config/i3 || \
mkdir -p ~/.config/i3 mkdir -p ~/.config/i3
mkdir -p ~/.config/i3status mkdir -p ~/.config/i3status

View File

@ -194,3 +194,15 @@ bindsym $mod+r mode "resize"
bar { bar {
status_command i3status status_command i3status
} }
# Screenshots
bindsym Print exec --no-startup-id maim "$HOME/Pictures/Screenshots/$(date +'%d-%m-%Y-%T').png"
bindsym $mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) "$HOME/Pictures/Screenshots/$(date +'%d-%m-%Y-%T').png"
bindsym Shift+Print exec --no-startup-id maim --select "$HOME/Pictures/Screenshots/$(date +'%d-%m-%Y-%T').png"
## 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