From 06c0fbb8e9765560dd892cd991dec2188f4819a8 Mon Sep 17 00:00:00 2001 From: denode Date: Thu, 2 Apr 2026 08:39:40 +0200 Subject: [PATCH] On branch master renamed: music-notify -> bin/music-notify renamed: motd.sh -> mensa/motd.sh renamed: motdmb.sh -> mensa/motdmb.sh deleted: testing-wallpaper renamed: wallpaper-picker -> wallpaper/hyprland/wallpaper-picker new file: wallpaper/niri/README.md renamed: wallpaper-niri -> wallpaper/niri/wallpaper-niri new file: wallpaper/niri/wallpaper.rasi --- music-notify => bin/music-notify | 0 motd.sh => mensa/motd.sh | 0 motdmb.sh => mensa/motdmb.sh | 0 testing-wallpaper | 55 ------------ .../hyprland/wallpaper-picker | 0 wallpaper/niri/README.md | 13 +++ .../niri/wallpaper-niri | 0 wallpaper/niri/wallpaper.rasi | 87 +++++++++++++++++++ 8 files changed, 100 insertions(+), 55 deletions(-) rename music-notify => bin/music-notify (100%) rename motd.sh => mensa/motd.sh (100%) rename motdmb.sh => mensa/motdmb.sh (100%) delete mode 100755 testing-wallpaper rename wallpaper-picker => wallpaper/hyprland/wallpaper-picker (100%) create mode 100644 wallpaper/niri/README.md rename wallpaper-niri => wallpaper/niri/wallpaper-niri (100%) create mode 100644 wallpaper/niri/wallpaper.rasi diff --git a/music-notify b/bin/music-notify similarity index 100% rename from music-notify rename to bin/music-notify diff --git a/motd.sh b/mensa/motd.sh similarity index 100% rename from motd.sh rename to mensa/motd.sh diff --git a/motdmb.sh b/mensa/motdmb.sh similarity index 100% rename from motdmb.sh rename to mensa/motdmb.sh diff --git a/testing-wallpaper b/testing-wallpaper deleted file mode 100755 index 1e9c0f3..0000000 --- a/testing-wallpaper +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -WALLPAPER_DIR="${HOME}/Pictures/wallpaper" -EXTENSIONS="jpg|jpeg|png|gif|webp|bmp|tiff|tga|svg|avif" - -declare -A wall_map - -while IFS= read -r -d '' path; do - name="$(basename "$path")" - wall_map["$name"]="$path" -done < <( - find "$WALLPAPER_DIR" -maxdepth 1 -type f \ - -regextype posix-extended \ - -iregex ".*\.(${EXTENSIONS})" \ - -print0 | sort -z -) - -chosen="$( - for name in "${!wall_map[@]}"; do - printf '%s\0icon\x1fthumbnail://%s\n' "$name" "${wall_map[$name]}" - done | sort | rofi \ - -dmenu \ - -show-icons \ - -i \ - -p "Wallpaper" \ - -theme "$HOME/.config/rofi/wallpaper.rasi" \ - -kb-accept-entry "Return,KP_Enter" \ - -kb-element-next "Tab" \ - -kb-element-prev "ISO_Left_Tab" -)" - -[[ -z "${chosen:-}" ]] && exit 0 - -full_path="${wall_map[$chosen]:-}" -if [[ -z "${full_path}" || ! -f "${full_path}" ]]; then - notify-send "wallpaper-picker" "Not found: $chosen" --urgency=critical - exit 1 -fi - -awww img "$full_path" --transition-type grow --transition-step 90 - -persist="$HOME/.config/niri/wallpaper-restore.sh" -mkdir -p "$(dirname "$persist")" - -cat > "$persist" </dev/null || awww-daemon & -sleep 0.5 -awww img "$full_path" --transition-type simple -EOF - -chmod +x "$persist" - -notify-send "Wallpaper" "$chosen" --urgency=low diff --git a/wallpaper-picker b/wallpaper/hyprland/wallpaper-picker similarity index 100% rename from wallpaper-picker rename to wallpaper/hyprland/wallpaper-picker diff --git a/wallpaper/niri/README.md b/wallpaper/niri/README.md new file mode 100644 index 0000000..7acea27 --- /dev/null +++ b/wallpaper/niri/README.md @@ -0,0 +1,13 @@ +# Wallpaper-Picker on Niri + +arch: yay -S awww rofi libnotify + +nix: environment.systemPackages = with pkgs; [ + rofi-wayland + awww + libnotify +]; + +put wallpaper.rasi in ~/home/.config/rofi/wallpaper.rasi + +wallpapers should stay in ~/home/$USER/Pictures/wallpaper diff --git a/wallpaper-niri b/wallpaper/niri/wallpaper-niri similarity index 100% rename from wallpaper-niri rename to wallpaper/niri/wallpaper-niri diff --git a/wallpaper/niri/wallpaper.rasi b/wallpaper/niri/wallpaper.rasi new file mode 100644 index 0000000..540350d --- /dev/null +++ b/wallpaper/niri/wallpaper.rasi @@ -0,0 +1,87 @@ +configuration { + show-icons: true; +} + +* { + bg: #0f1115ee; + bg-alt: #171a21ff; + fg: #e6eaf2ff; + fg-muted: #aab4c3ff; + accent: #89b4faff; + border: #2a2f3aff; + selected: #1e2530ff; + + background-color: transparent; + text-color: @fg; +} + +window { + location: center; + anchor: center; + width: 28%; + border: 2px; + border-radius: 14px; + border-color: @border; + background-color: @bg; + padding: 12px; +} + +mainbox { + children: [ inputbar, listview ]; + spacing: 10px; +} + +inputbar { + children: [ prompt, entry ]; + spacing: 8px; + padding: 10px 12px; + border-radius: 10px; + background-color: @bg-alt; +} + +prompt { + text-color: @accent; +} + +entry { + text-color: @fg; + placeholder: "search..."; + placeholder-color: @fg-muted; +} + +listview { + columns: 3; + lines: 1; + dynamic: false; + cycle: false; + scrollbar: true; + spacing: 10px; + layout: vertical; +} + +element { + orientation: vertical; + padding: 8px; + border-radius: 10px; + background-color: transparent; +} + +element normal.normal { + background-color: transparent; + text-color: @fg-muted; +} + +element selected.normal { + background-color: @selected; + text-color: @fg; +} + +element-icon { + size: 120px; + border-radius: 8px; +} + +element-text { + horizontal-align: 0.5; + vertical-align: 0.5; +}