diff options
| author | dwalker <dwalker@dwalker.xyz> | 2026-05-02 23:48:10 -0400 |
|---|---|---|
| committer | dwalker <dwalker@dwalker.xyz> | 2026-05-02 23:48:10 -0400 |
| commit | 6eb38265ec4d412953ccc2e9fb653e51a51c2823 (patch) | |
| tree | c894620377c34230280f8554a531f3927650c93c | |
| parent | fe2204d61f3463ad00a3179e60bc5c8c010f5297 (diff) | |
| -rw-r--r-- | .config/i3/config | 2 | ||||
| -rw-r--r-- | .config/i3/wallpaper.txt | 37 | ||||
| -rwxr-xr-x | .script/generate-bindings-wallpaper.sh | 42 |
3 files changed, 80 insertions, 1 deletions
diff --git a/.config/i3/config b/.config/i3/config index 702e5b6..119ec35 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -16,7 +16,7 @@ floating_modifier $mod #for_window [class="^.*"] border pixel 1 # ----- Startup ------------------------------------------------------------------------------------ -exec_always --no-startup-id xwallpaper --stretch ~/.config/wall +exec_always --no-startup-id xwallpaper --center ~/.cache/i3-wallpaper.png exec_always --no-startup-id sh -c 'sleep 10; ~/.script/weather.sh &' exec_always --no-startup-id sh -c 'sleep 10; ~/.script/xbps_update_count.sh &' exec_always --no-startup-id sh -c 'while :; do ~/.script/gpu_usage_nvidia.sh; sleep 5; done' diff --git a/.config/i3/wallpaper.txt b/.config/i3/wallpaper.txt new file mode 100644 index 0000000..fddc9e7 --- /dev/null +++ b/.config/i3/wallpaper.txt @@ -0,0 +1,37 @@ +VOID LINUX + i3 Mod = Super / Windows key +----------------------------------------------------------------------------------------------------- +LAUNCH / SESSION ==================================================================================== + Mod+Enter terminal | Mod+Shift+c reload i3 config + Mod+d app launcher / favorites dmenu | Mod+Shift+r restart i3 + Mod+Shift+q close focused window | Mod+Shift+e exit i3 / end X session + +FOCUS =============================================================================================== + Mod+j/k/l/; focus left/down/up/right | Mod+Arrow keys focus left/down/up/right + Mod+a focus parent container | + +MOVE WINDOWS ======================================================================================== + Mod+Shift+j/k/l/; move left/down/up/right | Mod+Shift+Arrows move left/down/up/right + +LAYOUT ============================================================================================== + Mod+h split horizontal | Mod+v split vertical + Mod+f fullscreen toggle | Mod+s stacking layout + Mod+w tabbed layout | Mod+e toggle split layout + Mod+Shift+Space toggle floating | Mod+Space switch focus tiled/float + +WORKSPACES ========================================================================================== + Mod+1..0 switch workspace | Mod+Shift+1..0 move window to workspace + +RESIZE MODE ========================================================================================= + Mod+r toggle resize mode | + j/k/l/; resize left/down/up/right | Arrow keys resize left/down/up/right + Enter/Escape leave resize mode | + +SCREENSHOTS ========================================================================================= + Print select area screenshot | Shift+Print focused window screenshot + Saved to: ~/Images/Screenshots/ | + +STARTED BY i3 ======================================================================================= + mpd music daemon | weather.sh i3status weather helper + xbps_update_count.sh package update count helper | redshift screen color temp + gpu_usage_nvidia.sh GPU usage helper | pipewire audio server + diff --git a/.script/generate-bindings-wallpaper.sh b/.script/generate-bindings-wallpaper.sh new file mode 100755 index 0000000..f06bbce --- /dev/null +++ b/.script/generate-bindings-wallpaper.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +TEXT_FILE="${I3_WALL_TEXT:-$HOME/.config/i3/wallpaper.txt}" +OUT="${I3_WALL_OUT:-$HOME/.cache/i3-wallpaper.png}" + +FONT="${I3_WALL_FONT:-DejaVu-Sans-Mono}" +POINTSIZE="${I3_WALL_POINTSIZE:-12}" +PADDING="${I3_WALL_PADDING:-40}" + +mkdir -p "$(dirname "$OUT")" + +if [ ! -f "$TEXT_FILE" ]; then + printf 'Wallpaper text file not found: %s\n' "$TEXT_FILE" >&2 + exit 1 +fi + +RES="$(xrandr 2>/dev/null | awk '/\*/ {print $1; exit}')" +[ -n "$RES" ] || RES="1920x1080" + +WIDTH="${RES%x*}" +HEIGHT="${RES#*x}" + +if command -v magick >/dev/null 2>&1; then + IM="magick" +elif command -v convert >/dev/null 2>&1; then + IM="convert" +else + printf 'ImageMagick not found. Install it with:\n' + printf ' sudo xbps-install -S ImageMagick\n' >&2 + exit 1 +fi + +"$IM" \ + -size "$WIDTH"x"$HEIGHT" \ + xc:black \ + -fill white \ + -font "$FONT" \ + -pointsize "$POINTSIZE" \ + -gravity northwest \ + -annotate +"$PADDING"+"$PADDING" @"$TEXT_FILE" \ + "$OUT" + |
