feat: further improvement of waybar :D

This commit is contained in:
2025-12-24 23:13:38 +03:00
parent 10bd92a88d
commit fc6b2a4291
4 changed files with 25 additions and 19 deletions

View File

@@ -52,6 +52,7 @@
"tooltip-format": "{title}", "tooltip-format": "{title}",
"on-click": "activate", "on-click": "activate",
"on-click-middle": "close", "on-click-middle": "close",
"active-first": false,
"ignore-list": [ "ignore-list": [
"Alacritty" "Alacritty"
], ],
@@ -66,7 +67,7 @@
}, },
"cpu": { "cpu": {
"format": "{icon}", "format": "{icon}",
"tooltip": false, "tooltip": true,
"interval": 3, "interval": 3,
"format-icons": [ "format-icons": [
"󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥" "󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
@@ -91,7 +92,9 @@
"s3": 50, "s3": 50,
"s4": 60, "s4": 60,
"s4": 70 "s4": 70
} },
"tooltip-format": "{used:0.1f}GiB used",
"tooltip": true
}, },
"temperature": { "temperature": {
"format": "{icon}", "format": "{icon}",
@@ -118,7 +121,7 @@
}, },
"tooltip-format": "MPD (connected)", "tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)", "tooltip-format-disconnected": "MPD (disconnected)",
"format-stopped": "", "format-stopped": "Stopping player...",
"on-click": "mpc toggle --password kapuchinamusica" "on-click": "mpc toggle --password kapuchinamusica"
}, },
"custom/pomodoro": { "custom/pomodoro": {

View File

@@ -47,14 +47,14 @@
], ],
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"1": "󱐡", "1": "󰆋",
"2": "󰰫", "2": "",
"3": "󰛿", "3": "󰄫",
"4": "󱑤", "4": "󰅡",
"5": "󰲨", "5": "󰲨",
"6": "󰲪", "6": "󰲪",
"7": "󰥱", "7": "󰓓",
"8": "󰷸", "8": "",
"9": "󱡝", "9": "󱡝",
"10": "󰥱", "10": "󰥱",
"11": "", "11": "",
@@ -65,7 +65,7 @@
"mpd": { "mpd": {
"password": "kapuchinamusica", "password": "kapuchinamusica",
"artist-len": 30, "artist-len": 30,
"title-len": 31, "title-len": 50,
"unknown-tag": "n/a", "unknown-tag": "n/a",
"format": "{stateIcon} {titleSmart}", "format": "{stateIcon} {titleSmart}",
"interval": 1, "interval": 1,
@@ -78,7 +78,7 @@
}, },
"tooltip-format": "MPD (connected)", "tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)", "tooltip-format-disconnected": "MPD (disconnected)",
"format-stopped": "", "format-stopped": " Stopping player...",
"on-click": "mpc toggle --password kapuchinamusica" "on-click": "mpc toggle --password kapuchinamusica"
}, },
"clock": { "clock": {

View File

@@ -108,22 +108,22 @@ window#waybar.chromium {
TASKBAR TASKBAR
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
#taskbar { #taskbar {
padding-left: 0; padding-right: 0;
} }
#taskbar button { #taskbar button {
padding: 0; padding: 0 5px;
min-height: 30px; min-height: 20px;
min-width: 40px; min-width: 20px;
} }
#taskbar image { #taskbar image {
min-width: 40px; min-width: 20px;
min-height: 20px; min-height: 20px;
} }
#taskbar.empty { #taskbar.empty {
padding-right: 0; padding: 0;
} }
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
@@ -245,7 +245,7 @@ window#waybar.chromium {
/* MPD STATES */ /* MPD STATES */
#mpd { #mpd {
font-weight: 700; font-weight: 700;
transition: color 2s, background 2s; transition: color 2s, background 2s, border-color 2s;
} }
#mpd.playing { #mpd.playing {
@@ -255,6 +255,7 @@ window#waybar.chromium {
#mpd.stopped { #mpd.stopped {
color: transparent; color: transparent;
background: transparent; background: transparent;
border-color: transparent;
} }
#mpd.paused { #mpd.paused {

View File

@@ -102,7 +102,7 @@ window#waybar.chromium {
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
SIDE PANEL GROUPS SIDE PANEL GROUPS
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
.modules-left, .modules-center, .modules-right { #mpd, .modules-center, .modules-right {
/* Layout & Box Model */ /* Layout & Box Model */
border: 1px solid @border-color; border: 1px solid @border-color;
border-radius: 12px; border-radius: 12px;
@@ -192,6 +192,8 @@ window#waybar.chromium {
#mpd.stopped { #mpd.stopped {
color: transparent; color: transparent;
background: transparent; background: transparent;
border-color: transparent;
transition: color 2s, background 2s;
} }
#mpd.paused { #mpd.paused {