Compare commits

...

4 Commits

Author SHA1 Message Date
root ada0604178 (scripts) hopefully fixed fzf search for void linux 2026-06-28 00:15:25 +02:00
root 85c0cd8691 (i3) moved screenshot function to bash script 2026-06-26 10:03:44 +02:00
root 1fdbf50a02 (i3) change background image 2026-06-23 21:25:00 +02:00
scbj 75b7c1f998 added background image 2026-06-23 21:24:14 +02:00
4 changed files with 30 additions and 4 deletions
+3 -3
View File
@@ -168,8 +168,8 @@ bindsym $mod+o move workspace to output up
bindsym $mod+p move workspace to output right
# take screenshots
bindsym $mod+s exec --no-startup-id maim -suo | xclip -selection clipboard -t image/png
bindsym $mod+Shift+s exec --no-startup-id maim -suo "${HOME}/Pictures/screenshots/$(date '+%Y%m%d_%H%M%S').png"
bindsym $mod+s exec --no-startup-id bash x11-screenshot.sh --clipboard
bindsym $mod+Shift+s exec --no-startup-id bash x11-screenshot.sh
# use pactl for media keys
set $refresh_i3status killall -SIGUSR1 i3status
@@ -197,7 +197,7 @@ mouse_warping none
############################
# load background image
exec --no-startup-id feh --bg-fill ~/dotfiles/images/game_scene.jpg
exec --no-startup-id feh --bg-fill ~/dotfiles/images/pixel-windows.png
# window border style
default_border pixel 2
Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

+1 -1
View File
@@ -23,7 +23,7 @@ function __search-history {
READLINE_POINT=$((0 + ${#command}))
}
if [[ "$-" == *i* ]] && which fzf &>/dev/null; then
if [[ "$-" == *i* ]] && $(which fzf &>/dev/null); then
bind -r "\C-r"
bind -x '"\C-r": __search-history'
fi
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
unset use_clipboard
if [[ "$1" == "-c" ]] || [[ "$1" == "--clipboard" ]]; then
use_clipboard="true"
fi
if ! $(which maim &>/dev/null); then
notify-send "[screenshot]" "missing \`maim\`"
exit 1
fi
if [[ -n "${use_clipboard}" ]] && ! $(which xclip &>/dev/null); then
notify-send "[screenshot]" "missing \`xclip\`"
exit 1
fi
if [[ -z "${use_clipboard}" ]]; then
screenshots_path="${HOME}/screenshots"
echo "${screenshots_path}"
if [[ ! -d "${screenshots_path}" ]]; then
mkdir "${screenshots_path}"
fi
maim -suo "${screenshots_path}/$(date '+%Y%m%d_%H%M%S').png"
else
maim -suo | xclip -selection clipboard -t image/png
fi