chs: re-add drifted files

This commit is contained in:
Prad Nukala committed 2026-08-14 15:01:38 -04:00
1 parent 10fb7dfffc
commit b6b0f19dde
5 files changed
+17 -9

No files matched your search

+4 -4
View File
@@ -262,13 +262,13 @@
"matcher": ".*" "matcher": ".*"
}, },
{ {
"matcher": "tldraw-offline",
"hooks": [ "hooks": [
{ {
"command": "sh '/home/prad/skills/tldraw-offline/inject-server-context.sh' SubagentStart", "type": "command",
"type": "command" "command": "sh '/home/prad/skills/tldraw-offline/inject-server-context.sh' SubagentStart"
} }
], ]
"matcher": "tldraw-offline"
} }
], ],
"SubagentStop": [ "SubagentStop": [
+1 -1
View File
@@ -50,7 +50,7 @@ binds {
Super+Shift+Alt+Ctrl+W { spawn "niri-dynamic-workspaces" "switch" "w"; } Super+Shift+Alt+Ctrl+W { spawn "niri-dynamic-workspaces" "switch" "w"; }
Super+Shift+Alt+Ctrl+H { spawn "niri-dynamic-workspaces" "switch" "h"; } Super+Shift+Alt+Ctrl+H { spawn "niri-dynamic-workspaces" "switch" "h"; }
Super+Alt+Ctrl+Y { spawn "vicinae" "vicinae://launch/applications/rocks.shy.VacuumTube"; } Super+Alt+Ctrl+Y { spawn "niri-launch-webapp"; }
Super+Alt+Ctrl+X { spawn "niri-dynamic-workspaces" "switch" "x"; } Super+Alt+Ctrl+X { spawn "niri-dynamic-workspaces" "switch" "x"; }
// ─── Monitors ─── (Vertical) // ─── Monitors ─── (Vertical)
+8 -3
View File
@@ -11,8 +11,10 @@ declare -A KITTY_CMDS=(
# Handle webapp cycling and launching # Handle webapp cycling and launching
if [[ "$APP" == "webapp" ]]; then if [[ "$APP" == "webapp" ]]; then
# Cycle through all WebApps # Cycle all WebApps: Firefox SSAs (WebApp-*) and Chromium/Brave SSAs (chrome-*-Default).
INSTANCES=($(niri msg -j windows | jq -r '.[] | select(.app_id | startswith("WebApp-")) | .id')) # Falls back to launching YouTube if none are open. Excludes real browsers (chromium/brave-*).
INSTANCES=($(niri msg -j windows | jq -r '.[] | select((.app_id // "") | ascii_downcase | test("^(webapp-|chrome-)")) | .id'))
FALLBACK_APP="webapp-youtube"
elif [[ "$APP" == webapp-* ]]; then elif [[ "$APP" == webapp-* ]]; then
# Extract the webapp name (e.g., "webapp-claude" -> "Claude") # Extract the webapp name (e.g., "webapp-claude" -> "Claude")
WEBAPP_NAME=$(echo "$APP" | sed 's/webapp-//' | sed 's/.*/\u&/') WEBAPP_NAME=$(echo "$APP" | sed 's/webapp-//' | sed 's/.*/\u&/')
@@ -21,7 +23,7 @@ elif [[ "$APP" == webapp-* ]]; then
if [ -z "$APP_ID" ]; then if [ -z "$APP_ID" ]; then
# No instance running, launch via gtk-launch # No instance running, launch via gtk-launch
DESKTOP_FILE=$(find ~/.local/share/applications -name "WebApp-${WEBAPP_NAME}*.desktop" -print -quit 2>/dev/null) DESKTOP_FILE=$(find ~/.local/share/applications -iname "WebApp-${WEBAPP_NAME}*.desktop" -print -quit 2>/dev/null)
if [ -n "$DESKTOP_FILE" ]; then if [ -n "$DESKTOP_FILE" ]; then
gtk-launch "$(basename "$DESKTOP_FILE")" gtk-launch "$(basename "$DESKTOP_FILE")"
else else
@@ -73,6 +75,9 @@ if [ ${#INSTANCES[@]} -eq 0 ]; then
niri msg action spawn -- $DEFAULT_SPAWN niri msg action spawn -- $DEFAULT_SPAWN
exit 0 exit 0
fi fi
if [ -n "${FALLBACK_APP:-}" ]; then
exec "$0" "$FALLBACK_APP"
fi
# Removed "kitty" from this block so it falls through to the spawn command # Removed "kitty" from this block so it falls through to the spawn command
if [[ "$APP" == "webapp" || "$APP" == "ghostty" ]]; then if [[ "$APP" == "webapp" || "$APP" == "ghostty" ]]; then
echo "No ${APP} windows running" echo "No ${APP} windows running"
@@ -0,0 +1,3 @@
#!/bin/bash
# Cycle through all open WebApps; launch YouTube if none are open.
exec "$(dirname "$(readlink -f "$0")")/niri-launch" webapp
+1 -1
View File
@@ -2,4 +2,4 @@ theme:
dark: cyberdream dark: cyberdream
symbolPreset: nerd symbolPreset: nerd
setupVersion: 1 setupVersion: 1
hideThinkingBlock: true hideThinkingBlock: false