aboutsummaryrefslogtreecommitdiff
path: root/desktop/.config/waybar
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2025-12-08 19:49:48 +0000
committerMosder <xmosder12@gmail.com>2025-12-08 19:49:48 +0000
commit08787600c2065d49ce560186b619ac25fe1622fb (patch)
tree461ceaeb722245d9001391178926b488d50140a8 /desktop/.config/waybar
parent2b2e01cbff377309d7d63f6090c25eb9e483065a (diff)
desktop hyprland
Diffstat (limited to 'desktop/.config/waybar')
-rw-r--r--desktop/.config/waybar/config.jsonc82
-rw-r--r--desktop/.config/waybar/style.css151
2 files changed, 233 insertions, 0 deletions
diff --git a/desktop/.config/waybar/config.jsonc b/desktop/.config/waybar/config.jsonc
new file mode 100644
index 0000000..cc3172e
--- /dev/null
+++ b/desktop/.config/waybar/config.jsonc
@@ -0,0 +1,82 @@
+{
+ "layer": "top",
+ "modules-left": ["hyprland/workspaces"],
+ "modules-center": ["hyprland/window"],
+ "modules-right": ["hyprland/language", "wireplumber", "backlight", "cpu", "memory", "network", "battery", "clock"],
+ "hyprland/workspaces": {
+ "format": "{id}{icon}",
+ "format-icons": {
+ "1": " 󰖟 ",
+ "2": "  ",
+ "3": "  ",
+ "4": "  ",
+ "5": "  ",
+ "default": ""
+ }
+ },
+ "hyprland/window": {
+ "max-length": 50
+ },
+ "hyprland/language": {
+ "format": "{}",
+ "format-en": "EN",
+ "format-pl": "PL"
+ },
+ "wireplumber": {
+ "format": "{volume}% {icon}",
+ "format-icons": ["", "", ""],
+ "format-muted": "{volume}% ",
+ "tooltip": false,
+ "max-volume": 95
+ },
+ "backlight": {
+ "format": "{percent}% {icon}",
+ "format-icons": ["󰃞", "󰃟", "󰃠"],
+ "tooltip": false
+ },
+ "cpu": {
+ "format": "{usage}% ",
+ "interval": 3
+ },
+ "memory": {
+ "format": "{}% ",
+ "interval": 3,
+ "tooltip-format": "RAM: {percentage}%\nSwap: {swapPercentage}%"
+ },
+ "network": {
+ "format": "{ifname}",
+ "format-wifi": "{essid} ({signalStrength}%) ",
+ "format-ethernet": "Ethernet ",
+ "format-disconnected": "Disconnected",
+ "max-length": 50,
+ "tooltip": false
+ },
+ "battery": {
+ "format": "{capacity}% {icon}",
+ "format-icons": ["", "", "", "", ""],
+ "full-at": 99,
+ "states": {
+ "warning": 30,
+ "critical": 15
+ },
+ "tooltip": false
+ },
+ "clock": {
+ "format": "{:%Y-%m-%d %H:%M (%Z)}",
+ "tooltip-format": "<b>{tz_list}</b><tt><small>{calendar}</small></tt>",
+ "timezones": [
+ "Europe/Warsaw",
+ "Etc/UTC",
+ "America/New_York",
+ "America/Los_Angeles"
+ ],
+ "calendar": {
+ "format": {
+ "months": "<span color='#ffead3'><b>{}</b></span>",
+ "days": "<span color='#ecc6d9'><b>{}</b></span>",
+ "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
+ "today": "<span color='#ff6699'><b>{}</b></span>"
+ }
+ }
+ }
+}
diff --git a/desktop/.config/waybar/style.css b/desktop/.config/waybar/style.css
new file mode 100644
index 0000000..aeb8e52
--- /dev/null
+++ b/desktop/.config/waybar/style.css
@@ -0,0 +1,151 @@
+* {
+ font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
+ font-size: 13px;
+}
+
+window#waybar {
+ background-color: rgba(43, 48, 59, 0.5);
+ border-bottom: 3px solid rgba(100, 114, 125, 0.5);
+ color: #ffffff;
+ transition-property: background-color;
+ transition-duration: .5s;
+}
+
+window#waybar.hidden {
+ opacity: 0.2;
+}
+
+button {
+ /* Use box-shadow instead of border so the text isn't offset */
+ box-shadow: inset 0 -3px transparent;
+ /* Avoid rounded borders under each button name */
+ border: black;
+ border-radius: 0;
+}
+
+/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
+button:hover {
+ background: inherit;
+ box-shadow: inset 0 -3px #ffffff;
+}
+
+#workspaces button {
+ padding: 0 5px;
+ background-color: transparent;
+ color: #ffffff;
+}
+
+#workspaces button:hover {
+ background: rgba(0, 0, 0, 0.2);
+}
+
+#workspaces button.active {
+ background-color: #64727D;
+ box-shadow: inset 0 -3px #ffffff;
+}
+
+#workspaces button.urgent {
+ background-color: #eb4d4b;
+}
+
+tooltip label {
+ padding: 0 0;
+}
+
+#clock,
+#battery,
+#cpu,
+#memory,
+#backlight,
+#network,
+#wireplumber {
+ padding: 0 10px;
+ color: #ffffff;
+}
+
+#window,
+#workspaces {
+ margin: 0 4px;
+}
+
+/* If workspaces is the leftmost module, omit left margin */
+.modules-left > widget:first-child > #workspaces {
+ margin-left: 0;
+}
+
+#clock {
+ background-color: #64727D;
+}
+
+#battery {
+ background-color: #ffffff;
+ color: #000000;
+}
+
+#battery.charging, #battery.plugged {
+ color: #ffffff;
+ background-color: #26A65B;
+}
+
+@keyframes blink {
+ to {
+ background-color: #ffffff;
+ color: #000000;
+ }
+}
+
+#battery.warning:not(.charging) {
+ background-color: #ffac1c;
+ color: #ffffff;
+}
+
+/* Using steps() instead of linear as a timing function to limit cpu usage */
+#battery.critical:not(.charging) {
+ background-color: #f53c3c;
+ color: #ffffff;
+ animation-name: blink;
+ animation-duration: 0.5s;
+ animation-timing-function: steps(12);
+ animation-iteration-count: infinite;
+ animation-direction: alternate;
+}
+
+label:focus {
+ background-color: #000000;
+}
+
+#cpu {
+ background-color: #451c81;
+}
+
+#memory {
+ background-color: #720f4f;
+}
+
+#backlight {
+ background-color: #b0d1d1;
+ color: #000000;
+}
+
+#network {
+ background-color: #2980b9;
+}
+
+#network.disconnected {
+ background-color: #f53c3c;
+}
+
+#wireplumber {
+ background-color: #fff0f5;
+ color: #000000;
+}
+
+#wireplumber.muted {
+ background-color: #f53c3c;
+}
+
+#language {
+ background: #00b093;
+ color: #740864;
+ padding: 0 5px;
+}