From b9b46927133f675823c6df059ec4c1285befe6d6 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Fri, 1 May 2026 12:11:07 +0200 Subject: [PATCH] Regenerated --- Droidnix/README.html | 923 ++++++++++-------- Droidnix/README.org | 115 ++- .../.config/quickshell/powermgmt/shell.qml | 115 ++- 3 files changed, 701 insertions(+), 452 deletions(-) diff --git a/Droidnix/README.html b/Droidnix/README.html index 3e53cb26c..d37b6706b 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,146 +204,146 @@

Table of Contents

-
-

Shortcuts

-
+
+

Shortcuts

+

Introduction The Assets Folder @@ -359,25 +359,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: @@ -390,9 +390,9 @@ The Droidnix repository is organized into two main parts:

-
-

Root Level

-
+
+

Root Level

+
  • = is the entry point and imports:
      @@ -403,16 +403,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. @@ -433,9 +433,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

@@ -514,9 +514,9 @@ com.logseq.Logseq
-
-

generated/assets/aliases.conf

-
+
+

generated/assets/aliases.conf

+

This is a list of additional apps to install

@@ -558,9 +558,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.

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

generated/modules/traveldroid/system/colors.nix

-
+
+

generated/modules/traveldroid/system/colors.nix

+

Setting the colors for Droidnix.

@@ -730,9 +730,9 @@ in
-
-

generated/hosts/traveldroid/boot.nix

-
+
+

generated/hosts/traveldroid/boot.nix

