I've decided to switch to Hyprland again, after having issues with Niri, especially with XWayland apps. It also has better and more widespread integration with other pieces of software that I use/plan to use. commit5a42498391
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:59:37 2024 +0100 modules/theme: update fuzzel selection colors commitf3386f5b0a
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:53:57 2024 +0100 system/services/greetd: enable gnome keyring commitc1caf6d844
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:51:24 2024 +0100 modules/themes: switch to phinger-cursors, update border colors commitaa7a00d330
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:43 2024 +0100 hosts/solaire: switch to hyprland commit7c7a332a3e
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:34 2024 +0100 modules/theme: set default theme to catppuccin (again) commit471c6b5503
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:24 2024 +0100 flake: add hyprwm-contrib for grimslurp commit04914eab73
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:09 2024 +0100 system/services/greetd: switch to hyprland as compositor (thanks jacekpoz) commitd185864012
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:56 2024 +0100 home/services/swaync: remove unused variables commit75ff00b2e2
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:43 2024 +0100 home/programs/waybar: add hyprland workspaces commitb36b3abf53
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:31 2024 +0100 home/programs/hypr: add basic hyprland configuration commitcdda6bf2bc
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:53 2024 +0100 system/programs: add hyprland module commitef36f7be36
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:43 2024 +0100 flake: add hyprland and cachix commitcdbcd8d1bd
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:37 2024 +0100 system/nix: add wheel to trusted users
186 lines
5 KiB
Nix
186 lines
5 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
osConfig,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) getExe mkMerge mkIf;
|
|
inherit (builtins) readFile;
|
|
in {
|
|
programs.waybar = {
|
|
enable = true;
|
|
systemd.enable = true;
|
|
style = readFile ./style.css;
|
|
settings = {
|
|
mainBar = mkMerge [
|
|
{
|
|
layer = "top";
|
|
position = "top";
|
|
height = 30;
|
|
|
|
margin-top = 6;
|
|
margin-left = 6;
|
|
margin-right = 6;
|
|
margin-bottom = 0;
|
|
|
|
modules-left = ["hyprland/workspaces" "hyprland/window"];
|
|
modules-center = ["group/clock"];
|
|
modules-right =
|
|
["tray" "group/status" "group/power"]
|
|
++ lib.optional config.services.swaync.enable "custom/swaync";
|
|
|
|
tray = {
|
|
icon-size = 16;
|
|
spacing = 12;
|
|
};
|
|
|
|
battery = {
|
|
interval = 10;
|
|
states = {
|
|
warning = 30;
|
|
critical = 15;
|
|
};
|
|
format = "{icon} {capacity}%";
|
|
format-charging = " {capacity}% - {time}";
|
|
format-full = " {capacity}% - Full";
|
|
format-icons = [
|
|
""
|
|
""
|
|
""
|
|
""
|
|
""
|
|
];
|
|
max-length = 25;
|
|
};
|
|
|
|
"pulseaudio" = {
|
|
format = "{icon} {volume}%";
|
|
format-bluetooth = "{icon} {volume}%";
|
|
format-muted = " ";
|
|
format-icons = {
|
|
"alsa_output.pci-0000_00_1f.3.analog-stereo" = "";
|
|
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted" = "";
|
|
headphone = "";
|
|
hands-free = "";
|
|
headset = "";
|
|
phone = "";
|
|
phone-muted = "";
|
|
portable = "";
|
|
car = "";
|
|
default = [
|
|
""
|
|
""
|
|
];
|
|
};
|
|
scroll-step = 1;
|
|
on-click = "pavucontrol";
|
|
ignored-sinks = [
|
|
"Easy Effects Sink"
|
|
];
|
|
};
|
|
|
|
"power-profiles-daemon" = {
|
|
format-icons = {
|
|
default = "";
|
|
performance = "";
|
|
balanced = "";
|
|
power-saver = "";
|
|
};
|
|
};
|
|
|
|
"group/status" = {
|
|
orientation = "inherit";
|
|
modules = [
|
|
"pulseaudio"
|
|
"power-profiles-daemon"
|
|
"network"
|
|
"battery"
|
|
];
|
|
};
|
|
|
|
"group/power" = {
|
|
orientation = "inherit";
|
|
modules = [
|
|
"custom/power"
|
|
];
|
|
};
|
|
|
|
"group/clock" = {
|
|
orientation = "inherit";
|
|
modules = [
|
|
"clock#time"
|
|
"clock#date"
|
|
];
|
|
};
|
|
|
|
"custom/power" = {
|
|
format = "";
|
|
tooltip = false;
|
|
on-click = getExe pkgs.wlogout;
|
|
};
|
|
|
|
"clock#date" = {
|
|
format = "{:%D}";
|
|
tooltip-format = "<tt><big>{calendar}</big></tt>";
|
|
};
|
|
|
|
"clock#time" = {
|
|
format = "{:%H:%M}";
|
|
tooltip-format = "{tz_list}";
|
|
timezones = [
|
|
osConfig.time.timeZone
|
|
"US/Eastern"
|
|
];
|
|
};
|
|
|
|
network = {
|
|
interface = "wlp1s0";
|
|
format = "{ifname}";
|
|
format-wifi = "{icon}";
|
|
format-ethernet = "{ipaddr}/{cidr} ";
|
|
format-disconnected = "";
|
|
tooltip-format = "{ifname} via {gwaddr} ";
|
|
tooltip-format-wifi = "{essid} ({signalStrength}%)";
|
|
tooltip-format-ethernet = "{ifname} ";
|
|
tooltip-format-disconnected = "Disconnected";
|
|
max-length = 50;
|
|
format-icons = [
|
|
""
|
|
""
|
|
""
|
|
""
|
|
];
|
|
};
|
|
}
|
|
(mkIf osConfig.programs.niri.enable {
|
|
"niri/window" = {
|
|
icon = true;
|
|
};
|
|
})
|
|
(mkIf config.services.swaync.enable {
|
|
"custom/swaync" = {
|
|
format = "<big>{icon}</big>";
|
|
format-icons = {
|
|
notification = "";
|
|
none = "";
|
|
dnd-notification = "";
|
|
dnd-none = "";
|
|
};
|
|
max-length = 3;
|
|
return-type = "json";
|
|
escape = true;
|
|
exec-if = "which ${pkgs.swaynotificationcenter}/bin/swaync-client";
|
|
exec = "${pkgs.swaynotificationcenter}/bin/swaync-client --subscribe-waybar";
|
|
on-click = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel --skip-wait";
|
|
on-click-middle = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-dnd --skip-wait";
|
|
tooltip-format = " {} notification(s)";
|
|
};
|
|
})
|
|
];
|
|
};
|
|
};
|
|
home.packages = [
|
|
pkgs.pavucontrol
|
|
];
|
|
}
|