From 34f194a91feb231904511292d27de7e8cf23d019 Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 14 May 2025 13:10:23 +0300 Subject: [PATCH] change screenshots mappings and xdg dirs --- home/user/.config/i3/config | 16 ++++++++-------- home/user/.zshenv | 16 +++++++++------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/home/user/.config/i3/config b/home/user/.config/i3/config index d834506..1924eb8 100644 --- a/home/user/.config/i3/config +++ b/home/user/.config/i3/config @@ -217,15 +217,15 @@ bar { status_command exec ~/.local/bin/i3status_wrapper } -# 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 +bindsym Print exec --no-startup-id maim | xclip -selection clipboard -t image/png +bindsym $mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png +bindsym Ctrl+Print exec --no-startup-id maim --select | xclip -selection clipboard -t image/png + +# Screenshots +bindsym Shift+Print exec --no-startup-id maim "$SCREENSHOTS_DIR/$(date +'%d-%m-%Y-%T').png" +bindsym Shift+$mod+Print exec --no-startup-id maim --window $(xdotool getactivewindow) "$SCREENSHOTS_DIR/$(date +'%d-%m-%Y-%T').png" +bindsym Shift+Ctrl+Print exec --no-startup-id maim --select "$SCREENSHOTS_DIR/$(date +'%d-%m-%Y-%T').png" # default workspaces for monitors in setup diff --git a/home/user/.zshenv b/home/user/.zshenv index fe5756f..76b6ac3 100644 --- a/home/user/.zshenv +++ b/home/user/.zshenv @@ -56,14 +56,16 @@ export GOPATH="${HOME}/.cache/go" export GOBIN="${HOME}/.local/bin" -export XDG_DESKTOP_DIR="${HOME}/desktop" -export XDG_DOCUMENTS_DIR="${HOME}/documents" +export XDG_DESKTOP_DIR="${HOME}/Desktop" +export XDG_DOCUMENTS_DIR="${HOME}/Documents" export XDG_DOWNLOAD_DIR="${HOME}/Downloads" -export XDG_MUSIC_DIR="${HOME}/music" -export XDG_PICTURES_DIR="${HOME}/pictures" -export XDG_PUBLICSHARE_DIR="${HOME}/public" -export XDG_TEMPLATES_DIR="${HOME}/templates" -export XDG_VIDEOS_DIR="${HOME}/videos" +export XDG_MUSIC_DIR="${HOME}/Music" +export XDG_PICTURES_DIR="${HOME}/Pictures" +export XDG_PUBLICSHARE_DIR="${HOME}/Public" +export XDG_TEMPLATES_DIR="${HOME}/Templates" +export XDG_VIDEOS_DIR="${HOME}/Videos" + +export SCREENSHOTS_DIR="${XDG_PICTURES_DIR}/screenshots" _sod() {