mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
chs: re-add drifted files
This commit is contained in:
1 parent
d5e69f0b9e
commit
10fb7dfffc
3 files changed
+9
-2
No files matched your search
@@ -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"; }
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user