summaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config.jsonc75
-rwxr-xr-x.config/waybar/date.sh2
-rw-r--r--.config/waybar/style.css83
3 files changed, 160 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 00000000..4a6f8f7c
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,75 @@
+{
+ "battery": {
+ "format": "{icon} {capacity}%",
+ "format-charging": "\uf0e7 {capacity}%",
+ "format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
+ "states": {
+ "critical": 10,
+ "warning": 20,
+ },
+ },
+ "clock": {
+ "format": "\uf017 {:%H:%M}",
+ "tooltip-format": "<tt><small>{calendar}</small></tt>",
+ "calendar": {
+ "mode": "year",
+ "mode-mon-col": 3,
+ "weeks-pos": "right",
+ "format": {
+ "months": "<span color='#E5E9F0'><b>{}</b></span>",
+ "days": "<span color='#D8DEE9'><b>{}</b></span>",
+ "weeks": "<span color='#EBCB8B'><b>W{}</b></span>",
+ "weekdays": "<span color='#A3BE8C'><b>{}</b></span>",
+ "today": "<span color='#BF616A'><b><u>{}</u></b></span>",
+ },
+ },
+ },
+ "custom/date": {
+ "exec": "$HOME/.config/waybar/date.sh",
+ "format": "\uf073 {}",
+ "interval": 60,
+ },
+ "network": {
+ "interface": "wlan0",
+ "family": "ipv4",
+ "format": "\uf1eb {ipaddr}",
+ "format-disconnected": "\uf52f disconnected",
+ "tooltip-format": "\uf1eb {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\n\uf093 {bandwidthUpBits} \uf019 {bandwidthDownBits}",
+ },
+ "modules-center": ["sway/workspaces"],
+ "modules-left": ["network", "battery", "temperature"],
+ "modules-right": ["wireplumber", "custom/date", "clock"],
+ "position": "top",
+ "wireplumber": {
+ "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
+ "format": "{icon} {volume}%",
+ "format-muted": "\uf026 muted",
+ "format-icons": {
+ "default": ["\uf027", "\uf028"],
+ "headphone": "\uf025",
+ },
+ },
+ "sway/workspaces": {
+ "all-outputs": true,
+ "disable-scroll": true,
+ "format": "{icon}",
+ "format-icons": {
+ "default": "\uf068",
+ },
+ "persistent-workspaces": {
+ "1": [],
+ "2": [],
+ "3": [],
+ "4": [],
+ "5": [],
+ "6": [],
+ },
+ },
+ "temperature": {
+ "critical-threshold": 90,
+ "format": "\uf2c8 {temperatureC}\u00b0C",
+ "format-critical": "\uf071 {temperatureC}\u00b0C",
+ "hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input",
+ "interval": "5",
+ },
+}
diff --git a/.config/waybar/date.sh b/.config/waybar/date.sh
new file mode 100755
index 00000000..bfa6f09e
--- /dev/null
+++ b/.config/waybar/date.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+date +"%a %d"
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
new file mode 100644
index 00000000..0ef54a47
--- /dev/null
+++ b/.config/waybar/style.css
@@ -0,0 +1,83 @@
+@import url("../colours.css");
+
+* {
+ font-family: "JetBrainsMono Nerd Font";
+ font-size: 14px;
+ font-weight: 600;
+}
+
+window#waybar {
+ background: transparent;
+}
+
+tooltip {
+ background-color: @base03;
+ border-width: 3px;
+ border-color: @base0A;
+}
+
+tooltip * {
+ color: @base05;
+ text-shadow: none;
+}
+
+#workspaces button.focused {
+ color: @base08;
+}
+#workspaces button.urgent {
+ color: @base0B;
+}
+#workspaces button:hover {
+ color: @base0F;
+}
+#workspaces button {
+ padding: 0px 5px;
+ color: @white1;
+}
+
+#network,
+#battery,
+#temperature,
+#workspaces,
+#wireplumber,
+#custom-date,
+#clock {
+ margin: 5px 5px 0px 5px;
+ border-radius: 60px;
+ padding: 2px 8px;
+ color: @base02;
+}
+
+#workspaces {
+ background-color: @base00;
+}
+#clock {
+ background-color: @base0E;
+}
+#custom-date {
+ background-color: @base0D;
+}
+#network {
+ background-color: @base0A;
+}
+#temperature {
+ background-color: @base07;
+}
+#temperature.critical {
+ background-color: @base0B;
+}
+#wireplumber {
+ background-color: @base0C;
+}
+#wireplumber.muted {
+ background-color: @base0B;
+}
+#battery {
+ background-color: @base0F;
+}
+#battery.warning {
+ color: @base0D;
+}
+#battery.critical {
+ color: @base0B;
+}