From ef176794469ca4e77b788c492816af60cc5fb2f5 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Wed, 29 Apr 2026 14:43:12 +0200 Subject: [PATCH] Regenerated --- Droidnix/README.html | 862 ++++++++++-------- Droidnix/README.org | 88 +- .../scripts/set-workspace-wallpaper.sh | 19 - .../scripts/workspace-wallpapers.sh | 83 -- .../Wallpapers/scripts/ws-wallpaper.sh | 36 - .../randomizeWallpapers.sh | 0 .../{scripts => scripts_}/ws-daemon.sh | 7 +- .../awww/scripts/randomizeWallpapers.sh | 55 ++ .../.config/awww/scripts/ws-daemon.sh | 14 + Droidnix/generated/.config/hypr/bindings.conf | 2 +- .../generated/.config/hypr/exec-once.conf | 2 +- .../.config/system/scripts/numlock-check.sh | 15 + .../generated/.config/system/scripts/power.sh | 48 + .../modules/traveldroid/desktop/wallpaper.nix | 1 + 14 files changed, 697 insertions(+), 535 deletions(-) delete mode 100755 Droidnix/assets/traveldroid/Wallpapers/scripts/set-workspace-wallpaper.sh delete mode 100755 Droidnix/assets/traveldroid/Wallpapers/scripts/workspace-wallpapers.sh delete mode 100755 Droidnix/assets/traveldroid/Wallpapers/scripts/ws-wallpaper.sh rename Droidnix/assets/traveldroid/Wallpapers/{scripts => scripts_}/randomizeWallpapers.sh (100%) rename Droidnix/assets/traveldroid/Wallpapers/{scripts => scripts_}/ws-daemon.sh (50%) create mode 100755 Droidnix/generated/.config/awww/scripts/randomizeWallpapers.sh create mode 100755 Droidnix/generated/.config/awww/scripts/ws-daemon.sh create mode 100755 Droidnix/generated/.config/system/scripts/numlock-check.sh create mode 100755 Droidnix/generated/.config/system/scripts/power.sh diff --git a/Droidnix/README.html b/Droidnix/README.html index 72e95e1e1..e5b8711cf 100644 --- a/Droidnix/README.html +++ b/Droidnix/README.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Droidnix: A Dendritic NixOS + Home Manager Configuration NixOS Configuration Structure @@ -204,141 +204,143 @@

Table of Contents

-
-

Shortcuts

-
+
+

Shortcuts

+

Introduction The Assets Folder @@ -354,25 +356,25 @@

Introduction   intro

-
-

What is Droidnix

-
+
+

What is Droidnix

+

Droidnix is a modular, declarative NixOS + Home Manager configuration system. with configurations managed via Emacs Org and Nix Flakes. The project is designed for reproducibility, maintainability, and cross-machine compatibility.

-
-

Installed components:

-
+
+

Installed components:

+
    -
  • Core
  • -
  • Hyprland
  • +
  • Core
  • +
  • Hyprland
-
-

Goals, project Structure, import hierarchy

-
+
+

Goals, project Structure, import hierarchy

+

This project uses a modular NixOS configuration with Hyprland support, designed for literate programming and cross-device reusability. The Droidnix repository is organized into two main parts: @@ -385,9 +387,9 @@ The Droidnix repository is organized into two main parts:

-
-

Root Level

-
+
+

Root Level

+
  • = is the entry point and imports:
      @@ -398,16 +400,16 @@ The Droidnix repository is organized into two main parts:
-
-

Generated Structure

-
+
+

Generated Structure

+

The generated/ directory contains all generated configurations, divided into three main groups: system, hyprland, and mangowc.

-
-

First Setup

-
+
+

First Setup

+
  1. Clone this repository.
  2. Run the setup script: ./setup_droid.
  3. @@ -428,9 +430,9 @@ The generated/ directory contains all generated configurations, div The .assets/ folder contains all static files, such as configs, scripts, and themes. These files are not generated and can be edited directly.

-
-

generated/assets/2_b_installed.conf

-
+
+

generated/assets/2_b_installed.conf

+

This is a list of additional apps to install

@@ -508,9 +510,9 @@ com.logseq.Logseq
-
-

generated/assets/aliases.conf

-
+
+

generated/assets/aliases.conf

+

This is a list of additional apps to install

@@ -552,9 +554,9 @@ keys=hyprctl binds This section contains the Org blocks for tangling Nix code into the generated folders.

-
-

generated/flake.nix

-
+
+

generated/flake.nix

+

