From 25bea7c1a0304343c279f82b8835354a0c05d9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Fri, 26 Apr 2024 14:36:22 +0200 Subject: [PATCH] Home Gen112 @ 2024-04-26-14:36 --- home/jonas/hyprland.nix | 112 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/home/jonas/hyprland.nix b/home/jonas/hyprland.nix index b07adf6..46f0d55 100644 --- a/home/jonas/hyprland.nix +++ b/home/jonas/hyprland.nix @@ -10,6 +10,118 @@ ]; programs.waybar.enable = true; + programs.waybar.settings.mainBar = { + position = "bottom"; + layer = "top"; + height = 5; + margin-top = 0; + margin-bottom = 0; + margin-left = 0; + margin-right = 0; + modules-left = [ + "custom/launcher" + "hyprland/workspaces" + ]; + modules-center = [ + "clock" + ]; + modules-right = [ + "tray" + "cpu" + "memory" + "disk" + "pulseaudio" + "battery" + "network" + ]; + clock = { + calendar = { + format = {today = "{}";}; + }; + format = " {:%H:%M}"; + tooltip = "true"; + tooltip-format = "{:%Y %B}\n{calendar}"; + format-alt = " {:%d/%m}"; + }; + "hyprland/workspaces" = { + active-only = false; + disable-scroll = true; + format = "{icon}"; + on-click = "activate"; + format-icons = { + "1" = "󰈹"; + "2" = ""; + "3" = "󰘙"; + "4" = "󰙯"; + "5" = ""; + "6" = ""; + urgent = ""; + default = ""; + sort-by-number = true; + }; + persistent-workspaces = { + "1" = []; + "2" = []; + "3" = []; + "4" = []; + "5" = []; + }; + }; + memory = { + format = "󰟜 {}%"; + format-alt = "󰟜 {used} GiB"; #  + interval = 2; + }; + cpu = { + format = " {usage}%"; + format-alt = " {avg_frequency} GHz"; + interval = 2; + }; + disk = { + # path = "/"; + format = "󰋊 {percentage_used}%"; + interval = 60; + }; + network = { + format-wifi = " {signalStrength}%"; + format-ethernet = "󰀂 "; + tooltip-format = "Connected to {essid} {ifname} via {gwaddr}"; + format-linked = "{ifname} (No IP)"; + format-disconnected = "󰖪 "; + }; + tray = { + icon-size = 20; + spacing = 8; + }; + pulseaudio = { + format = "{icon} {volume}%"; + format-muted = "󰖁 {volume}%"; + format-icons = { + default = [" "]; + }; + scroll-step = 5; + on-click = "pamixer -t"; + }; + battery = { + format = "{icon} {capacity}%"; + format-icons = [" " " " " " " " " "]; + format-charging = " {capacity}%"; + format-full = " {capacity}%"; + format-warning = " {capacity}%"; + interval = 5; + states = { + warning = 20; + }; + format-time = "{H}h{M}m"; + tooltip = true; + tooltip-format = "{time}"; + }; + "custom/launcher" = { + format = ""; + on-click = "${pkgs.rofi}/bin/rofi -show drun"; + tooltip = "false"; + }; + }; wayland.windowManager.hyprland = { enable = true;