More hyprland setup, add waybar

This commit is contained in:
2024-06-13 16:30:12 +02:00
parent a0fe904d6c
commit 084100c557
5 changed files with 360 additions and 7 deletions

View File

@ -37,11 +37,59 @@ in
home.packages = with pkgs; [
wofi
xfce.thunar
wlogout
waybar
hyprlock
hyprpicker
hyprcursor
];
programs.waybar = {
enable = true;
systemd.enable = true;
style = builtins.readFile ./style-dracula.css;
settings = {
mainBar = {
layer = "top";
position = "bottom";
height = 30;
output = [
"eDP-1"
"HDMI-A-1"
];
modules-left = [
"hyprland/workspaces"
"hyprland/submap"
];
modules-center = [ "hyprland/window" ];
modules-right = [
# "mpd"
# "idle_inhibitor"
"pulseaudio"
# "network"
"power-profiles-daemon"
"cpu"
"memory"
# "temperature"
# "backlight"
# "keyboard-state"
"battery"
# "battery#bat2"
"clock"
"tray"
];
# "sway/workspaces" = {
# disable-scroll = true;
# all-outputs = true;
# };
};
};
};
programs.wlogout.enable = true; # can be configured
# services.hypridle.enable = true; # can be configured
services.network-manager-applet.enable = true;
wayland.windowManager.hyprland = {
# Whether to enable Hyprland wayland compositor
enable = true;
@ -62,10 +110,8 @@ in
# Autostart
exec-once = [
"nm-applet"
"waybar"
# "nm-applet"
"firefox"
"hyprlock"
];
# Environment Variables
@ -121,7 +167,14 @@ in
};
# Window rules
windowrulev2 = "suppressevent maximize, class:.*"; # You'll probably like this.
windowrulev2 = [
"suppressevent maximize, class:.*"
"workspace 1, class:firefox"
"workspace 9, class:nheko"
"workspace 9, class:org.telegram.desktop"
"workspace 10, class:thunderbird"
"float, class:qalculate-gtk"
];
# Workspace rules
workspace = [
@ -158,6 +211,7 @@ in
"$mod, E, exec, thunar"
"$mod, Return, exec, alacritty"
"$mod, B, exec, firefox"
"$mod, C, exec, qalculate-gtk"
# other commands
"$mod, Escape, exec, wlogout -p layer-shell"