summaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config.jsonc95
-rw-r--r--.config/waybar/style.css71
2 files changed, 166 insertions, 0 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc
new file mode 100644
index 0000000..dab8552
--- /dev/null
+++ b/.config/waybar/config.jsonc
@@ -0,0 +1,95 @@
+{
+ "layer": "top",
+ "position": "top",
+
+ "modules-left": [
+ "sway/workspaces",
+ "network",
+ "custom/vpn"
+ ],
+ "modules-center": [],
+ "modules-right": [
+ "tray",
+ "pulseaudio",
+ "bluetooth",
+ "battery",
+ "clock"
+ ],
+
+ "sway/workspaces": {
+ "all-outputs": true,
+ "format": "{name}"
+ },
+
+ "clock": {
+ "format": "{:%a, %b %H:%M}",
+ "interval": 60,
+ "tooltip-format": "<big>{:%B %Y}</big>\n<tt>{calendar}</tt>"
+ },
+
+ "tray": {
+ "icon-size": 14,
+ "spacing": 0
+ },
+
+ "battery": {
+ "interval": 60,
+ "max-length": 25,
+ "states": {
+ "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "BAT: {capacity}%",
+ "format-icons": {
+ "charging": "<span color='#ffff00'>PWR: {capacity}%</span>"
+ },
+ "format-plugged": "PLG: {capacity}%"
+ },
+
+ "bluetooth": {
+ "format": "BT: {num_connections}",
+ "format-disabled": "<span color='#aaaaaa'>BT: DC'D</span>",
+ "format-connected": "BT: {num_connections}",
+ "tooltip-format": "Devices connected: {num_connections}\n{device_alias} at {device_battery_percentage}%",
+ "on-click": "kitty --app-id=TUI.float -e bluetui",
+ "on-click-right": "rfkill toggle bluetooth"
+ },
+
+ "pulseaudio": {
+ "format": "{icon} <span color='#aaaaaa'>{volume}</span>",
+ "format-bluetooth": "BT: {icon} {volume}",
+ "format-muted": "X MUTED",
+ "format-icons": [
+ "+--",
+ "++-",
+ "+++"
+ ],
+ "on-click": "pavucontrol-qt",
+ "tooltip-format": "{desc}",
+ "scroll-step": 5
+ },
+
+ "network": {
+ "interface": "wlo1",
+ "format": "{ifname}",
+ "format-wifi": "WiFi: {essid} <span color='#aaaaaa'>{signalStrength}%</span>",
+ "format-ethernet": "Eth: {ipaddr}/<span color='#aaaaaa'>{cidr}</span>",
+ "format-disconnected": "DC'D",
+ "tooltip-format-wifi": "{essid} ({signalStrength}%)",
+ "tooltip-format-ethernet": "{ifname} via {gwaddr}",
+ "tooltip-format-disconnected": "DC'D",
+ "max-length": 50,
+ "interval": 60,
+ "on-click": "kitty --app-id TUI.float -e wifitui",
+ "on-click-right": "rfkill toggle wlan"
+ },
+
+ "custom/vpn": {
+ "format": "VPN",
+ "exec": "echo '{\"class\": \"connected\"}'",
+ "exec-if": "test -d /proc/sys/net/ipv4/conf/proton0",
+ "return-type": "json",
+ "interval": 5
+ },
+}
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
new file mode 100644
index 0000000..a968286
--- /dev/null
+++ b/.config/waybar/style.css
@@ -0,0 +1,71 @@
+* {
+ border: none;
+ font-family: "IoskeleyMono Nerd Font, monospace";
+ font-size: 14px;
+ font-weight: bold;
+ min-height: 0;
+}
+
+window#waybar {
+ background-color: #0a0a0a;
+}
+
+#workspaces button.focused {
+ background-color: #7fc8ff;
+ color: #0a0a0a;
+ border-radius: 0;
+}
+
+#workspaces button.urgent {
+ color: #ffffff;
+ background: #ff0000;
+ border-radius: 0;
+}
+
+#battery {
+ background: transparent;
+}
+
+/* Different battery states indicator */
+#battery.discharging.warning {
+ color: #ffa500;
+}
+
+#battery.discharging.critical {
+ color: #ff0000;
+}
+
+#clock,
+#battery,
+#window,
+#custom-vpn,
+#memory,
+#network,
+#mpris,
+#bluetooth,
+#pulseaudio,
+#tray {
+ padding: 0 12px;
+}
+
+/* add grey color to some modules */
+#network,
+#memory,
+#bluetooth,
+#pulseaudio,
+#custom-vpn,
+#clock,
+#window,
+#battery {
+ color: #cccccc;
+}
+
+#temperature.critical {
+ color: #ff0000;
+}
+
+/* custom modules */
+#custom-screenrecording-indicator {
+ color: #ff0000;
+}
+