Skip to content

Commit bd162ce

Browse files
committed
auto-sync: [Sat Apr 4 11:27:24 AM -03 2026]
1 parent ae3e573 commit bd162ce

7 files changed

Lines changed: 77 additions & 24 deletions

File tree

hypr/.config/hypr/hyprland.conf

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ device {
257257
$mainMod = SUPER # Sets "Windows" key as main modifier
258258

259259
# Rofi Launcher
260-
bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun
260+
bind = , MENU, exec, pkill rofi || rofi -show drun
261261

262262
# Screenshot: Full Screen (Clipboard)
263263
bind = , Print, exec, grim - | wl-copy
@@ -269,7 +269,10 @@ bind = SHIFT, Print, exec, grim -g "$(slurp)" - | wl-copy
269269
bind = CTRL, Print, exec, grim -g "$(slurp)" - | swappy -f -
270270

271271
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
272-
bind = $mainMod, T, exec, bash -c 'if pgrep -x kitty > /dev/null; then hyprctl dispatch movetoworkspace 1,class:kitty; else hyprctl dispatch workspace 1 && kitty; fi'
272+
bind = $mainMod, U, exec, /home/runner/dotfiles/hypr/.config/hypr/scripts/summon_kitty.sh
273+
bind = $mainMod, I, exec, /home/runner/dotfiles/hypr/.config/hypr/scripts/summon_vivaldi.sh
274+
bind = $mainMod, O, exec, /home/runner/dotfiles/hypr/.config/hypr/scripts/summon_zapzap_betterbird.sh
275+
bind = $mainMod, P, exec, /home/runner/dotfiles/hypr/.config/hypr/scripts/summon_obsidian.sh
273276
bind = $mainMod, Q, killactive,
274277
bind = $mainMod, escape, exec, systemctl suspend
275278
bind = $mainMod, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
@@ -278,7 +281,7 @@ bind = $mainMod, E, exec, $fileManager
278281
bind = $mainMod, V, exec, voxtype record start
279282
bindr = $mainMod, V, exec, voxtype record stop
280283
bind = $mainMod, R, exec, $menu
281-
bind = $mainMod, P, pseudo, # dwindle
284+
bind = $mainMod SHIFT, P, pseudo, # dwindle
282285
# Rebound togglesplit from J to backslash so J can be used for vim motions
283286
bind = $mainMod, backslash, togglesplit, # dwindle
284287

@@ -293,28 +296,28 @@ bind = $mainMod CTRL, k, movefocus, u
293296
bind = $mainMod CTRL, j, movefocus, d
294297

295298
# Switch workspaces with mainMod + [0-9]
296-
bind = $mainMod, 1, workspace, 1
297-
bind = $mainMod, 2, workspace, 2
298-
bind = $mainMod, 3, workspace, 3
299-
bind = $mainMod, 4, workspace, 4
300-
bind = $mainMod, 5, workspace, 5
301-
bind = $mainMod, 6, workspace, 6
302-
bind = $mainMod, 7, workspace, 7
303-
bind = $mainMod, 8, workspace, 8
304-
bind = $mainMod, 9, workspace, 9
305-
bind = $mainMod, 0, workspace, 10
299+
bind = $mainMod, 1, workspace, 5
300+
bind = $mainMod, 2, workspace, 6
301+
bind = $mainMod, 3, workspace, 7
302+
bind = $mainMod, 4, workspace, 8
303+
bind = $mainMod, 5, workspace, 9
304+
bind = $mainMod, 6, workspace, 10
305+
bind = $mainMod, 7, workspace, 11
306+
bind = $mainMod, 8, workspace, 12
307+
bind = $mainMod, 9, workspace, 13
308+
bind = $mainMod, 0, workspace, 14
306309

307310
# Move active window to a workspace with mainMod + SHIFT + [0-9]
308-
bind = $mainMod SHIFT, 1, movetoworkspace, 1
309-
bind = $mainMod SHIFT, 2, movetoworkspace, 2
310-
bind = $mainMod SHIFT, 3, movetoworkspace, 3
311-
bind = $mainMod SHIFT, 4, movetoworkspace, 4
312-
bind = $mainMod SHIFT, 5, movetoworkspace, 5
313-
bind = $mainMod SHIFT, 6, movetoworkspace, 6
314-
bind = $mainMod SHIFT, 7, movetoworkspace, 7
315-
bind = $mainMod SHIFT, 8, movetoworkspace, 8
316-
bind = $mainMod SHIFT, 9, movetoworkspace, 9
317-
bind = $mainMod SHIFT, 0, movetoworkspace, 10
311+
bind = $mainMod SHIFT, 1, movetoworkspace, 5
312+
bind = $mainMod SHIFT, 2, movetoworkspace, 6
313+
bind = $mainMod SHIFT, 3, movetoworkspace, 7
314+
bind = $mainMod SHIFT, 4, movetoworkspace, 8
315+
bind = $mainMod SHIFT, 5, movetoworkspace, 9
316+
bind = $mainMod SHIFT, 6, movetoworkspace, 10
317+
bind = $mainMod SHIFT, 7, movetoworkspace, 11
318+
bind = $mainMod SHIFT, 8, movetoworkspace, 12
319+
bind = $mainMod SHIFT, 9, movetoworkspace, 13
320+
bind = $mainMod SHIFT, 0, movetoworkspace, 14
318321

319322
# Example special workspace (scratchpad)
320323
bind = $mainMod, S, togglespecialworkspace, magic
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
if hyprctl clients -j | jq -e '.[] | select(.class | match("(?i)kitty"))' > /dev/null; then
3+
hyprctl dispatch movetoworkspacesilent "1,class:kitty"
4+
hyprctl dispatch workspace 1
5+
hyprctl dispatch focuswindow class:kitty
6+
else
7+
hyprctl dispatch workspace 1
8+
hyprctl dispatch exec kitty
9+
fi
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
if hyprctl clients -j | jq -e '.[] | select(.class | match("(?i)obsidian"))' > /dev/null; then
3+
hyprctl dispatch movetoworkspacesilent "4,class:.*(?i)obsidian.*"
4+
hyprctl dispatch workspace 4
5+
hyprctl dispatch focuswindow "class:.*(?i)obsidian.*"
6+
else
7+
hyprctl dispatch workspace 4
8+
hyprctl dispatch exec "$HOME/.local/bin/Obsidian-1.11.5.AppImage"
9+
fi
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
if hyprctl clients -j | jq -e '.[] | select(.class | match("(?i)vivaldi"))' > /dev/null; then
3+
hyprctl dispatch movetoworkspacesilent "2,class:.*(?i)vivaldi.*"
4+
hyprctl dispatch workspace 2
5+
hyprctl dispatch focuswindow "class:.*(?i)vivaldi.*"
6+
else
7+
hyprctl dispatch workspace 2
8+
hyprctl dispatch exec vivaldi
9+
fi
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
if hyprctl clients -j | jq -e '.[] | select(.class | match("(?i)zapzap|(?i)betterbird"))' > /dev/null; then
3+
if hyprctl clients -j | jq -e '.[] | select(.class | match("(?i)zapzap"))' > /dev/null; then
4+
hyprctl dispatch movetoworkspacesilent "3,class:.*(?i)zapzap.*"
5+
fi
6+
if hyprctl clients -j | jq -e '.[] | select(.class | match("(?i)betterbird"))' > /dev/null; then
7+
hyprctl dispatch movetoworkspacesilent "3,class:.*(?i)betterbird.*"
8+
fi
9+
hyprctl dispatch workspace 3
10+
if hyprctl clients -j | jq -e '.[] | select(.class | match("(?i)zapzap"))' > /dev/null; then
11+
hyprctl dispatch focuswindow "class:.*(?i)zapzap.*"
12+
else
13+
hyprctl dispatch focuswindow "class:.*(?i)betterbird.*"
14+
fi
15+
else
16+
hyprctl dispatch workspace 3
17+
hyprctl dispatch exec "[workspace 3 silent; groupset] zapzap"
18+
hyprctl dispatch exec "[workspace 3 silent; groupset] bash -c 'sleep 2 && /home/runner/.local/bin/scripts/betterbird.sh'"
19+
fi

keyd/.config/keyd/default.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
[main]
55

6+
# Tap for menu, hold for super
7+
meta = overload(meta, f13)
8+
69
# Maps CapsLock to 'overload(control, esc)'
710
# Hold = Control
811
# Tap = Escape

opencode/.config/opencode/AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@
3333
- **JS/TS Management:** `pnpm`.
3434
- **Local Scripts/DX:** `Bun`.
3535
- **Production Runtimes:** `Node.js (LTS)`.
36-
- **Python:** `uv` or `poetry`.
36+
- **Python:** `uv` or `poetry`.
37+
- **PORTABLE SHEBANGS:** Always use `#!/usr/bin/env bash` (or the respective interpreter) for shell scripts instead of hardcoded paths like `#!/bin/bash` to ensure cross-platform compatibility.

0 commit comments

Comments
 (0)