chs: re-add drifted files

This commit is contained in:
Prad Nukala committed 2026-08-14 14:43:14 -04:00
1 parent d5e69f0b9e
commit 10fb7dfffc
3 files changed
+9 -2

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ binds {
Super+Ctrl+A { spawn "vicinae" "vicinae://launch/applications/com.anthropic.Claude"; } Super+Ctrl+A { spawn "vicinae" "vicinae://launch/applications/com.anthropic.Claude"; }
Super+Ctrl+G { spawn "vicinae" "vicinae://launch/applications/gemini-desktop"; } 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+J { spawn "niri-launch-terminal"; }
Super+Alt+Ctrl+K { spawn "niri-launch-browser"; } Super+Alt+Ctrl+K { spawn "niri-launch-browser"; }
Super+Alt+Ctrl+O { spawn "niri-launch" "obsidian"; } Super+Alt+Ctrl+O { spawn "niri-launch" "obsidian"; }
+5 -1
View File
@@ -53,12 +53,16 @@ elif [[ "$APP" == "ghostty" ]]; then
INSTANCES=($(niri msg -j windows | jq -r '.[] | select(.app_id | test("ghostty"; "i")) | .id')) INSTANCES=($(niri msg -j windows | jq -r '.[] | select(.app_id | test("ghostty"; "i")) | .id'))
elif [[ "$APP" == "browser" ]]; then elif [[ "$APP" == "browser" ]]; then
# Cycle through all browsers (brave/chromium/firefox) + Claude desktop, launch default if none # 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" DEFAULT_SPAWN="brave-origin-nightly"
elif [[ "$APP" == "terminal" ]]; then elif [[ "$APP" == "terminal" ]]; then
# Cycle through all terminals (ghostty/kitty/alacritty), launch default if none # 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')) INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("kitty|alacritty|ghostty")) | .id'))
DEFAULT_SPAWN="kitty" 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 else
INSTANCES=($(niri msg -j windows | jq -r ".[] | select(.app_id==\"${APP}\") | .id")) INSTANCES=($(niri msg -j windows | jq -r ".[] | select(.app_id==\"${APP}\") | .id"))
fi fi
+3
View File
@@ -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