The Nix flake definition for Droidnix.

@@ -645,9 +647,9 @@ The Nix flake definition for Droidnix.
-
-

generated/modules/traveldroid/system/colors.nix

-
+
+

generated/modules/traveldroid/system/colors.nix

+

Setting the colors for Droidnix.

@@ -724,9 +726,9 @@ in
-
-

generated/hosts/traveldroid/boot.nix

-
+
+

generated/hosts/traveldroid/boot.nix

+
{ config, pkgs, lib, flakeRoot, ... }:
 {
@@ -794,9 +796,9 @@ in
 
-
-

generated/hosts/traveldroid/hardware-configuration.nix

-
+
+

generated/hosts/traveldroid/hardware-configuration.nix

+
  1. Boot into NixOS Live ISO or your installed system.
  2. Open a terminal.
  3. @@ -854,9 +856,9 @@ in
-
-

generated/hosts/traveldroid/host.nix

-
+
+

generated/hosts/traveldroid/host.nix

+
{ lib, config, pkgs, flakeRoot, import-tree, home-manager, ... }:
 
@@ -916,13 +918,13 @@ in
 
-
-

generated/traveldroid/modules/apps

-
+
+

generated/traveldroid/modules/apps

+
-
-

generated/modules/traveldroid/apps/2_b_installed.nix

-
+
+

generated/modules/traveldroid/apps/2_b_installed.nix

+

This installs a list of apps

@@ -1030,9 +1032,9 @@ in {
-
-

generated/modules/traveldroid/apps/emacs/emacs.nix

-
+
+

generated/modules/traveldroid/apps/emacs/emacs.nix

+

This installs emacs

@@ -1127,9 +1129,9 @@ in
-
-

generated/modules/traveldroid/apps/kdeconnect.nix

-
+
+

generated/modules/traveldroid/apps/kdeconnect.nix

+

This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder

@@ -1157,9 +1159,9 @@ in
-
-

generated/modules/traveldroid/apps/kitty.nix

-
+
+

generated/modules/traveldroid/apps/kitty.nix

+

This file sets up Kitty terminal

@@ -1211,9 +1213,9 @@ in
-
-

generated/modules/traveldroid/apps/starship.nix

-
+
+

generated/modules/traveldroid/apps/starship.nix

+

This file sets up starship prompt

@@ -1252,9 +1254,9 @@ in
-
-

generated/modules/traveldroid/apps/thunar.nix

-
+
+

generated/modules/traveldroid/apps/thunar.nix

+

This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder

@@ -1300,9 +1302,9 @@ in
-
-

generated/modules/traveldroid/apps/wofi.nix

-
+
+

generated/modules/traveldroid/apps/wofi.nix

+

This is the install for Wofi, the launcher

@@ -1337,9 +1339,9 @@ in
-
-

generated/modules/traveldroid/apps/zenbrowser.nix

-
+
+

generated/modules/traveldroid/apps/zenbrowser.nix

+

This installs zen browser

@@ -1359,9 +1361,9 @@ in
-
-

generated/modules/traveldroid/apps/zeditor.nix

-
+
+

generated/modules/traveldroid/apps/zeditor.nix

+

This sets Zed Editor

@@ -1416,9 +1418,9 @@ in
-
-

generated/modules/traveldroid/apps/zsh.nix

-
+
+

generated/modules/traveldroid/apps/zsh.nix

+

This sets up the zsh in the terminal

@@ -1532,13 +1534,13 @@ in
-
-

generated/modules/traveldroid/desktop

-
+
+

generated/modules/traveldroid/desktop

+
-
-

generated/modules/traveldroid/desktop/fonts.nix

-
+
+

generated/modules/traveldroid/desktop/fonts.nix

+

This file installs and configures fonts

@@ -1556,9 +1558,9 @@ This file installs and configures fonts
-
-

generated/modules/traveldroid/desktop/gtk.nix

-
+
+

generated/modules/traveldroid/desktop/gtk.nix

+

Setting up GTK

@@ -1584,9 +1586,9 @@ in
-
-

generated/modules/traveldroid/desktop/hyprland.nix

-
+
+

generated/modules/traveldroid/desktop/hyprland.nix

+

Setting up Hyprland

@@ -1631,9 +1633,9 @@ in
-
-

generated/modules/traveldroid/desktop/stylix.nix

-
+
+

generated/modules/traveldroid/desktop/stylix.nix

+
{ lib, config, pkgs, flakeRoot, stylix, ... }:
 
@@ -1720,9 +1722,9 @@ in
 
-
-

generated/modules/traveldroid/desktop/wallpaper.nix

-
+
+

generated/modules/traveldroid/desktop/wallpaper.nix

+

Setting up wallpaper engine + wallpaper gui

@@ -1746,6 +1748,7 @@ in pkgs.waypaper pkgs.socat ]; # Create the copy script using Home Manager, following Waybar style + This can not be done using a prepared script home-manager.users = { ${username} = { home.file = { @@ -1801,9 +1804,96 @@ in
-
-

generated/modules/traveldroid/desktop/waybar.nix

-
+
+

generated/.config/awww/scripts/randomizeWallpapers.sh

+
+

+Numbers all pictures in ~/Wallpapers/pictures in random order +

+
+
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
+
+
+
+
+
+

generated/.config/awww/scripts/ws-daemon.sh

+
+

+Little daemon that sets a workspace when user switches to a different workspace +

+
+
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
+
+
+
+
+
+

generated/modules/traveldroid/desktop/waybar.nix

+

This file installs and configures waybar

@@ -1849,9 +1939,9 @@ in
-
-

generated/modules/traveldroid/desktop/wayland.nix

-
+
+

generated/modules/traveldroid/desktop/wayland.nix

+
{ lib, config, pkgs, ... }:
 
@@ -1881,9 +1971,9 @@ in
 
-
-

generated/modules/traveldroid/desktop/xdg.nix

-
+
+

generated/modules/traveldroid/desktop/xdg.nix

+

This sets the XDG implementation

@@ -1954,13 +2044,13 @@ in
-
-

generated/modules/traveldroid/system

-
+
+

generated/modules/traveldroid/system

+
-
-

generated/modules/traveldroid/system/audio.nix

-
+
+

generated/modules/traveldroid/system/audio.nix

+
{ lib, config, pkgs, ... }:
 
@@ -1979,9 +2069,9 @@ in
 
-
-

generated/modules/traveldroid/system/avahi.nix

-
+
+

generated/modules/traveldroid/system/avahi.nix

+

Avahi helps discovering services

@@ -2001,9 +2091,9 @@ Avahi helps discovering services
-
-

generated/modules/traveldroid/system/bluetooth.nix

-
+
+

generated/modules/traveldroid/system/bluetooth.nix

+

Installing Bluetooth services and supporting aps

@@ -2030,9 +2120,9 @@ in
-
-

generated/modules/traveldroid/system/copy_scripts.nix

-
+
+

generated/modules/traveldroid/system/copy_scripts.nix

+

This copies any scripts from generated.config/scripts to ~/.config/scripts and makes any .sh files executable.

@@ -2073,9 +2163,9 @@ in
-
-

generated/modules/traveldroid/system/dbus.nix

-
+
+

generated/modules/traveldroid/system/dbus.nix

+

This sets the dbus implementation

@@ -2102,9 +2192,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/firewall.nix

-
+
+

generated/modules/traveldroid/system/firewall.nix

+

This sets the firewall.

@@ -2185,9 +2275,9 @@ This sets the firewall.
-
-

generated/modules/traveldroid/system/hypridle.nix

-
+
+

generated/modules/traveldroid/system/hypridle.nix

+

This installs hypridle

@@ -2243,9 +2333,9 @@ in
-
-

generated/modules/traveldroid/system/hyprlock.nix

-
+
+

generated/modules/traveldroid/system/hyprlock.nix

+

This installs hyprlock

@@ -2302,9 +2392,9 @@ in
-
-

generated/modules/traveldroid/system/gnome-keyring.nix

-
+
+

generated/modules/traveldroid/system/gnome-keyring.nix

+

This sets the dbus implementation

@@ -2352,9 +2442,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/login-tuigreet.nix

-
+
+

generated/modules/traveldroid/system/login-tuigreet.nix

+

This sets up tuigreeter which is not fancy but imho fits the aesthetic I am aiming for

@@ -2402,9 +2492,9 @@ in
-
-

generated/modules/traveldroid/system/networking.nix

-
+
+

generated/modules/traveldroid/system/networking.nix

+

This sets the networking.

@@ -2453,9 +2543,9 @@ This sets the networking.
-
-

generated/modules/traveldroid/system/nix.nix

-
+
+

generated/modules/traveldroid/system/nix.nix

+
{ lib, config, ... }:
 {
@@ -2478,9 +2568,9 @@ This sets the networking.
 
-
-

generated/modules/traveldroid/system/printing.nix

-
+
+

generated/modules/traveldroid/system/printing.nix

+

This sets the dbus implementation

@@ -2504,9 +2594,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/quickshell.nix

-
+
+

generated/modules/traveldroid/system/quickshell.nix

+

This sets the quickshell implementation

@@ -2552,9 +2642,9 @@ in
-
-

generated/modules/traveldroid/system/swaync.nix

-
+
+

generated/modules/traveldroid/system/swaync.nix

+

This sets the dbus implementation

@@ -2603,13 +2693,13 @@ in
-
-

generated/users

-
+
+

generated/users

+
-
-

generated/users/

-
+
+

generated/users/

+

This is the default user, just search and replace henrov another name if you want to change

@@ -2671,9 +2761,9 @@ in

These are all the prepared config files

-
-

generated/.config/emacs/early-init.el

-
+
+

generated/.config/emacs/early-init.el

+

This contaions emacs

@@ -2774,9 +2864,9 @@ package-archive-priorities '(("gnu" . 99)
-
-

generated/.config/emacs/init.el

-
+
+

generated/.config/emacs/init.el

+

This contaions emacs

@@ -3186,9 +3276,9 @@ the top of the file."
-
-

generated/.config/hypr/animations.conf

-
+
+

generated/.config/hypr/animations.conf

+

These are config files for .config/hypr

@@ -3207,9 +3297,9 @@ These are config files for .config/hypr
-
-

generated/.config/hypr/behaviour.conf

-
+
+

generated/.config/hypr/behaviour.conf

+

These are config files for .config/hypr

@@ -3231,9 +3321,9 @@ input {
-
-

generated/.config/hypr/bindings.conf

-
+
+

generated/.config/hypr/bindings.conf

+

These are config files for .config/hypr

@@ -3393,15 +3483,15 @@ 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
-
-

generated/.config/hypr/exec-once.conf

-
+
+

generated/.config/hypr/exec-once.conf

+

These are config files for .config/hypr

@@ -3412,7 +3502,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 @@ -3420,9 +3510,9 @@ exec-once = waybar
-
-

generated/.config/hypr/hypridle.conf

-
+
+

generated/.config/hypr/hypridle.conf

+

These are config files for .config/hypr

@@ -3453,9 +3543,9 @@ listener {
-
-

generated/.config/hypr/hyprlock.conf

-
+
+

generated/.config/hypr/hyprlock.conf

+

These are config files for .config/hypr

@@ -3485,9 +3575,9 @@ input-field {
-
-

generated/.config/hypr/hyprland.conf

-
+
+

generated/.config/hypr/hyprland.conf

+

These are config files for .config/hypr

@@ -3506,9 +3596,9 @@ source = ./workspace-rules.conf
-
-

generated/.config/hypr/layer-rules.conf

-
+
+

generated/.config/hypr/layer-rules.conf

+

These are config files for .config/hypr

@@ -3521,9 +3611,9 @@ layerrule = xray 1, match:namespace swaync-control-center
-
-

generated/.config/hypr/layout.conf

-
+
+

generated/.config/hypr/layout.conf

+

These settings control Hyprland config

@@ -3538,9 +3628,9 @@ scrolling {
-
-

generated/.config/hypr/monitor-rules.conf

-
+
+

generated/.config/hypr/monitor-rules.conf

+

These are config files for .config/hypr

@@ -3551,9 +3641,9 @@ monitor = eDP-1, preferred, auto-left, 1.5
-
-

generated/.config/hypr/theming.conf

-
+
+

generated/.config/hypr/theming.conf

+

These are config files for .config/hypr

@@ -3619,9 +3709,9 @@ misc {
-
-

generated/.config/hypr/window-rules.conf

-
+
+

generated/.config/hypr/window-rules.conf

+

These are config files for .config/hypr

@@ -3722,9 +3812,9 @@ windowrule {
-
-

generated/.config/hypr/workspace-rules.conf

-
+
+

generated/.config/hypr/workspace-rules.conf

+

These setttings configure rules for workspaces

@@ -3739,9 +3829,9 @@ workspace = 6, monitor:DP-1 #, layout:dwindle
-
-

generated/.config/quickshell/media/shell.qml

-
+
+

generated/.config/quickshell/media/shell.qml

+

offers a audio widget

@@ -4135,9 +4225,9 @@ ShellRoot {
-
-

generated/.config/quickshell/powermenu/shell.qml

-
+
+

generated/.config/quickshell/powermenu/shell.qml

+

Provides a powermenu

@@ -4285,9 +4375,9 @@ ShellRoot {
-
-

generated/.config/quickshell/updater/shell.qml

-
+
+

generated/.config/quickshell/updater/shell.qml

+

Updates the system

@@ -4536,9 +4626,9 @@ ShellRoot {
-
-

generated/.config/quickshell/layoutswitcher/shell.qml

-
+
+

generated/.config/quickshell/layoutswitcher/shell.qml

+

Provides a layout menu

@@ -4685,9 +4775,9 @@ ShellRoot {
-
-

generated/.config/waybar/scripts/batterywarn.sh

-
+
+

generated/.config/waybar/scripts/batterywarn.sh

+

Providing an media

@@ -4704,9 +4794,9 @@ fi
-
-

generated/.config/waybar/scripts/media.sh

-
+
+

generated/.config/waybar/scripts/media.sh

+

Providing an media

@@ -4805,9 +4895,9 @@ jq -c -n \
-
-

generated/.config/scripts/numlock-check.sh

-
+
+

generated/.config/system/scripts/numlock-check.sh

+

Count keyboards and enable numlock if more then 1, else disable

@@ -4829,9 +4919,9 @@ fi
-
-

generated/.config/scripts/power.sh

-
+
+

generated/.config/system/scripts/power.sh

+

Enables a terminal power menu

@@ -4886,9 +4976,9 @@ main
-
-

generated/.config/wofi/scripts/wofi-launcher.sh

-
+
+

generated/.config/wofi/scripts/wofi-launcher.sh

+

Providing an media

@@ -4903,9 +4993,9 @@ Providing an media
-
-

generated/.config/shared/colors.css

-
+
+

generated/.config/shared/colors.css

+

A file containing color variables

@@ -4946,9 +5036,9 @@ A file containing color variables
-
-

generated/.config/starship.toml

-
+
+

generated/.config/starship.toml

+

These are config files for Starship

@@ -5236,9 +5326,9 @@ crust = "#181926"
-
-

generated/.config/stylix/stylix.conf

-
+
+

generated/.config/stylix/stylix.conf

+

These are config files for .config/stylix

@@ -5275,9 +5365,9 @@ icons = {
-
-

generated/.config/stylix/palette.json

-
+
+

generated/.config/stylix/palette.json

+

These are config files for .config/stylix

@@ -5307,9 +5397,9 @@ These are config files for .config/stylix
-
-

generated/.config/stylix/palette.html

-
+
+

generated/.config/stylix/palette.html

+

These are config files for .config/stylix

@@ -5386,9 +5476,9 @@ These are config files for .config/stylix
-
-

generated/.config/swaync/config.json

-
+
+

generated/.config/swaync/config.json

+

These are config files for waybar

@@ -5449,9 +5539,9 @@ These are config files for waybar
-
-

generated/.config/swaync/style.css

-
+
+

generated/.config/swaync/style.css

+

These are config files for waybar

@@ -5644,9 +5734,9 @@ These are config files for waybar
-
-

generated/.config/waybar/config.jsonc

-
+
+

generated/.config/waybar/config.jsonc

+

These are config files for waybar

@@ -5983,9 +6073,9 @@ These are config files for waybar
-
-

generated/.config/waybar/style-dark.css

-
+
+

generated/.config/waybar/style-dark.css

+

This file contains all css for waybar

@@ -6245,9 +6335,9 @@ label#custom-windows:not(.active) {
-
-

generated/.config/waybar/scripts/bluetooth-status.sh

-
+
+

generated/.config/waybar/scripts/bluetooth-status.sh

+

These are config files for waybar

@@ -6272,9 +6362,9 @@ printf '{"text": "%s", "tooltip": "%s"}\n' "$icon" "$tooltip"
-
-

generated/.config/waybar/scripts/hypr-workspaces.sh

-
+
+

generated/.config/waybar/scripts/hypr-workspaces.sh

+

These are config files for waybar

@@ -6316,9 +6406,9 @@ jq -c -n \
-
-

generated/.config/waybar/scripts/hypr-workspacesmenu.sh

-
+
+

generated/.config/waybar/scripts/hypr-workspacesmenu.sh

+

These are config files for waybar

@@ -6340,9 +6430,9 @@ hyprctl dispatch focuswindow address:"$addr"
-
-

generated/.config/waybar/scripts/kdeconnect-status.sh

-
+
+

generated/.config/waybar/scripts/kdeconnect-status.sh

+

These are config files for waybar

@@ -6366,9 +6456,9 @@ fi
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for waypaper

@@ -6405,9 +6495,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for .config/waypaper

@@ -6443,9 +6533,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/wofi/config

-
+
+

generated/.config/wofi/config

+

These are config files for .config/wofi

@@ -6472,9 +6562,9 @@ prompt = > ...
-
-

generated/.config/wofi/style.css

-
+
+

generated/.config/wofi/style.css

+

This is the default layout for wofi

@@ -6570,9 +6660,9 @@ This is the default layout for wofi
-
-

generated/.config/zed/settings.json

-
+
+

generated/.config/zed/settings.json

+

These are config files for Zed editor

@@ -6610,9 +6700,9 @@ These are config files for Zed editor
-
-

generated/.config/zsh/.zshrc

-
+
+

generated/.config/zsh/.zshrc

+

This sets up the zsh in the terminal

@@ -6649,7 +6739,7 @@ cd() {

Author: Henro Veijer

-

Created: 2026-04-29 wo 14:23

+

Created: 2026-04-29 wo 14:43

Validate

diff --git a/Droidnix/README.org b/Droidnix/README.org index f04dfb1d9..b1dcd21c2 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -1257,6 +1257,7 @@ in pkgs.waypaper pkgs.socat ]; # Create the copy script using Home Manager, following Waybar style + This can not be done using a prepared script home-manager.users = { ${username} = { home.file = { @@ -1310,6 +1311,81 @@ in } #+END_SRC +** =generated/.config/awww/scripts/randomizeWallpapers.sh= +Numbers all pictures in ~/Wallpapers/pictures in random order +#+BEGIN_SRC sh :tangle generated/.config/awww/scripts/randomizeWallpapers.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never +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 +#+END_SRC + +** =generated/.config/awww/scripts/ws-daemon.sh= +Little daemon that sets a workspace when user switches to a different workspace +#+BEGIN_SRC sh :tangle generated/.config/awww/scripts/ws-daemon.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never +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 +#+END_SRC + ** =generated/modules/traveldroid/desktop/waybar.nix= This file installs and configures waybar #+BEGIN_SRC nix :tangle generated/modules/traveldroid/desktop/waybar.nix :noweb yes :mkdirp yes :eval never @@ -2763,7 +2839,7 @@ 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 #+END_SRC @@ -2776,7 +2852,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 @@ -4077,9 +4153,9 @@ jq -c -n \ '{text: $text, tooltip: $tooltip, class: $class, alt: $art}' #+END_SRC -** =generated/.config/scripts/numlock-check.sh= +** =generated/.config/system/scripts/numlock-check.sh= Count keyboards and enable numlock if more then 1, else disable -#+BEGIN_SRC sh :tangle generated/.config/scripts/numlock-check.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never +#+BEGIN_SRC sh :tangle generated/.config/system/scripts/numlock-check.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never # Tel toetsenborden met volledige toetsset (geen media-only apparaten) COUNT=$(libinput list-devices 2>/dev/null \ | grep -A5 "Keyboard" \ @@ -4095,9 +4171,9 @@ else fi #+END_SRC -** =generated/.config/scripts/power.sh= +** =generated/.config/system/scripts/power.sh= Enables a terminal power menu -#+BEGIN_SRC sh :tangle generated/.config/scripts/power.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never +#+BEGIN_SRC sh :tangle generated/.config/system/scripts/power.sh :shebang "#!/usr/bin/env bash" :noweb yes :mkdirp yes :eval never # # Launch a power menu # diff --git a/Droidnix/assets/traveldroid/Wallpapers/scripts/set-workspace-wallpaper.sh b/Droidnix/assets/traveldroid/Wallpapers/scripts/set-workspace-wallpaper.sh deleted file mode 100755 index 10fe066bf..000000000 --- a/Droidnix/assets/traveldroid/Wallpapers/scripts/set-workspace-wallpaper.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -# Get active workspace ID -ws=$(hyprctl activeworkspace -j | jq -r '.id') - -# Format number with leading zero (01, 02, ...) -num=$(printf "%02d" "$ws") - -# Build wallpaper path -wall="$HOME/Wallpapers/pictures/${num}.jpg" - -# Check if file exists -if [ -f "$wall" ]; then - # Set wallpaper with smooth transition - awww img "$wall" \ - --transition-type wipe \ - --transition-duration 0.5 \ - --transition-fps 60 -fi diff --git a/Droidnix/assets/traveldroid/Wallpapers/scripts/workspace-wallpapers.sh b/Droidnix/assets/traveldroid/Wallpapers/scripts/workspace-wallpapers.sh deleted file mode 100755 index 1c38b884d..000000000 --- a/Droidnix/assets/traveldroid/Wallpapers/scripts/workspace-wallpapers.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# ------------------------------- -# Config -# ------------------------------- -HOME_DIR="$HOME" -PICTURES_DIR="$HOME_DIR/Wallpapers/pictures" -STATE_DIR="$HOME_DIR/.cache/hypr-wallpapers" -NAMESPACE="main" - -CURRENTPATH=/run/current-system/sw/bin - -# Required environment variables -: "${XDG_RUNTIME_DIR:?XDG_RUNTIME_DIR is not set}" -: "${HYPRLAND_INSTANCE_SIGNATURE:?HYPRLAND_INSTANCE_SIGNATURE is not set}" -: "${WAYLAND_DISPLAY:?WAYLAND_DISPLAY is not set}" - -IPC_SOCKET="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" - -# ------------------------------- -# Wait for Hyprland IPC socket -# ------------------------------- -until [ -S "$IPC_SOCKET" ]; do - echo "Waiting for Hyprland IPC socket..." - sleep 1 -done - -# ------------------------------- -# Start awww-daemon if not already running -# ------------------------------- -awww_SOCKET="$XDG_RUNTIME_DIR/awww/$NAMESPACE.sock" - -if [ ! -S "$awww_SOCKET" ]; then - if ! pgrep -f "awww-daemon.*--namespace $NAMESPACE" >/dev/null; then - echo "Starting awww-daemon for namespace $NAMESPACE..." - "$CURRENTPATH/awww-daemon" --namespace "$NAMESPACE" & - sleep 0.5 - else - echo "awww-daemon already running for namespace $NAMESPACE" - fi -fi - -# ------------------------------- -# Load wallpapers -# ------------------------------- -mapfile -t IMAGES < <(find "$PICTURES_DIR" -type f \( -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' \)) -[ "${#IMAGES[@]}" -eq 0 ] && { echo "No wallpapers found in $PICTURES_DIR"; exit 1; } - -mkdir -p "$STATE_DIR" - -get_wallpaper() { - local ws="$1" - local mon="$2" - local key="$STATE_DIR/ws${ws}_mon${mon}.txt" - - if [ -f "$key" ]; then - cat "$key" - else - local image="${IMAGES[RANDOM % ${#IMAGES[@]}]}" - echo "$image" > "$key" - echo "$image" - fi -} - -# ------------------------------- -# Subscribe to workspace events -# ------------------------------- -{ - echo '{"subscribe":["workspace"]}' - "$CURRENTPATH/socat" - UNIX-CONNECT:"$IPC_SOCKET" -} | while read -r line; do - [[ "$line" =~ ^\{ ]] || continue - - WS_NUM=$("$CURRENTPATH/jq" -r 'select(.type=="workspace" and .active==true) | .workspace' <<< "$line" 2>/dev/null || true) - MONITOR=$("$CURRENTPATH/jq" -r '.monitor' <<< "$line" 2>/dev/null || true) - - if [ -n "$WS_NUM" ] && [ -n "$MONITOR" ]; then - WALLPAPER=$(get_wallpaper "$WS_NUM" "$MONITOR") - echo "Setting wallpaper for workspace $WS_NUM on monitor $MONITOR: $WALLPAPER" - "$CURRENTPATH/awww" img "$WALLPAPER" --resize stretch --namespace "$WS_NUM" - fi -done diff --git a/Droidnix/assets/traveldroid/Wallpapers/scripts/ws-wallpaper.sh b/Droidnix/assets/traveldroid/Wallpapers/scripts/ws-wallpaper.sh deleted file mode 100755 index d8bad8eb8..000000000 --- a/Droidnix/assets/traveldroid/Wallpapers/scripts/ws-wallpaper.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -WS=$1 - -case "$WS" in -0) - awww img /home/henrov/Wallpapers/pictures/10.jpg --transition-type fade - ;; -1) - awww img /home/henrov/Wallpapers/pictures/01.jpg --transition-type fade - ;; -2) - awww img /home/henrov/Wallpapers/pictures/02.jpg --transition-type fade - ;; -3) - awww img /home/henrov/Wallpapers/pictures/03.jpg --transition-type fade - ;; -4) - awww img /home/henrov/Wallpapers/pictures/04.jpg --transition-type fade - ;; -5) - awww img /home/henrov/Wallpapers/pictures/05.jpg --transition-type fade - ;; -6) - awww img /home/henrov/Wallpapers/pictures/06.jpg --transition-type fade - ;; -7) - awww img /home/henrov/Wallpapers/pictures/07.jpg --transition-type fade - ;; -8) - awww img /home/henrov/Wallpapers/pictures/08.jpg --transition-type fade - ;; -9) - awww img /home/henrov/Wallpapers/pictures/09.jpg --transition-type fade - ;; -esac diff --git a/Droidnix/assets/traveldroid/Wallpapers/scripts/randomizeWallpapers.sh b/Droidnix/assets/traveldroid/Wallpapers/scripts_/randomizeWallpapers.sh similarity index 100% rename from Droidnix/assets/traveldroid/Wallpapers/scripts/randomizeWallpapers.sh rename to Droidnix/assets/traveldroid/Wallpapers/scripts_/randomizeWallpapers.sh diff --git a/Droidnix/assets/traveldroid/Wallpapers/scripts/ws-daemon.sh b/Droidnix/assets/traveldroid/Wallpapers/scripts_/ws-daemon.sh similarity index 50% rename from Droidnix/assets/traveldroid/Wallpapers/scripts/ws-daemon.sh rename to Droidnix/assets/traveldroid/Wallpapers/scripts_/ws-daemon.sh index d273f1492..b5e5ed940 100755 --- a/Droidnix/assets/traveldroid/Wallpapers/scripts/ws-daemon.sh +++ b/Droidnix/assets/traveldroid/Wallpapers/scripts_/ws-daemon.sh @@ -1,12 +1,13 @@ #!/usr/bin/env bash +set -euo pipefail SOCK="$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock" -socat -U - UNIX-CONNECT:"$SOCK" | while read -r line; do +exec socat -U - UNIX-CONNECT:"$SOCK" | while IFS= read -r line; do case "$line" in - workspace>>*) + workspace\>\>*) WS="${line#workspace>>}" - ~/Wallpapers/scripts/ws-wallpaper.sh "$WS" + "$HOME/Wallpapers/scripts/ws-wallpaper.sh" "$WS" ;; esac done diff --git a/Droidnix/generated/.config/awww/scripts/randomizeWallpapers.sh b/Droidnix/generated/.config/awww/scripts/randomizeWallpapers.sh new file mode 100755 index 000000000..cc123b0b1 --- /dev/null +++ b/Droidnix/generated/.config/awww/scripts/randomizeWallpapers.sh @@ -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 diff --git a/Droidnix/generated/.config/awww/scripts/ws-daemon.sh b/Droidnix/generated/.config/awww/scripts/ws-daemon.sh new file mode 100755 index 000000000..e3cb8e47c --- /dev/null +++ b/Droidnix/generated/.config/awww/scripts/ws-daemon.sh @@ -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 diff --git a/Droidnix/generated/.config/hypr/bindings.conf b/Droidnix/generated/.config/hypr/bindings.conf index 51fad8148..2868afad1 100644 --- a/Droidnix/generated/.config/hypr/bindings.conf +++ b/Droidnix/generated/.config/hypr/bindings.conf @@ -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 diff --git a/Droidnix/generated/.config/hypr/exec-once.conf b/Droidnix/generated/.config/hypr/exec-once.conf index fba504e3c..01eb67326 100644 --- a/Droidnix/generated/.config/hypr/exec-once.conf +++ b/Droidnix/generated/.config/hypr/exec-once.conf @@ -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 diff --git a/Droidnix/generated/.config/system/scripts/numlock-check.sh b/Droidnix/generated/.config/system/scripts/numlock-check.sh new file mode 100755 index 000000000..6be5e31a4 --- /dev/null +++ b/Droidnix/generated/.config/system/scripts/numlock-check.sh @@ -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 diff --git a/Droidnix/generated/.config/system/scripts/power.sh b/Droidnix/generated/.config/system/scripts/power.sh new file mode 100755 index 000000000..927bdc644 --- /dev/null +++ b/Droidnix/generated/.config/system/scripts/power.sh @@ -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 +# 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 diff --git a/Droidnix/generated/modules/traveldroid/desktop/wallpaper.nix b/Droidnix/generated/modules/traveldroid/desktop/wallpaper.nix index 7a657ae7b..5c14b2ef7 100644 --- a/Droidnix/generated/modules/traveldroid/desktop/wallpaper.nix +++ b/Droidnix/generated/modules/traveldroid/desktop/wallpaper.nix @@ -18,6 +18,7 @@ in pkgs.waypaper pkgs.socat ]; # Create the copy script using Home Manager, following Waybar style + This can not be done using a prepared script home-manager.users = { ${username} = { home.file = {