From 751432fbb1a1ac35658d07639111f37c030c8438 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Thu, 13 Aug 2026 15:48:14 +0200 Subject: [PATCH] feat(hypr): launch workspace applications on startup Start Obsidian on workspace 8, Thunderbird on workspace 9, and Spotify in the scratchpad. --- .config/hypr/hyprland.lua | 1 + .config/hypr/machine.lua##class.arch_desktop | 1 + .config/hypr/machine.lua##class.arch_laptop | 3 +++ 3 files changed, 5 insertions(+) diff --git a/.config/hypr/hyprland.lua b/.config/hypr/hyprland.lua index b662ec9..004e3b7 100644 --- a/.config/hypr/hyprland.lua +++ b/.config/hypr/hyprland.lua @@ -139,6 +139,7 @@ local function float_rule(name, match, border_size) }) end +hl.window_rule({ name = "obsidian-workspace", match = { class = "^obsidian$" }, workspace = "8" }) hl.window_rule({ name = "thunderbird-workspace", match = { class = "^Thunderbird$" }, workspace = "9" }) float_rule("pi-status-ui", { class = "^(pi-status-ui|Pi-status-ui)$" }, 1) float_rule("alsamixer", { title = "^alsamixer$" }, 1) diff --git a/.config/hypr/machine.lua##class.arch_desktop b/.config/hypr/machine.lua##class.arch_desktop index 030294f..2c4f2b8 100644 --- a/.config/hypr/machine.lua##class.arch_desktop +++ b/.config/hypr/machine.lua##class.arch_desktop @@ -13,6 +13,7 @@ return { "hypridle", -- Electron's tray icon registers only when the SNI watcher already exists. "sh -c 'sleep 2; exec mullvad-vpn'", + "obsidian", "thunderbird", "nextcloud", "spotify", diff --git a/.config/hypr/machine.lua##class.arch_laptop b/.config/hypr/machine.lua##class.arch_laptop index 1345439..5493998 100644 --- a/.config/hypr/machine.lua##class.arch_laptop +++ b/.config/hypr/machine.lua##class.arch_laptop @@ -22,6 +22,9 @@ return { "noctalia", -- Start after Noctalia has claimed the StatusNotifier watcher. "sh -c 'sleep 2; exec mullvad-vpn'", + "obsidian", + "thunderbird", "nextcloud", + "spotify", }, }