aboutsummaryrefslogtreecommitdiff
path: root/config/linux/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'config/linux/waybar')
-rw-r--r--config/linux/waybar/config89
-rw-r--r--config/linux/waybar/style.css62
2 files changed, 151 insertions, 0 deletions
diff --git a/config/linux/waybar/config b/config/linux/waybar/config
new file mode 100644
index 0000000..d8cefd2
--- /dev/null
+++ b/config/linux/waybar/config
@@ -0,0 +1,89 @@
+[
+ {
+ "name": "topbar",
+ "layer": "bottom",
+ "position": "top",
+ "height": 0,
+ "modules-left": ["sway/workspaces", "sway/mode"],
+ "modules-center": [],
+ "modules-right": ["tray", "custom/reboot", "network#wifi", "pulseaudio", "battery#bat1", "temperature", "idle_inhibitor", "clock#local"],
+ "sway/workspaces": {
+ "format": "{icon}",
+ "format-icons": {
+ "1": "",
+ "2": ""
+ }
+ },
+ "clock#local": {
+ "interval": 1,
+ "format": "{:%a %d %b %I:%M %p}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "today-format": "<b>{}</b>"
+ },
+ "temperature": {
+ "critical-threshold": 80,
+ "format": "{icon} {temperatureC}°C",
+ "format-icons": ["", "", "", "", ""],
+ "tooltip": false
+ },
+ "battery#bat1": {
+ "bat": "BAT0",
+ "adapter": "AC",
+ "interval": 60,
+ "states": {
+ "5": 100,
+ "4": 80,
+ "3": 60,
+ "2": 40,
+ "1": 20,
+ "0": 5
+ },
+ "format": "{icon} {capacity}%",
+ "format-charging-5": " {capacity}%",
+ "format-charging-4": " {capacity}%",
+ "format-charging-3": " {capacity}%",
+ "format-charging-2": " {capacity}%",
+ "format-charging-1": " {capacity}%",
+ "format-charging-0": " {capacity}%",
+ "format-icons": ["", "", "", "", "", ""]
+ },
+ "network#wifi": {
+ "interface": "wlp*",
+ "format-ethernet": "",
+ "format-wifi": " {signalStrength}%",
+ "format-linked": "",
+ "format-disconnected": "",
+ "tooltip-format": "{essid}\n{ifname}: {ipaddr}/{cidr}",
+ "on-click": "nm-connection-editor"
+ },
+ "pulseaudio": {
+ "scroll-step": 1,
+ "format": "{icon} {volume}%",
+ "format-muted": "婢 {volume}%",
+ "format-bluetooth": "{icon} {volume}%",
+ "format-bluetooth-muted": "婢 {icon}",
+ "format-icons": {
+ "headphone": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["奄", "奔", "墳"]
+ },
+ "on-click": "pavucontrol"
+ },
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
+ },
+ "tooltip": false
+ },
+ "custom/reboot": {
+ "format": "{}",
+ "exec": "~/.local/bin/dnf-needs-restarting",
+ "return-type": "json",
+ "interval": 60
+ }
+ }
+]
diff --git a/config/linux/waybar/style.css b/config/linux/waybar/style.css
new file mode 100644
index 0000000..ebcf4a6
--- /dev/null
+++ b/config/linux/waybar/style.css
@@ -0,0 +1,62 @@
+* {
+ border-radius: 0;
+ border: 0;
+ font-family: Noto Sans, JetBrainsMono Nerd Font;
+ font-size: 11pt;
+ text-shadow: none;
+}
+
+window#waybar {
+ background: #eff0f2;
+ color: #4a4b4e;
+ border-bottom: 1px solid #dee2e0;
+}
+
+tooltip {
+ background: alpha(#eff0f2, 0.95);
+ border: 1px solid #dee2e0;
+ border-radius: 5px;
+}
+
+tooltip label {
+ color: #4a4b4e;
+}
+
+label {
+ padding: 2px 10px;
+ margin: 0;
+}
+
+#workspaces label {
+ padding: 0;
+}
+
+#workspaces button {
+ padding: 0 6px;
+ font-weight: normal;
+}
+
+#workspaces button:hover {
+ box-shadow: inherit;
+ text-shadow: inherit;
+ background: #eff0f2;
+}
+
+#workspaces button.focused {
+ background: #dee2e0;
+}
+
+#idle_inhibitor {
+ margin: 0;
+ padding: 2px 12px 2px 6px;
+}
+
+#idle_inhibitor.activated {
+ color: #eff0f2;
+ background: #a32a3a;
+ text-shadow: 1px 1px 0 #ae4e2a;
+}
+
+#custom-reboot {
+ color: #a32a3a;
+}