+
{ config, pkgs, lib, flakeRoot, ... }:
 {
@@ -803,9 +803,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. @@ -863,9 +863,9 @@ in
-
-

generated/hosts/traveldroid/host.nix

-
+
+

generated/hosts/traveldroid/host.nix

+
{ lib, config, pkgs, flakeRoot, import-tree, home-manager, ... }:
 
@@ -925,13 +925,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

@@ -1039,9 +1039,9 @@ in {
-
-

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

-
+
+

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

+

This installs emacs

@@ -1136,9 +1136,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

@@ -1166,9 +1166,9 @@ in
-
-

generated/modules/traveldroid/apps/kitty.nix

-
+
+

generated/modules/traveldroid/apps/kitty.nix

+

This file sets up Kitty terminal

@@ -1220,9 +1220,9 @@ in
-
-

generated/modules/traveldroid/apps/stackstorage.nix

-
+
+

generated/modules/traveldroid/apps/stackstorage.nix

+

Installs the TransIP Stackstorage Appimage

@@ -1246,9 +1246,9 @@ in {
-
-

generated/modules/traveldroid/apps/starship.nix

-
+
+

generated/modules/traveldroid/apps/starship.nix

+

This file sets up starship prompt

@@ -1287,9 +1287,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

@@ -1335,9 +1335,9 @@ in
-
-

generated/modules/traveldroid/apps/wofi.nix

-
+
+

generated/modules/traveldroid/apps/wofi.nix

+

This is the install for Wofi, the launcher

@@ -1372,9 +1372,9 @@ in
-
-

generated/modules/traveldroid/apps/zenbrowser.nix

-
+
+

generated/modules/traveldroid/apps/zenbrowser.nix

+

This installs zen browser

@@ -1394,9 +1394,9 @@ in
-
-

generated/modules/traveldroid/apps/zeditor.nix

-
+
+

generated/modules/traveldroid/apps/zeditor.nix

+

This sets Zed Editor

@@ -1451,9 +1451,9 @@ in
-
-

generated/modules/traveldroid/apps/zsh.nix

-
+
+

generated/modules/traveldroid/apps/zsh.nix

+

This sets up the zsh in the terminal

@@ -1567,13 +1567,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

@@ -1591,9 +1591,9 @@ This file installs and configures fonts
-
-

generated/modules/traveldroid/desktop/gtk.nix

-
+
+

generated/modules/traveldroid/desktop/gtk.nix

+

Setting up GTK

@@ -1619,9 +1619,9 @@ in
-
-

generated/modules/traveldroid/desktop/hyprland.nix

-
+
+

generated/modules/traveldroid/desktop/hyprland.nix

+

Setting up Hyprland

@@ -1666,9 +1666,9 @@ in
-
-

generated/modules/traveldroid/desktop/stylix.nix

-
+
+

generated/modules/traveldroid/desktop/stylix.nix

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

generated/modules/traveldroid/desktop/wallpaper.nix

-
+
+

generated/modules/traveldroid/desktop/wallpaper.nix

+

Setting up wallpaper engine + wallpaper gui

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

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

-
+
+

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

+

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

@@ -1913,9 +1913,9 @@ randomize_and_rename_wallpapers
-
-

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

-
+
+

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

+

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

@@ -1936,9 +1936,9 @@ done
-
-

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

-
+
+

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

+

The script that actually sets wallpaper per workspace

@@ -1981,9 +1981,9 @@ esac
-
-

generated/modules/traveldroid/desktop/waybar.nix

-
+
+

generated/modules/traveldroid/desktop/waybar.nix

+

This file installs and configures waybar

@@ -2029,9 +2029,9 @@ in
-
-

generated/modules/traveldroid/desktop/wayland.nix

-
+
+

generated/modules/traveldroid/desktop/wayland.nix

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

generated/modules/traveldroid/desktop/xdg.nix

-
+
+

generated/modules/traveldroid/desktop/xdg.nix

+

This sets the XDG implementation

@@ -2134,13 +2134,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, ... }:
 
@@ -2161,9 +2161,9 @@ in
 
-
-

generated/modules/traveldroid/system/avahi.nix

-
+
+

generated/modules/traveldroid/system/avahi.nix

+

Avahi helps discovering services

@@ -2183,9 +2183,9 @@ Avahi helps discovering services
-
-

generated/modules/traveldroid/system/bluetooth.nix

-
+
+

generated/modules/traveldroid/system/bluetooth.nix

+

Installing Bluetooth services and supporting aps

@@ -2212,9 +2212,9 @@ in
-
-

generated/modules/traveldroid/system/copy_scripts.nix

-
+
+

generated/modules/traveldroid/system/copy_scripts.nix

+

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

@@ -2255,9 +2255,9 @@ in
-
-

generated/modules/traveldroid/system/dbus.nix

-
+
+

generated/modules/traveldroid/system/dbus.nix

+

This sets the dbus implementation

@@ -2284,9 +2284,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/firewall.nix

-
+
+

generated/modules/traveldroid/system/firewall.nix

+

This sets the firewall.

@@ -2367,9 +2367,9 @@ This sets the firewall.
-
-

generated/modules/traveldroid/system/hypridle.nix

-
+
+

generated/modules/traveldroid/system/hypridle.nix

+

This installs hypridle

@@ -2425,9 +2425,9 @@ in
-
-

generated/modules/traveldroid/system/hyprlock.nix

-
+
+

generated/modules/traveldroid/system/hyprlock.nix

+

This installs hyprlock

@@ -2484,9 +2484,9 @@ in
-
-

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

-
+
+

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

+

This sets the dbus implementation

@@ -2534,9 +2534,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

@@ -2584,9 +2584,9 @@ in
-
-

generated/modules/traveldroid/system/networking.nix

-
+
+

generated/modules/traveldroid/system/networking.nix

+

This sets the networking.

@@ -2635,9 +2635,9 @@ This sets the networking.
-
-

generated/modules/traveldroid/system/numlock-check.nix

-
+
+

generated/modules/traveldroid/system/numlock-check.nix

+
{ lib, config, pkgs, flakeRoot, ... }:
 let
@@ -2680,9 +2680,9 @@ in
 
-
-

generated/modules/traveldroid/system/nix.nix

-
+
+

generated/modules/traveldroid/system/nix.nix

+
{ lib, config, ... }:
 {
@@ -2705,9 +2705,9 @@ in
 
-
-

generated/modules/traveldroid/system/printing.nix

-
+
+

generated/modules/traveldroid/system/printing.nix

+

This sets the dbus implementation

@@ -2731,9 +2731,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/quickshell.nix

-
+
+

generated/modules/traveldroid/system/quickshell.nix

+

This sets the quickshell implementation

@@ -2779,9 +2779,9 @@ in
-
-

generated/modules/traveldroid/system/swaync.nix

-
+
+

generated/modules/traveldroid/system/swaync.nix

+

This sets the dbus implementation

@@ -2830,13 +2830,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

@@ -2898,9 +2898,9 @@ in

These are all the prepared config files

-
-

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

-
+
+

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

+

This contaions emacs

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

generated/.config/emacs/init.el

-
+
+

generated/.config/emacs/init.el

+

This contaions emacs

@@ -3413,9 +3413,9 @@ the top of the file."
-
-

generated/.config/hypr/animations.conf

-
+
+

generated/.config/hypr/animations.conf

+

These settings decide animations

@@ -3458,9 +3458,9 @@ These settings decide animations
-
-

generated/.config/hypr/behaviour.conf

-
+
+

generated/.config/hypr/behaviour.conf

+

These are config files for .config/hypr

@@ -3481,9 +3481,9 @@ input {
-
-

generated/.config/hypr/bindings.conf

-
+
+

generated/.config/hypr/bindings.conf

+

These are config files for .config/hypr

@@ -3650,9 +3650,9 @@ bind = $mainMod, U, exec, qs -c updater
-
-

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

-
+
+

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

+

What is executed after startup, when hyprland is running?

@@ -3674,9 +3674,9 @@ exec-once = waybar
-
-

generated/.config/hypr/hypridle.conf

-
+
+

generated/.config/hypr/hypridle.conf

+

These are config files for hypridle

@@ -3707,9 +3707,9 @@ listener {
-
-

generated/.config/hypr/hyprlock.conf

-
+
+

generated/.config/hypr/hyprlock.conf

+

These are config files for .config/hypr

@@ -3739,9 +3739,9 @@ input-field {
-
-

generated/.config/hypr/hyprland.conf

-
+
+

generated/.config/hypr/hyprland.conf

+

These are config files for .config/hypr

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

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

-
+
+

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

+

These are config files for .config/hypr

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

generated/.config/hypr/layout.conf

-
+
+

generated/.config/hypr/layout.conf

+

These settings control Hyprland config

@@ -3792,9 +3792,9 @@ scrolling {
-
-

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

-
+
+

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

+

These are config files for .config/hypr

@@ -3805,9 +3805,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

@@ -3873,9 +3873,9 @@ misc {
-
-

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

-
+
+

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

+

These are config files for .config/hypr

@@ -3976,9 +3976,9 @@ windowrule {
-
-

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

-
+
+

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

+

These setttings configure rules for workspaces

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

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

-
+
+

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

+

offers a audio widget

@@ -4389,9 +4389,9 @@ ShellRoot {
-
-

generated/.config/quickshell/powermgmt/shell.qml

-
+
+

generated/.config/quickshell/powermgmt/shell.qml

+

Provides powermanagement settings

@@ -4444,7 +4444,8 @@ ShellRoot { // ── State ────────────────────────────────────────────────────────────── property string activeProfile: "balanced" // performance | balanced | powersave - property bool lidClose: true + // lid mode: "suspend" | "ignore_external" | "ignore" + property string lidMode: "suspend" property bool wifiPower: true property bool bluetoothOff: false property string statusMsg: "" @@ -4568,11 +4569,30 @@ ShellRoot { showStatus("Bluetooth " + (v ? "disabled" : "enabled"), true) } - function toggleLid(v) { - lidClose = v - run(["bash", "-c", - "loginctl set-handle-lid-switch " + (v ? "suspend" : "ignore")]) - showStatus("Lid close → " + (v ? "suspend" : "ignore"), true) + function setLidMode(mode) { + lidMode = mode + // "suspend" = always suspend on lid close + // "ignore_external" = suspend normally, but ignore when ext monitor attached + // "ignore" = never suspend on lid close + if (mode === "suspend") { + run(["bash", "-c", + "loginctl set-handle-lid-switch suspend && " + + "loginctl set-handle-lid-switch-external-power suspend"]) + } else if (mode === "ignore_external") { + run(["bash", "-c", + "loginctl set-handle-lid-switch suspend && " + + "loginctl set-handle-lid-switch-external-power ignore"]) + } else { + run(["bash", "-c", + "loginctl set-handle-lid-switch ignore && " + + "loginctl set-handle-lid-switch-external-power ignore"]) + } + var labels = { + "suspend": "always suspend", + "ignore_external": "ignore when monitor attached", + "ignore": "never suspend" + } + showStatus("Lid close → " + labels[mode], true) } // ── Processes ────────────────────────────────────────────────────────── @@ -4777,11 +4797,9 @@ ShellRoot { // ── Toggles ───────────────────────────────────────────── SectionLabel { label: "Settings" } - ToggleRow { - label: "Suspend on lid close" - icon: "💻" - checked: lidClose - onToggled: (v) => toggleLid(v) + LidModeRow { + value: lidMode + onPicked: (m) => setLidMode(m) } ToggleRow { label: "WiFi power saving" @@ -4835,11 +4853,11 @@ ShellRoot { component SectionLabel: Text { required property string label - text: label.toUpperCase() - color: colors.overlay0 - font.pixelSize: 10 - font.bold: true - letterSpacing: 1.2 + text: label.toUpperCase() + color: colors.overlay0 + font.pixelSize: 10 + font.bold: true + font.letterSpacing: 1.2 } component ProfileButton: Rectangle { @@ -5024,14 +5042,79 @@ ShellRoot { onClicked: parent.clicked() } } + + component LidModeRow: ColumnLayout { + required property string value + signal picked(string m) + + Layout.fillWidth: true + spacing: 6 + + RowLayout { + spacing: 8 + Text { text: "💻"; font.pixelSize: 14 } + Text { + text: "Lid close behaviour" + color: colors.subtext1 + font.pixelSize: 12 + } + } + + RowLayout { + Layout.fillWidth: true + spacing: 6 + + Repeater { + model: [ + { key: "suspend", label: "Always suspend", icon: "💤" }, + { key: "ignore_external", label: "Ignore w/ monitor", icon: "🖥" }, + { key: "ignore", label: "Never suspend", icon: "🚫" } + ] + delegate: Rectangle { + readonly property bool sel: value === modelData.key + Layout.fillWidth: true + height: 44 + radius: 8 + color: sel ? Qt.rgba(colors.teal.r, colors.teal.g, colors.teal.b, 0.15) : colors.surface0 + border.color: sel ? colors.teal : "transparent" + border.width: 1 + + Behavior on color { ColorAnimation { duration: 120 } } + + ColumnLayout { + anchors.centerIn: parent + spacing: 1 + Text { + Layout.alignment: Qt.AlignHCenter + text: modelData.icon + font.pixelSize: 14 + } + Text { + Layout.alignment: Qt.AlignHCenter + text: modelData.label + color: sel ? colors.teal : colors.subtext0 + font.pixelSize: 9 + font.bold: sel + } + } + MouseArea { + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + onClicked: picked(modelData.key) + } + } + } + } + } + }
-
-

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

-
+
+

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

+

Provides a powermenu

@@ -5179,9 +5262,9 @@ ShellRoot {
-
-

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

-
+
+

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

+

Updates the system

@@ -5488,9 +5571,9 @@ ShellRoot {
-
-

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

-
+
+

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

+

Provides a layout menu

@@ -5637,9 +5720,9 @@ ShellRoot {
-
-

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

-
+
+

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

+

Providing an media

@@ -5656,9 +5739,9 @@ fi
-
-

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

-
+
+

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

+

Providing an media

@@ -5757,9 +5840,9 @@ jq -c -n \
-
-

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

-
+
+

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

+

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

@@ -5780,9 +5863,9 @@ fi
-
-

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

-
+
+

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

+

Providing an media

@@ -5797,9 +5880,9 @@ Providing an media
-
-

generated/.config/shared/css/colors.css

-
+
+

generated/.config/shared/css/colors.css

+

A file containing color variables

@@ -5840,9 +5923,9 @@ A file containing color variables
-
-

generated/.config/starship.toml

-
+
+

generated/.config/starship.toml

+

These are config files for Starship

@@ -6130,9 +6213,9 @@ crust = "#181926"
-
-

generated/.config/stylix/stylix.conf

-
+
+

generated/.config/stylix/stylix.conf

+

These are config files for .config/stylix

@@ -6168,9 +6251,9 @@ icons = {
-
-

generated/.config/stylix/palette.json

-
+
+

generated/.config/stylix/palette.json

+

These are config files for .config/stylix

@@ -6200,9 +6283,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

@@ -6279,9 +6362,9 @@ These are config files for .config/stylix
-
-

generated/.config/swaync/config.json

-
+
+

generated/.config/swaync/config.json

+

These are config files for waybar

@@ -6342,9 +6425,9 @@ These are config files for waybar
-
-

generated/.config/swaync/style.css

-
+
+

generated/.config/swaync/style.css

+

These are config files for waybar

@@ -6537,9 +6620,9 @@ These are config files for waybar
-
-

generated/.config/waybar/config.jsonc

-
+
+

generated/.config/waybar/config.jsonc

+

These are config files for waybar

@@ -6887,9 +6970,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

@@ -7149,9 +7232,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

@@ -7176,9 +7259,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

@@ -7220,9 +7303,9 @@ jq -c -n \
-
-

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

-
+
+

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

+

These are config files for waybar

@@ -7244,9 +7327,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

@@ -7270,9 +7353,9 @@ fi
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for waypaper

@@ -7309,9 +7392,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for .config/waypaper

@@ -7347,9 +7430,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/wofi/config

-
+
+

generated/.config/wofi/config

+

These are config files for .config/wofi

@@ -7376,9 +7459,9 @@ prompt = > ...
-
-

generated/.config/wofi/style.css

-
+
+

generated/.config/wofi/style.css

+

This is the default layout for wofi

@@ -7474,9 +7557,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

@@ -7514,9 +7597,9 @@ These are config files for Zed editor
-
-

generated/.config/zsh/.zshrc

-
+
+

generated/.config/zsh/.zshrc

+

This sets up the zsh in the terminal

@@ -7553,7 +7636,7 @@ cd() {

Author: Henro Veijer

-

Created: 2026-05-01 vr 11:54

+

Created: 2026-05-01 vr 12:11

Validate

diff --git a/Droidnix/README.org b/Droidnix/README.org index fc2f25802..cf66a0e94 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -3709,7 +3709,8 @@ ShellRoot { // ── State ────────────────────────────────────────────────────────────── property string activeProfile: "balanced" // performance | balanced | powersave - property bool lidClose: true + // lid mode: "suspend" | "ignore_external" | "ignore" + property string lidMode: "suspend" property bool wifiPower: true property bool bluetoothOff: false property string statusMsg: "" @@ -3833,11 +3834,30 @@ ShellRoot { showStatus("Bluetooth " + (v ? "disabled" : "enabled"), true) } - function toggleLid(v) { - lidClose = v - run(["bash", "-c", - "loginctl set-handle-lid-switch " + (v ? "suspend" : "ignore")]) - showStatus("Lid close → " + (v ? "suspend" : "ignore"), true) + function setLidMode(mode) { + lidMode = mode + // "suspend" = always suspend on lid close + // "ignore_external" = suspend normally, but ignore when ext monitor attached + // "ignore" = never suspend on lid close + if (mode === "suspend") { + run(["bash", "-c", + "loginctl set-handle-lid-switch suspend && " + + "loginctl set-handle-lid-switch-external-power suspend"]) + } else if (mode === "ignore_external") { + run(["bash", "-c", + "loginctl set-handle-lid-switch suspend && " + + "loginctl set-handle-lid-switch-external-power ignore"]) + } else { + run(["bash", "-c", + "loginctl set-handle-lid-switch ignore && " + + "loginctl set-handle-lid-switch-external-power ignore"]) + } + var labels = { + "suspend": "always suspend", + "ignore_external": "ignore when monitor attached", + "ignore": "never suspend" + } + showStatus("Lid close → " + labels[mode], true) } // ── Processes ────────────────────────────────────────────────────────── @@ -4042,11 +4062,9 @@ ShellRoot { // ── Toggles ───────────────────────────────────────────── SectionLabel { label: "Settings" } - ToggleRow { - label: "Suspend on lid close" - icon: "💻" - checked: lidClose - onToggled: (v) => toggleLid(v) + LidModeRow { + value: lidMode + onPicked: (m) => setLidMode(m) } ToggleRow { label: "WiFi power saving" @@ -4100,11 +4118,11 @@ ShellRoot { component SectionLabel: Text { required property string label - text: label.toUpperCase() - color: colors.overlay0 - font.pixelSize: 10 - font.bold: true - letterSpacing: 1.2 + text: label.toUpperCase() + color: colors.overlay0 + font.pixelSize: 10 + font.bold: true + font.letterSpacing: 1.2 } component ProfileButton: Rectangle { @@ -4289,6 +4307,71 @@ ShellRoot { onClicked: parent.clicked() } } + + component LidModeRow: ColumnLayout { + required property string value + signal picked(string m) + + Layout.fillWidth: true + spacing: 6 + + RowLayout { + spacing: 8 + Text { text: "💻"; font.pixelSize: 14 } + Text { + text: "Lid close behaviour" + color: colors.subtext1 + font.pixelSize: 12 + } + } + + RowLayout { + Layout.fillWidth: true + spacing: 6 + + Repeater { + model: [ + { key: "suspend", label: "Always suspend", icon: "💤" }, + { key: "ignore_external", label: "Ignore w/ monitor", icon: "🖥" }, + { key: "ignore", label: "Never suspend", icon: "🚫" } + ] + delegate: Rectangle { + readonly property bool sel: value === modelData.key + Layout.fillWidth: true + height: 44 + radius: 8 + color: sel ? Qt.rgba(colors.teal.r, colors.teal.g, colors.teal.b, 0.15) : colors.surface0 + border.color: sel ? colors.teal : "transparent" + border.width: 1 + + Behavior on color { ColorAnimation { duration: 120 } } + + ColumnLayout { + anchors.centerIn: parent + spacing: 1 + Text { + Layout.alignment: Qt.AlignHCenter + text: modelData.icon + font.pixelSize: 14 + } + Text { + Layout.alignment: Qt.AlignHCenter + text: modelData.label + color: sel ? colors.teal : colors.subtext0 + font.pixelSize: 9 + font.bold: sel + } + } + MouseArea { + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + onClicked: picked(modelData.key) + } + } + } + } + } + } #+END_SRC diff --git a/Droidnix/generated/.config/quickshell/powermgmt/shell.qml b/Droidnix/generated/.config/quickshell/powermgmt/shell.qml index 2155d344a..9fb9d730c 100644 --- a/Droidnix/generated/.config/quickshell/powermgmt/shell.qml +++ b/Droidnix/generated/.config/quickshell/powermgmt/shell.qml @@ -47,7 +47,8 @@ ShellRoot { // ── State ────────────────────────────────────────────────────────────── property string activeProfile: "balanced" // performance | balanced | powersave - property bool lidClose: true + // lid mode: "suspend" | "ignore_external" | "ignore" + property string lidMode: "suspend" property bool wifiPower: true property bool bluetoothOff: false property string statusMsg: "" @@ -171,11 +172,30 @@ ShellRoot { showStatus("Bluetooth " + (v ? "disabled" : "enabled"), true) } - function toggleLid(v) { - lidClose = v - run(["bash", "-c", - "loginctl set-handle-lid-switch " + (v ? "suspend" : "ignore")]) - showStatus("Lid close → " + (v ? "suspend" : "ignore"), true) + function setLidMode(mode) { + lidMode = mode + // "suspend" = always suspend on lid close + // "ignore_external" = suspend normally, but ignore when ext monitor attached + // "ignore" = never suspend on lid close + if (mode === "suspend") { + run(["bash", "-c", + "loginctl set-handle-lid-switch suspend && " + + "loginctl set-handle-lid-switch-external-power suspend"]) + } else if (mode === "ignore_external") { + run(["bash", "-c", + "loginctl set-handle-lid-switch suspend && " + + "loginctl set-handle-lid-switch-external-power ignore"]) + } else { + run(["bash", "-c", + "loginctl set-handle-lid-switch ignore && " + + "loginctl set-handle-lid-switch-external-power ignore"]) + } + var labels = { + "suspend": "always suspend", + "ignore_external": "ignore when monitor attached", + "ignore": "never suspend" + } + showStatus("Lid close → " + labels[mode], true) } // ── Processes ────────────────────────────────────────────────────────── @@ -380,11 +400,9 @@ ShellRoot { // ── Toggles ───────────────────────────────────────────── SectionLabel { label: "Settings" } - ToggleRow { - label: "Suspend on lid close" - icon: "💻" - checked: lidClose - onToggled: (v) => toggleLid(v) + LidModeRow { + value: lidMode + onPicked: (m) => setLidMode(m) } ToggleRow { label: "WiFi power saving" @@ -438,11 +456,11 @@ ShellRoot { component SectionLabel: Text { required property string label - text: label.toUpperCase() - color: colors.overlay0 - font.pixelSize: 10 - font.bold: true - letterSpacing: 1.2 + text: label.toUpperCase() + color: colors.overlay0 + font.pixelSize: 10 + font.bold: true + font.letterSpacing: 1.2 } component ProfileButton: Rectangle { @@ -627,4 +645,69 @@ ShellRoot { onClicked: parent.clicked() } } + + component LidModeRow: ColumnLayout { + required property string value + signal picked(string m) + + Layout.fillWidth: true + spacing: 6 + + RowLayout { + spacing: 8 + Text { text: "💻"; font.pixelSize: 14 } + Text { + text: "Lid close behaviour" + color: colors.subtext1 + font.pixelSize: 12 + } + } + + RowLayout { + Layout.fillWidth: true + spacing: 6 + + Repeater { + model: [ + { key: "suspend", label: "Always suspend", icon: "💤" }, + { key: "ignore_external", label: "Ignore w/ monitor", icon: "🖥" }, + { key: "ignore", label: "Never suspend", icon: "🚫" } + ] + delegate: Rectangle { + readonly property bool sel: value === modelData.key + Layout.fillWidth: true + height: 44 + radius: 8 + color: sel ? Qt.rgba(colors.teal.r, colors.teal.g, colors.teal.b, 0.15) : colors.surface0 + border.color: sel ? colors.teal : "transparent" + border.width: 1 + + Behavior on color { ColorAnimation { duration: 120 } } + + ColumnLayout { + anchors.centerIn: parent + spacing: 1 + Text { + Layout.alignment: Qt.AlignHCenter + text: modelData.icon + font.pixelSize: 14 + } + Text { + Layout.alignment: Qt.AlignHCenter + text: modelData.label + color: sel ? colors.teal : colors.subtext0 + font.pixelSize: 9 + font.bold: sel + } + } + MouseArea { + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + onClicked: picked(modelData.key) + } + } + } + } + } + }