diff --git a/TODO.md b/TODO.md index c92ea82..871cc2c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,3 @@ -* add: similar to omarchy-menu -* walker should have a script that initializes elephant if task does not exist. -* polkit security -* check out vigiland -* implement vicinae +* vicinae should have a script that initializes systemctl if task does not exist. * exec.conf should be on their own apps +* find a better polkit design diff --git a/apps/firefox/default.nix b/apps/firefox/default.nix index a7dc98d..7af62c4 100644 --- a/apps/firefox/default.nix +++ b/apps/firefox/default.nix @@ -4,6 +4,11 @@ inputs, ... }: { + wayland.windowManager.hyprland.settings = { + exec-once = [ + + ]; + }; imports = [ inputs.textfox.homeManagerModules.default ./textfox.nix diff --git a/apps/hypridle/default.nix b/apps/hypridle/default.nix index f464f5b..bc100d9 100644 --- a/apps/hypridle/default.nix +++ b/apps/hypridle/default.nix @@ -1,5 +1,9 @@ -{ pkgs, ... }: -{ +{pkgs, ...}: { + wayland.windowManager.hyprland.settings = { + exec-once = [ + "uwsm app -- hypridle" + ]; + }; services.hypridle = { enable = true; settings = { diff --git a/apps/hyprland/hypr/exec.nix b/apps/hyprland/hypr/exec.nix index 71ab013..4b3de5d 100644 --- a/apps/hyprland/hypr/exec.nix +++ b/apps/hyprland/hypr/exec.nix @@ -1,35 +1,32 @@ -{pkgs, ...}: { +{ + pkgs, + config, + ... +}: { home.packages = with pkgs; [ psmisc ]; wayland.windowManager.hyprland.settings = { exec = [ # "pkill -x hyprpaper; uwsm app -- hyprpaper" - "killall -SIGUSR2 .ghostty-wrappe" + "matugen image ${config.home.homeDirectory}/.cache/current_wallpaper" ]; exec-once = [ # essentials "hyprpm reload -n" "vicinae server" "systemctl --user start hyprpolkitagent" - "uwsm app -- hypridle" # apps "fcitx5 -d --replace" - "[workspace special:preload silent] uwsm app -- firefox" - "[workspace special:preload silent] uwsm app -- firefox -P YouTube" + "[workspace special:preload silent] sleep 4; uwsm app -- firefox" "[workspace special:preload silent] uwsm app -- xdg-terminal-exec" - "uwsm app -- waybar" - "uwsm app -- hyprpaper" - "uwsm app -- elephant" "uwsm app -- swayosd-server" "uwsm app -- pywalfox start" - "walker --gapplication-service" - - "sh -c 'sleep 3; hakase-workspace-switch-force 1'" + # "sh -c 'sleep 3; hakase-workspace-switch-force 1'" "[workspace 1] uwsm app -- ghostty -e bash -c 'fastfetch; exec $SHELL'" "[workspace special:steam silent] uwsm app -- steam" diff --git a/apps/hyprpaper/default.nix b/apps/hyprpaper/default.nix index 4213b32..262e0d5 100644 --- a/apps/hyprpaper/default.nix +++ b/apps/hyprpaper/default.nix @@ -54,6 +54,12 @@ exec matugen image "$CACHE_FILE" ''; in { + wayland.windowManager.hyprland.settings = { + exec-once = [ + "uwsm app -- hyprpaper" + ]; + }; + services.hyprpaper = { enable = true; settings = { @@ -81,4 +87,5 @@ in { ''; systemd.user.startServices = "sd-switch"; -} \ No newline at end of file +} + diff --git a/apps/walker/default.nix b/apps/walker/default.nix index a91d4f3..54c52c7 100644 --- a/apps/walker/default.nix +++ b/apps/walker/default.nix @@ -4,6 +4,12 @@ pkgs, ... }: { + wayland.windowManager.hyprland.settings = { + exec-once = [ + "uwsm app -- elephant" + "walker --gapplication-service" + ]; + }; imports = [ # ./style.nix ./layout.nix diff --git a/apps/waybar/default.nix b/apps/waybar/default.nix index 7da111c..bbd47be 100644 --- a/apps/waybar/default.nix +++ b/apps/waybar/default.nix @@ -136,6 +136,11 @@ exec hakase-launch-popup 800 300 wiremix ''; in { + wayland.windowManager.hyprland.settings = { + exec-once = [ + "uwsm app -- waybar" + ]; + }; imports = [ ./style.nix ]; @@ -329,4 +334,3 @@ in { }; }; } -