From b880b3fcce5deac256a82596f1953190452cde30 Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Thu, 10 Oct 2024 23:15:32 +0200 Subject: [PATCH] improvement: waybar cleanup some of the files --- .../nixos/desktop/addons/waybar/config.jsonc | 9 +- modules/nixos/desktop/addons/waybar/style.css | 141 ++---------------- 2 files changed, 12 insertions(+), 138 deletions(-) diff --git a/modules/nixos/desktop/addons/waybar/config.jsonc b/modules/nixos/desktop/addons/waybar/config.jsonc index e7b2469..ae4faab 100644 --- a/modules/nixos/desktop/addons/waybar/config.jsonc +++ b/modules/nixos/desktop/addons/waybar/config.jsonc @@ -1,5 +1,6 @@ { "layer":"top", + "height": 42, "position":"top", "mod":"dock", "margin-left":10, @@ -71,20 +72,16 @@ ] }, "tray":{ - "icon-size":15, + "icon-size":18, "rotate":0, "spacing":3 }, - "custom/menu":{ - "format":" ", - "rotate":90 - }, "hyprland/window":{ "format":"{initialTitle}", "max-length":120, "separate-outputs":true, "icon":false, - "icon-size":13 + "icon-size":18 }, "custom/spacer":{ "format":"|" diff --git a/modules/nixos/desktop/addons/waybar/style.css b/modules/nixos/desktop/addons/waybar/style.css index 4ac9e9c..10b624d 100644 --- a/modules/nixos/desktop/addons/waybar/style.css +++ b/modules/nixos/desktop/addons/waybar/style.css @@ -2,14 +2,7 @@ font-family: "JetBrains Mono Nerd Font"; /*font-family: "JetBrainsMono Nerd Font";*/ font-weight: bold; - font-size: 15px; -} - -#custom-notification { - font-family: "JetBrains Mono Nerd Font"; - font-size: 17px; - color: #A1BDCE; - margin: 2px 0px 0px 0px; + font-size: 16px; } window#waybar { @@ -56,11 +49,7 @@ background: rgba(23, 23, 23, 0.0); /* animation: ws_normal 20s ease-in-out 1; */ } - - #workspaces button.active { - - /* background-image: url("/home/anik/Documents/bar1.png");*/ color: #A1BDCE; transition: all 0.3s ease; @@ -123,41 +112,13 @@ background: rgba(23, 23, 23, 0.0); #custom-spacer{ -opacity: 0.0; + opacity: 0.0; } #custom-smallspacer{ -opacity: 0.0; + opacity: 0.0; } - -#custom-mouse{ -font-size: 14px; -margin-bottom: 6px; -background: #161320; -} - - -#custom-power{ - font-size: 15px; - color: #FFFFFF; - background: rgba(22, 19, 32, 0.9); - margin: 6px 0px 6px 0px; - padding-left: 4px; - padding-right: 4px; - } - -#backlight{ - color: #2096C0; - background: rgba(23, 23, 23, 0.0); - font-weight: normal; - font-size: 19px; - margin: 1px 0px 0px 0px; - padding-left: 0px; - padding-right: 2px; - -} -#bluetooth, -#custom-cliphist{ +#bluetooth { color: #E6E7E7; background: #161320; opacity: 1; @@ -165,28 +126,8 @@ background: #161320; padding-left: 4px; padding-right: 4px; -} -#battery{ - font-weight: normal; - font-size: 22px; - color: #a6d189; - background: rgba(23, 23, 23, 0.0); - opacity: 1; - margin: 0px 0px 0px 0px; - padding-left: 0px; - padding-right: 0px; - } -#idle_inhibitor{ -color: #24966e; -background: @bar-bg; - opacity: 1; - margin: 4px 0px 4px 0px; - padding-left: 4px; - padding-right: 4px; - -} #clock{ color: #A1BDCE; font-size: 15px; @@ -200,9 +141,10 @@ background: @bar-bg; border: none; } + #pulseaudio{ font-weight: normal; -font-size: 18px; +font-size: 20px; color: #6F8FDB; background: rgba(22, 19, 32, 0.0); opacity: 1; @@ -210,37 +152,17 @@ color: #6F8FDB; padding-left: 3px; padding-right: 3px; } + #cpu{ font-weight: normal; -font-size: 22px; +font-size: 24px; color: #915CAF; } -#custom-led{ -background: #427287; -color: #FFFFFF; -margin-top: 7px; -margin-bottom: 7px; -padding-left: 6px; -border-radius: 7px; -margin-right: 6px; -} -#custom-gpuinfo, -#custom-keybindhint, -#language, #memory{ font-weight: normal; -font-size: 22px; +font-size: 24px; color: #E4C9AF; } -#mpris{ -color: white; -animation: repeat; - animation-name: blink; - animation-duration: 3s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; -} @keyframes blink { to { @@ -248,29 +170,7 @@ animation: repeat; } } -#network{ -color: #A1BDCE; -font-weight: normal; -font-size: 19px; -padding-right: 0px; -padding-left: 4px -} -#custom-notifications, -#custom-spotify, -#taskbar, -#custom-theme, -#custom-menu{ -color: #E8EDF0; -background: rgba(23, 23, 23, 0.0); -margin: 0px 0px 0px 0px; - padding-left: 1px; - padding-right: 1px; - opacity: 0.1 -} #tray, -#custom-updates, -#custom-wallchange, -#custom-wbar, #window{ color: #A1BDCE; font-family: "Martian Mono"; @@ -280,15 +180,10 @@ font-family: "Martian Mono"; #custom-sl_end, #custom-sr_end, #custom-rl_end, -#cava, #upower#headset, #upower{ color: #a6d189; } -#mpris{ -font-size: 15px; -font-weight: bold -} #custom-rr_end { font-weight: normal; color: #E8EDF0; @@ -301,7 +196,6 @@ font-weight: normal; } -#backlight-slider slider, #pulseaudio-slider slider { background: #A1BDCE; background-color: transparent; @@ -309,7 +203,6 @@ font-weight: normal; margin-right: 7px; } -#backlight-slider trough, #pulseaudio-slider trough { margin-top: -3px; min-width: 90px; @@ -319,23 +212,11 @@ font-weight: normal; background: #343434; } -#backlight-slider highlight, #pulseaudio-slider highlight { border-radius: 8px; background-color: #2096C0; } -#battery.charging, #battery.plugged { - color: #E8EDF0; - -} - - -#battery.critical:not(.charging) { - color: red; -} - - #taskbar { padding: 1px; } @@ -385,7 +266,3 @@ font-weight: normal; font-size: 16px; } -#group-minimized { - border-left: solid; - border-left-width: 0.5; -}