diff --git a/apps/hyprland/hypr/binds.nix b/apps/hyprland/hypr/binds.nix index 3ac3d15..1dd3588 100644 --- a/apps/hyprland/hypr/binds.nix +++ b/apps/hyprland/hypr/binds.nix @@ -43,7 +43,7 @@ # apps "SUPER, W, Open Browser, exec, uwsm app -- firefox" # FIXME: must be xdg-open - "SUPER, SPACE, Open App Launcher, exec, uwsm app -- walker" # FIXME: pls make ghostty variable + "SUPER, SPACE, Open App Launcher, exec, nc -U $XDG_RUNTIME_DIR/walker/walker.sock" # [Workspaces] Toggle between most recent workspaces "SUPER, Tab, Cycle workspaces, workspace, previous" diff --git a/apps/hyprland/hypr/exec.nix b/apps/hyprland/hypr/exec.nix index a0db61a..7997f28 100644 --- a/apps/hyprland/hypr/exec.nix +++ b/apps/hyprland/hypr/exec.nix @@ -3,15 +3,23 @@ psmisc ]; wayland.windowManager.hyprland.settings = { + exec = [ + "pkill -x hyprpaper; uwsm app -- hyprpaper" + "killall -SIGUSR2 .ghostty-wrappe" + ]; exec-once = [ "uwsm app -- waybar" "uwsm app -- hyprpaper" "uwsm app -- elephant" "uwsm app -- swayosd-server" - ]; - exec = [ - "pkill -x hyprpaper; uwsm app -- hyprpaper" - "killall -SIGUSR2 .ghostty-wrappe" + "walker --gapplication-service" + + "[workspace 20 silent] uwsm app -- firefox" + "[workspace 20 silent] uwsm app -- xdg-terminal-exec" + + "sh -c 'sleep 2; hyprctl dispatch workspace 1'" + + "[workspace 1] uwsm app -- xdg-terminal-exec" ]; }; } diff --git a/apps/hyprland/hypr/rules.nix b/apps/hyprland/hypr/rules.nix index 7d4a93a..85aef05 100644 --- a/apps/hyprland/hypr/rules.nix +++ b/apps/hyprland/hypr/rules.nix @@ -1,21 +1,14 @@ { wayland.windowManager.hyprland.settings = { windowrulev2 = [ - # "float, class:^(org\.hakase\..*)$" - # "center, class:^(org\.hakase\..*)$" - # "size 80% 70%, class:^(org\.hakase\..*)$" # Example using percentages # --- POPUP RULES (Wifi, BT, Audio) --- - # "size 602 478, class:^(org\.hakase\.popup\..*)$" - # "move 1312 32, class:^(org\.hakase\.popup\..*)$" "float, class:^(org\.hakase\.popup\..*)$" - # "pin, class:^(org\.hakase\.popup\..*)$" "animation slide right, class:^(org\.hakase\.popup\..*)$" "dimaround, class:^(org\.hakase\.popup\..*)$" - # --- launcher --- - "float, title:^(launcher)$" - "size 500 430, title:^(launcher)$" - # Optional: Center it since it's floating - "center, title:^(launcher)$" + + # Prevent Firefox and Terminal from stealing focus on launch + "suppressevent activate, workspace:20" + "noinitialfocus, workspace:20" ]; }; }