Fix Waybar Font and Icon Spacing

This commit is contained in:
Sravan Balaji
2024-09-28 11:15:41 -04:00
parent 0f3b21946c
commit 95f75e3e5b
3 changed files with 20 additions and 18 deletions

View File

@@ -567,7 +567,8 @@ window#waybar {
.module { .module {
border-radius: 25px; border-radius: 25px;
padding: 0px 3px; padding: 0px 3px;
font-size: 14px; font-size: 15px;
font-family: Ubuntu Nerd Font
} }
#+END_SRC #+END_SRC
@@ -583,7 +584,7 @@ window#waybar {
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"], "format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"tooltip": true, "tooltip": true,
"tooltip-format": "󱧥 {timeTo}\n󱐋 {power} W\n󱠴 {cycles}\n󱈏 {health}%", "tooltip-format": "󱧥\t{timeTo}\n󱐋\t{power} W\n󱠴\t{cycles}\n󱈏\t{health}%",
}, },
#+END_SRC #+END_SRC
@@ -603,7 +604,7 @@ window#waybar {
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc #+BEGIN_SRC jsonc :tangle waybar/config.jsonc
"cpu": { "cpu": {
"interval": 5, "interval": 5,
"format": " {usage}%", "format": " {usage}%",
"tooltip": true, "tooltip": true,
}, },
#+END_SRC #+END_SRC
@@ -624,7 +625,7 @@ window#waybar {
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc #+BEGIN_SRC jsonc :tangle waybar/config.jsonc
"clock": { "clock": {
"interval": 60, "interval": 60,
"format": "󰥔 {:%H:%M}" "format": "󰥔 {:%H:%M}"
}, },
#+END_SRC #+END_SRC
@@ -682,7 +683,7 @@ window#waybar {
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc #+BEGIN_SRC jsonc :tangle waybar/config.jsonc
"disk": { "disk": {
"interval": 60, "interval": 60,
"format": "󰋊 {percentage_used}%", "format": "󰋊 {percentage_used}%",
"tooltip": true, "tooltip": true,
"tooltip-format": "Used: {used} ({percentage_used}%)\nFree: {free} ({percentage_free}%)\nTotal: {total}", "tooltip-format": "Used: {used} ({percentage_used}%)\nFree: {free} ({percentage_free}%)\nTotal: {total}",
}, },
@@ -704,7 +705,7 @@ window#waybar {
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc #+BEGIN_SRC jsonc :tangle waybar/config.jsonc
"memory": { "memory": {
"interval": 5, "interval": 5,
"format": " {percentage}%", "format": " {percentage}%",
"tooltip": true, "tooltip": true,
"tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB", "tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB",
}, },
@@ -726,9 +727,9 @@ window#waybar {
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc #+BEGIN_SRC jsonc :tangle waybar/config.jsonc
"pulseaudio": { "pulseaudio": {
"interval": 5, "interval": 5,
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-bluetooth": "{icon} 󰂯 {volume}%", "format-bluetooth": "{icon} 󰂯 {volume}%",
"format-muted": "󰝟 muted", "format-muted": "󰝟 muted",
"format-icons": { "format-icons": {
"hdmi": "󰡁", "hdmi": "󰡁",
"headset": "󰋎", "headset": "󰋎",

View File

@@ -32,18 +32,18 @@
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"], "format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"tooltip": true, "tooltip": true,
"tooltip-format": "󱧥 {timeTo}\n󱐋 {power} W\n󱠴 {cycles}\n󱈏 {health}%", "tooltip-format": "󱧥\t{timeTo}\n󱐋\t{power} W\n󱠴\t{cycles}\n󱈏\t{health}%",
}, },
"cpu": { "cpu": {
"interval": 5, "interval": 5,
"format": " {usage}%", "format": " {usage}%",
"tooltip": true, "tooltip": true,
}, },
"clock": { "clock": {
"interval": 60, "interval": 60,
"format": "󰥔 {:%H:%M}" "format": "󰥔 {:%H:%M}"
}, },
"dwl/tags": { "dwl/tags": {
@@ -54,23 +54,23 @@
"disk": { "disk": {
"interval": 60, "interval": 60,
"format": "󰋊 {percentage_used}%", "format": "󰋊 {percentage_used}%",
"tooltip": true, "tooltip": true,
"tooltip-format": "Used: {used} ({percentage_used}%)\nFree: {free} ({percentage_free}%)\nTotal: {total}", "tooltip-format": "Used: {used} ({percentage_used}%)\nFree: {free} ({percentage_free}%)\nTotal: {total}",
}, },
"memory": { "memory": {
"interval": 5, "interval": 5,
"format": " {percentage}%", "format": " {percentage}%",
"tooltip": true, "tooltip": true,
"tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB", "tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB",
}, },
"pulseaudio": { "pulseaudio": {
"interval": 5, "interval": 5,
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-bluetooth": "{icon} 󰂯 {volume}%", "format-bluetooth": "{icon} 󰂯 {volume}%",
"format-muted": "󰝟 muted", "format-muted": "󰝟 muted",
"format-icons": { "format-icons": {
"hdmi": "󰡁", "hdmi": "󰡁",
"headset": "󰋎", "headset": "󰋎",

View File

@@ -5,7 +5,8 @@ window#waybar {
.module { .module {
border-radius: 25px; border-radius: 25px;
padding: 0px 3px; padding: 0px 3px;
font-size: 14px; font-size: 15px;
font-family: Ubuntu Nerd Font
} }
#battery { #battery {