diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix index c8406c0..daf5e94 100644 --- a/hosts/nixos/configuration.nix +++ b/hosts/nixos/configuration.nix @@ -90,6 +90,7 @@ tree kitty neovim + playerctl # Theme SDDM sddm-astronaut ]; diff --git a/hosts/nixos/home.nix b/hosts/nixos/home.nix index 69839ba..491cddf 100644 --- a/hosts/nixos/home.nix +++ b/hosts/nixos/home.nix @@ -32,6 +32,8 @@ commonHome // { wofi alacritty firefox + # Hypr* ecosystem + hyprlauncher # # It is sometimes useful to fine-tune packages, for example, by applying # # overrides. You can do that directly here, just don't forget the diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index fed23b8..c220efc 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -1,4 +1,4 @@ -let +let workspaceBinds = let wsList = builtins.genList (i: i + 1) 10; in builtins.concatLists (map (ws: @@ -25,6 +25,10 @@ in "fileManager" = "dolphin"; "$browser" = "firefox"; + exec-once = [ + "hyprlauncher" + ]; + # Input input = { kb_layout = "fr"; @@ -39,6 +43,20 @@ in "DP-1, 1440x900@59.89, 0x0, 1" ]; + # Assign workspaces to monitors + workspace = [ + "1, monitor:HDMI-A-1, default:true" + "2, monitor:HDMI-A-1" + "3, monitor:HDMI-A-1" + "4, monitor:HDMI-A-1" + "5, monitor:HDMI-A-1" + "6, monitor:DP-1" + "7, monitor:DP-1" + "8, monitor:DP-1" + "9, monitor:DP-1" + "10, monitor:DP-1" + ]; + # Keybinds bind = workspaceBinds ++ [ # Launch binds @@ -47,7 +65,7 @@ in "$mod, M, exit" "$mod, R, exec, $launcher2" "$mod, F, exec, $browser" - "$mod, E, exec, fileManager" + "$mod, E, exec, $fileManager" # Focus binds "$mod, left, movefocus, l" @@ -57,6 +75,11 @@ in ]; + bindl = [ + ", XF86AudioPause, exec, playerctl play-pause" + ", XF86AudioPlay, exec, playerctl play-pause" + ]; + }; };