From 46bd3c942abdcd713c0132c4d66b2dfcf1b40613 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sun, 17 Mar 2024 18:28:56 +0100 Subject: waybar config WIP --- share/home/waybar.css | 57 +++------------------------------------------------ share/home/waybar.nix | 7 +++++-- 2 files changed, 8 insertions(+), 56 deletions(-) (limited to 'share/home') diff --git a/share/home/waybar.css b/share/home/waybar.css index b585939..c2213cb 100644 --- a/share/home/waybar.css +++ b/share/home/waybar.css @@ -16,15 +16,6 @@ window#waybar.hidden { opacity: 0.2; } -/* -window#waybar.empty { - background-color: transparent; -} -window#waybar.solo { - background-color: #FFFFFF; -} -*/ - window#waybar.termite { background-color: #3F3F3F; } @@ -49,7 +40,7 @@ button:hover { } #workspaces button { - padding: 0 5px; + padding: 0; background-color: transparent; color: #ffffff; } @@ -89,25 +80,14 @@ button:hover { #scratchpad, #power-profiles-daemon, #mpd { - padding: 0 10px; + padding: 0; color: #ffffff; } -#window, -#workspaces { +#window { margin: 0 4px; } -/* If workspaces is the leftmost module, omit left margin */ -.modules-left > widget:first-child > #workspaces { - margin-left: 0; -} - -/* If workspaces is the rightmost module, omit right margin */ -.modules-right > widget:last-child > #workspaces { - margin-right: 0; -} - #clock { background-color: #64727D; } @@ -207,20 +187,6 @@ label:focus { background-color: #f53c3c; } -#custom-media { - background-color: #66cc99; - color: #2a5c45; - min-width: 100px; -} - -#custom-media.custom-spotify { - background-color: #66cc99; -} - -#custom-media.custom-vlc { - background-color: #ffa000; -} - #temperature { background-color: #f0932b; } @@ -251,23 +217,6 @@ label:focus { color: #2d3436; } -#mpd { - background-color: #66cc99; - color: #2a5c45; -} - -#mpd.disconnected { - background-color: #f53c3c; -} - -#mpd.stopped { - background-color: #90b1b1; -} - -#mpd.paused { - background-color: #51a37a; -} - #language { background: #00b093; color: #740864; diff --git a/share/home/waybar.nix b/share/home/waybar.nix index 6f85d96..8830e78 100644 --- a/share/home/waybar.nix +++ b/share/home/waybar.nix @@ -8,7 +8,7 @@ settings.mainBar = { layer = "top"; position = "right"; - width = 15; + width = 40; reload_style_on_change = true; modules-left = [ "hyprland/workspaces" ]; @@ -19,11 +19,14 @@ "memory" "temperature" "backlight" - "keyboard-state" "clock" "tray" ]; + clock = { + format = "{:%H:%m\n%b}"; + }; + battery = { format = lib.concatStringsSep "\n" [ "{icon} {capacity}%" -- cgit v1.3.1