nichts/modules/wms/wayland/hyprland/exec.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

{
config,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
inherit (config.modules.style) cursor;
inherit (builtins) toString;
in {
home-manager.users.${username} = {
wayland.windowManager.hyprland.settings = {
# Hyprland settings
# Programs which get executed at Hyprland start.
exec-once = [
"hyprctl setcursor ${cursor.name} ${toString cursor.size}"
#start waybar
"${pkgs.waybar}/bin/waybar"
2024-10-06 12:34:00 +02:00
# "${pkgs.ianny}/bin/ianny"
# run persistent special workspace windows
"[workspace special:nixos; silent;tile] ${pkgs.foot}/bin/foot -D ~/projects/nichts"
"[workspace special:keepassxc; silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
"[workspace special:audio; silent;tile] ${pkgs.pavucontrol}/bin/pavucontrol"
"[workspace special:audio; silent;tile] ${pkgs.pwvucontrol}/bin/pwvucontrol"
"${pkgs.swww}/bin/swww-daemon"
"${pkgs.wlsunset}/bin/wlsunset -S 06:00 -s 20:00"
"${pkgs.lxqt.lxqt-policykit}/bin/lxqt-policykit-agent"
];
};
};
}