2: Added home/modules/waybar.nix with starter config and moved xwayland enablement from system/modules/wayland.nix to home/modules/hyprland.nix
This commit is contained in:
parent
adc5eec4f9
commit
865cb8d84e
@ -1,6 +1,8 @@
|
||||
{pkgs, inputs, ...}: {
|
||||
imports = [
|
||||
./waybar.nix
|
||||
];
|
||||
programs.kitty.enable = true;
|
||||
programs.waybar.enable = true;
|
||||
|
||||
home.packages = [
|
||||
inputs.hyprland-qtutils.packages."${pkgs.system}".default
|
||||
@ -8,6 +10,7 @@
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
@ -30,5 +33,9 @@
|
||||
9)
|
||||
);
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
exec-once = waybar
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
28
home/modules/waybar.nix
Normal file
28
home/modules/waybar.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 30;
|
||||
output = [
|
||||
"eDP-1"
|
||||
"HDMI-A-1"
|
||||
];
|
||||
modules-left = [ "hyprland/workspaces" "hyprland/window" ];
|
||||
modules-center = [ "tray" ];
|
||||
modules-left[ "pulseaudio" "backlight" "bluetooth" "network" "battery" "clock" ];
|
||||
|
||||
"hyprland/workspaces" = {
|
||||
on-scroll-up = "hyprctl dispatch workspace e+1";
|
||||
on-scroll-down = "hyprctl dispatch workspace e-1";
|
||||
};
|
||||
|
||||
"hyrland/window" = {
|
||||
separate-outputs = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@ -10,7 +10,6 @@
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user