Regenerated

This commit is contained in:
2026-04-29 14:43:12 +02:00
parent 0bb5e3c9bd
commit ef17679446
14 changed files with 697 additions and 535 deletions
@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
set -euo pipefail
WALLPAPER_DIR="$HOME/Wallpapers/pictures"
echo "Wallpaper dir = $WALLPAPER_DIR"
randomize_and_rename_wallpapers() {
echo "Randomizing JPG filenames..."
shopt -s nullglob
# Grab all jpg/JPG files
files=("$WALLPAPER_DIR"/*.[jJ][pP][gG])
if [ ${#files[@]} -eq 0 ]; then
echo "No JPG files found in $WALLPAPER_DIR"
return
fi
# Shuffle the array
mapfile -t files < <(printf "%s\n" "${files[@]}" | shuf)
tmp_names=()
for file in "${files[@]}"; do
ext="${file##*.}"
# generate a random 16-character alphanumeric name
while : ; do
rand_name=$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c16)
new_path="$WALLPAPER_DIR/$rand_name.$ext"
if [[ ! -e "$new_path" ]]; then
mv "$file" "$new_path"
tmp_names+=("$new_path")
echo "Renamed $file -> $new_path"
break
fi
done
done
# Sequentially rename to 01.jpg ... 99.jpg
counter=1
for file in "${tmp_names[@]}"; do
new_name=$(printf "%02d.jpg" "$counter")
mv "$file" "$WALLPAPER_DIR/$new_name"
echo "Final rename $file -> $WALLPAPER_DIR/$new_name"
((counter++))
[[ $counter -gt 99 ]] && break
done
echo "Randomization complete."
}
randomize_and_rename_wallpapers
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
set -euo pipefail
SOCK="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
exec socat -U - UNIX-CONNECT:"$SOCK" | while IFS= read -r line; do
case "$line" in
workspace\>\>*)
WS="${line#workspace>>}"
"$HOME/Wallpapers/scripts/ws-wallpaper.sh" "$WS"
;;
esac
done
@@ -154,5 +154,5 @@ bind = , XF86Calculator, exec, gnome-calculator
#########################
# System stuff
#########################
# bind = $mainMod, U, exec, kitty --class update-term -e bash -lc "~/.config/scripts/update.sh; exec bash"
# bind = $mainMod, U, exec, kitty --class update-term -e bash -lc "~/.config/system/scripts/update.sh; exec bash"
bind = $mainMod, U, exec, qs -c updater
@@ -5,7 +5,7 @@ exec-once = systemctl --user start --no-block xdg-desktop-portal
exec-once = hypridle
exec-once = awww-daemon
exec-once = awww img ~/Wallpapers/pictures/01.jpg
exec-once = ~/Wallpapers/scripts/ws-daemon.sh
exec-once = ~/.config/awww/scripts/ws-daemon.sh
exec-once = /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1
exec-once = nextcloud --background
exec-once = waybar
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
# Tel toetsenborden met volledige toetsset (geen media-only apparaten)
COUNT=$(libinput list-devices 2>/dev/null \
| grep -A5 "Keyboard" \
| grep -c "kbd")
# Of via xinput / /proc alternatief:
# COUNT=$(cat /proc/bus/input/devices | grep -B5 'KEY=.*[a-f0-9]\{10\}' | grep -c 'Name=')
if [ "$COUNT" -ge 2 ]; then
numlockx on
else
numlockx off
fi
+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/env bash
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
#
# Launch a power menu
#
# Requires fzf and systemd (loginctl, systemctl)
#
# Author: Jesse Mirabel <sejjymvm@gmail.com>
# Date: August 19, 2025
# License: MIT
main() {
local list=(
"󰌾 Lock"
"󰐥 Shutdown"
"󰑙 Reboot"
"󰍃 Logout"
"󰒲 Hibernate"
"󰤄 Suspend"
)
local options=(
"--border=sharp"
"--border-label= Power Menu "
"--cycle"
"--ghost=Search"
"--height=~100%"
"--highlight-line"
"--info=inline-right"
"--pointer="
"--reverse"
)
local selected
selected=$(printf "%s\n" "${list[@]}" | fzf "${options[@]}")
case $selected in
Lock) loginctl lock-session ;;
Shutdown) systemctl poweroff ;;
Reboot) systemctl reboot ;;
Logout) loginctl terminate-session "$XDG_SESSION_ID" ;;
Hibernate) systemctl hibernate ;;
Suspend) systemctl suspend ;;
*) return 1 ;;
esac
}
main