From 15b44304c117fe3e7ea774cea79561a37094f11a Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Thu, 27 Aug 2026 15:50:31 +0200 Subject: [PATCH] config(user): desktop session and pi-status-bridge tweaks --- .../config/system/desktop/sddm/10-theme.conf | 2 +- .../environment.d/pi-status-bridge.conf | 2 +- .../config/user/common/hypr/hyprland.lua | 3 ++- .../config/user/common/mime/mimeapps.list | 19 ++++++++++++++- .../config/user/desktop/hypr/machine.lua | 2 ++ .../user/desktop/noctalia/90-machine.toml | 23 +++++++++++++++++-- 6 files changed, 45 insertions(+), 6 deletions(-) diff --git a/system-config/config/system/desktop/sddm/10-theme.conf b/system-config/config/system/desktop/sddm/10-theme.conf index bf66c73..788ea69 100644 --- a/system-config/config/system/desktop/sddm/10-theme.conf +++ b/system-config/config/system/desktop/sddm/10-theme.conf @@ -1,6 +1,6 @@ [Theme] ThemeDir=/usr/share/sddm/themes -Current=maya +Current=noctalia EnableAvatars=false [Users] diff --git a/system-config/config/user/common/environment.d/pi-status-bridge.conf b/system-config/config/user/common/environment.d/pi-status-bridge.conf index 0d40a4d..0e65e32 100644 --- a/system-config/config/user/common/environment.d/pi-status-bridge.conf +++ b/system-config/config/user/common/environment.d/pi-status-bridge.conf @@ -2,4 +2,4 @@ PI_STATUS_BRIDGE_CLIENT=/home/alex/.local/bin/pi-status-bridge-client PI_STATUS_UI_BINARY=/home/alex/.local/bin/pi-status-ui # Ctrl+Super+Space starts a fresh Pi session in this worktree. Change as needed. -PI_STATUS_DEFAULT_WORKTREE=/home/alex/projects/pi-status-bridge +PI_STATUS_DEFAULT_WORKTREE=/home/alex/projects/pi-gui diff --git a/system-config/config/user/common/hypr/hyprland.lua b/system-config/config/user/common/hypr/hyprland.lua index f95afb2..d96fe95 100644 --- a/system-config/config/user/common/hypr/hyprland.lua +++ b/system-config/config/user/common/hypr/hyprland.lua @@ -70,6 +70,7 @@ hl.workspace_rule({ local noctalia_ipc = "noctalia msg " local pi_status_ui_toggle = 'ui="${PI_STATUS_UI_BINARY:-$HOME/.local/bin/pi-status-ui}"; if test -x "$ui"; then setsid -f env TMPDIR=/tmp "$ui" --toggle >/tmp/pi-status-ui.log 2>&1; fi' local pi_status_ui_new_session = 'ui="${PI_STATUS_UI_BINARY:-$HOME/.local/bin/pi-status-ui}"; if test -x "$ui"; then setsid -f env TMPDIR=/tmp "$ui" --new >/tmp/pi-status-ui.log 2>&1; fi' +local pi_status_ui_quick = 'ui="${PI_STATUS_UI_BINARY:-$HOME/.local/bin/pi-status-ui}"; if test -x "$ui"; then setsid -f env TMPDIR=/tmp "$ui" --quick >/tmp/pi-status-ui.log 2>&1; fi' -- Tap and release Super on its own to open Noctalia's control-center home. hl.bind(main_mod .. " + SUPER_L", hl.dsp.exec_cmd(noctalia_ipc .. "panel-toggle control-center"), { release = true }) hl.bind(main_mod .. " + RETURN", hl.dsp.exec_cmd(terminal)) @@ -77,8 +78,8 @@ hl.bind(main_mod .. " + CTRL + RETURN", hl.dsp.exec_cmd(terminal .. " -e zellij" hl.bind(main_mod .. " + SHIFT + RETURN", hl.dsp.exec_cmd("rofi -show combi")) hl.bind(main_mod .. " + SPACE", hl.dsp.exec_cmd(pi_status_ui_toggle)) hl.bind(main_mod .. " + CTRL + SPACE", hl.dsp.exec_cmd(pi_status_ui_new_session)) +hl.bind(main_mod .. " + S", hl.dsp.exec_cmd(pi_status_ui_quick)) hl.bind(main_mod .. " + N", hl.dsp.exec_cmd(noctalia_ipc .. "panel-toggle alex/knowledge-lookup:panel")) -hl.bind(main_mod .. " + S", hl.dsp.exec_cmd(noctalia_ipc .. "panel-toggle control-center")) hl.bind(main_mod .. " + 0", hl.dsp.exec_cmd(noctalia_ipc .. "panel-toggle session")) hl.bind(main_mod .. " + SHIFT + F", hl.dsp.exec_cmd(noctalia_ipc .. "bar-toggle main")) hl.bind(main_mod .. " + SHIFT + R", hl.dsp.exec_cmd("hyprctl reload")) diff --git a/system-config/config/user/common/mime/mimeapps.list b/system-config/config/user/common/mime/mimeapps.list index 3ab5fb9..b694554 100644 --- a/system-config/config/user/common/mime/mimeapps.list +++ b/system-config/config/user/common/mime/mimeapps.list @@ -6,7 +6,24 @@ x-scheme-handler/webcal=userapp-Thunderbird-0DWKA3.desktop text/calendar=userapp-Thunderbird-0DWKA3.desktop application/x-extension-ics=userapp-Thunderbird-0DWKA3.desktop x-scheme-handler/webcals=userapp-Thunderbird-0DWKA3.desktop -image/png=nomacs.desktop +application/pdf=org.gnome.Evince.desktop +image/avif=org.nomacs.ImageLounge.desktop +image/bmp=org.nomacs.ImageLounge.desktop +image/gif=org.nomacs.ImageLounge.desktop +image/heic=org.nomacs.ImageLounge.desktop +image/heif=org.nomacs.ImageLounge.desktop +image/jpeg=org.nomacs.ImageLounge.desktop +image/jxl=org.nomacs.ImageLounge.desktop +image/png=org.nomacs.ImageLounge.desktop +image/tiff=org.nomacs.ImageLounge.desktop +image/webp=org.nomacs.ImageLounge.desktop +image/x-eps=org.nomacs.ImageLounge.desktop +image/x-ico=org.nomacs.ImageLounge.desktop +image/x-portable-bitmap=org.nomacs.ImageLounge.desktop +image/x-portable-graymap=org.nomacs.ImageLounge.desktop +image/x-portable-pixmap=org.nomacs.ImageLounge.desktop +image/x-xbitmap=org.nomacs.ImageLounge.desktop +image/x-xpixmap=org.nomacs.ImageLounge.desktop [Added Associations] x-scheme-handler/mailto=userapp-Thunderbird-JBPLA3.desktop; diff --git a/system-config/config/user/desktop/hypr/machine.lua b/system-config/config/user/desktop/hypr/machine.lua index 2c4f2b8..9ef7934 100644 --- a/system-config/config/user/desktop/hypr/machine.lua +++ b/system-config/config/user/desktop/hypr/machine.lua @@ -4,6 +4,8 @@ return { { output = "HDMI-A-1", mode = "3840x2160@120", + bitdepth = 10, + cm = "hdr", position = "0x0", scale = 1, }, diff --git a/system-config/config/user/desktop/noctalia/90-machine.toml b/system-config/config/user/desktop/noctalia/90-machine.toml index ebbce77..9aa71a0 100644 --- a/system-config/config/user/desktop/noctalia/90-machine.toml +++ b/system-config/config/user/desktop/noctalia/90-machine.toml @@ -94,7 +94,26 @@ width = 880 # GPU polling is disabled by Noctalia by default; enable it for the RTX 3090 widgets. gpu_poll_seconds = 2.0 -# The desktop's Hypridle listener provides a five-minute input-dismissable black -# OLED overlay. Keep Noctalia from issuing a competing DPMS screen-off action. +# Hypridle provides the five-minute input-dismissable black OLED overlay. +# On this desktop, Noctalia's only enabled idle action is plain suspend after +# thirty minutes; do not lock or transition into hibernation automatically. +[idle] +behavior_order = ["suspend"] + +[idle.behavior.lock] +enabled = false + [idle.behavior.screen-off] enabled = false + +[idle.behavior.suspend-then-hibernate] +enabled = false + +[idle.behavior.suspend] +action = "suspend" +enabled = true +timeout = 1800 +lock_before_suspend = false + +[lockscreen] +lock_before_suspend = false