From 10fb7dfffc5de06e960df9f4766f7967574eae07 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 14 Aug 2026 14:43:14 -0400 Subject: [PATCH] chs: re-add drifted files --- dot_config/niri/exact_config.d/70-binds.kdl | 2 +- dot_local/bin/executable_niri-launch | 6 +++++- dot_local/bin/executable_niri-launch-ai | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 dot_local/bin/executable_niri-launch-ai diff --git a/dot_config/niri/exact_config.d/70-binds.kdl b/dot_config/niri/exact_config.d/70-binds.kdl index 8561e4e..4dbb3ea 100644 --- a/dot_config/niri/exact_config.d/70-binds.kdl +++ b/dot_config/niri/exact_config.d/70-binds.kdl @@ -32,7 +32,7 @@ binds { Super+Ctrl+A { spawn "vicinae" "vicinae://launch/applications/com.anthropic.Claude"; } Super+Ctrl+G { spawn "vicinae" "vicinae://launch/applications/gemini-desktop"; } - Super+Alt+Ctrl+H { spawn "hermes" "desktop"; } + Super+Alt+Ctrl+H { spawn "niri-launch-ai"; } Super+Alt+Ctrl+J { spawn "niri-launch-terminal"; } Super+Alt+Ctrl+K { spawn "niri-launch-browser"; } Super+Alt+Ctrl+O { spawn "niri-launch" "obsidian"; } diff --git a/dot_local/bin/executable_niri-launch b/dot_local/bin/executable_niri-launch index 7ddea93..b77318e 100644 --- a/dot_local/bin/executable_niri-launch +++ b/dot_local/bin/executable_niri-launch @@ -53,12 +53,16 @@ elif [[ "$APP" == "ghostty" ]]; then INSTANCES=($(niri msg -j windows | jq -r '.[] | select(.app_id | test("ghostty"; "i")) | .id')) elif [[ "$APP" == "browser" ]]; then # Cycle through all browsers (brave/chromium/firefox) + Claude desktop, launch default if none - INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("^(brave|chromium|firefox)|claude")) | .id')) + INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("^(brave|chromium|firefox)")) | .id')) DEFAULT_SPAWN="brave-origin-nightly" elif [[ "$APP" == "terminal" ]]; then # Cycle through all terminals (ghostty/kitty/alacritty), launch default if none INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("kitty|alacritty|ghostty")) | .id')) DEFAULT_SPAWN="kitty" +elif [[ "$APP" == "ai" ]]; then + # Cycle through AI desktop apps (Claude/Hermes), launch Hermes if none + INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("claude|hermes")) | .id')) + DEFAULT_SPAWN="hermes desktop" else INSTANCES=($(niri msg -j windows | jq -r ".[] | select(.app_id==\"${APP}\") | .id")) fi diff --git a/dot_local/bin/executable_niri-launch-ai b/dot_local/bin/executable_niri-launch-ai new file mode 100644 index 0000000..6df7ddd --- /dev/null +++ b/dot_local/bin/executable_niri-launch-ai @@ -0,0 +1,3 @@ +#!/bin/bash +# Cycle through AI desktop apps (Claude/Hermes); launch Hermes desktop if none open. +exec "$(dirname "$(readlink -f "$0")")/niri-launch" ai