42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption mkMerge;
|
|
cfg = config.home.programs.hyprland;
|
|
in {
|
|
options = {
|
|
home.programs.hyprland.startup.enable = mkEnableOption "Enables startup settings in Hyprland";
|
|
};
|
|
|
|
config = mkIf cfg.startup.enable (mkMerge [
|
|
{
|
|
wayland.windowManager.hyprland.settings = {
|
|
exec-once = [
|
|
"systemctl --user start polkit-gnome-authentication-agent-1"
|
|
"udiskie -Nt"
|
|
"wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'"
|
|
"hyprctl dispatch exec 'sleep 5s && keepassxc'"
|
|
];
|
|
};
|
|
}
|
|
|
|
(mkIf (cfg.user == "cnix") {
|
|
wayland.windowManager.hyprland.settings.exec-once = [
|
|
"mullvad-vpn"
|
|
"blueman-applet"
|
|
"pamixer --set-volume 50"
|
|
"hyprctl dispatch exec 'sleep 3s && solaar -w hide'"
|
|
];
|
|
})
|
|
|
|
(mkIf (cfg.user == "toothpc") {
|
|
wayland.windowManager.hyprland.settings.exec-once = [
|
|
"mullvad-vpn"
|
|
"hyprctl dispatch exec 'sleep 3s && solaar -w hide'"
|
|
];
|
|
})
|
|
]);
|
|
}
|