nixdots/home/programs/graphical/wms/hyprland/default.nix
ItsDrike b51d136c0c
Move to focusworkspaceoncurrentmonitor (from custom script)
For a long time now, I've been using a custom shell script to handle
focusing to a workspace, which handled (xmonad-like) monitor swapping.

However recently, the option `focusworkspaceoncurrentmonitor` has been
added to Hyprland, which does the exact same. That means the script is
no longer necessary and we can move to the new built-in option.
2024-06-20 23:30:56 +02:00

34 lines
541 B
Nix

{
osConfig,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
hyprPkgs = (import ./packages {inherit pkgs;});
cfg = osConfig.myOptions.home-manager.wms.hyprland;
in {
imports = [
./config
];
config = mkIf cfg.enable {
home.packages = [
hyprPkgs.hyprland-move-window
pkgs.brightnessctl
hyprPkgs.brightness
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemd = {
enable = true;
variables = ["--all"];
};
};
};
}