refactor(hypr): separated exec-once to their corresponding apps

This commit is contained in:
kenji
2026-01-02 12:00:26 -06:00
parent b398d5b797
commit a2acedf2bb
7 changed files with 40 additions and 20 deletions
+8 -11
View File
@@ -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"