aboutsummaryrefslogtreecommitdiff
path: root/roles/home/desktop
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-01-19 15:42:03 -0800
committerCaroline Larimore <caroline@larimo.re>2025-01-19 15:42:03 -0800
commit6705dcac4a9d37ad65ac287a0e2bfe4e6cb8cc98 (patch)
treec7647011019fc52f337ea9f13990f7d9d2a30636 /roles/home/desktop
parent9e5f560223669336402359da1f3413e4496b1956 (diff)
wayland: wip waybar configwayland
Diffstat (limited to 'roles/home/desktop')
-rw-r--r--roles/home/desktop/waybar.nix66
1 files changed, 65 insertions, 1 deletions
diff --git a/roles/home/desktop/waybar.nix b/roles/home/desktop/waybar.nix
index 68fad79..2fc63ac 100644
--- a/roles/home/desktop/waybar.nix
+++ b/roles/home/desktop/waybar.nix
@@ -2,6 +2,70 @@
{
programs.waybar = {
-
+ settings = {
+ main = {
+ layer = "top";
+ position = "top";
+ height = 32;
+ output = [ "DP-3" ];
+
+ modules-left = [ "cpu" "memory" "mpris" ];
+ modules-center = [ "sway/workspaces" ];
+ modules-right = [ "network" "disk" "keyboard-state" "pulseaudio" "clock" ];
+
+ # Left
+ "cpu" = {
+ interval = 5;
+ format = "{usage}% {avg_frequency} GHz";
+ };
+
+ "memory" = {
+ interval = 5;
+ format = "{used} GiB";
+ tooltip-format = "{used}/{total} GiB ({percentage}%)";
+ };
+
+ "mpris" = {
+ format = "󰎄 {status_icon} {title} - {artist}";
+ tooltip-format = "[{status}] {dynamic} ({player})";
+ status-icons = {
+ playing = "󰏤";
+ paused = "󰐊";
+ stopped = "󰐊";
+ };
+ };
+
+ # Center
+ "sway/workspaces" = {
+ disable-scroll = true;
+ all-outputs = true;
+
+ format = "{icon}";
+ format-icons = {
+ "0:Main" = "󱄅";
+ "1:Terminal" = "";
+ "2:Browser" = "󰈹";
+ "3:Chat" = "󰙯";
+ "4:Gaming" = "󰓓";
+
+ "5" = "󰎱";
+ "6" = "󰎳";
+ "7" = "󰎶";
+
+ "8:Meow" = "󰄛";
+ "9:Music" = "󰲸";
+ "10:Misc" = "󰁴";
+ };
+ };
+
+ # Right
+ "network" = {
+ interval = 10;
+ format-ethernet = "󰈀 {ifname}";
+ format-wifi = "{icon} {ifname}";
+ format-icons = [ "󰤯" "󰤟" "󰤢" "󰤥" "󰤨" ];
+ };
+ };
+ };
};
} \ No newline at end of file