aboutsummaryrefslogtreecommitdiff
path: root/stow/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'stow/waybar')
-rw-r--r--stow/waybar/.config/waybar/config87
-rw-r--r--stow/waybar/.config/waybar/style.css102
2 files changed, 189 insertions, 0 deletions
diff --git a/stow/waybar/.config/waybar/config b/stow/waybar/.config/waybar/config
new file mode 100644
index 0000000..f3dd9b1
--- /dev/null
+++ b/stow/waybar/.config/waybar/config
@@ -0,0 +1,87 @@
+[
+ {
+ "name": "topbar",
+ "layer": "bottom",
+ "position": "top",
+ "height": 0,
+ "modules-left": ["sway/workspaces", "sway/mode"],
+ "modules-center": ["sway/window"],
+ "modules-right": ["tray", "custom/reboot", "custom/backup", "pulseaudio", "battery", "temperature", "idle_inhibitor", "clock"],
+ "sway/workspaces": {
+ "format": "{name}<span font_scale='superscript' rise='6pt'> {index}</span>",
+ "format-icons": {
+ "1": "",
+ "2": "",
+ "3": ""
+ }
+ },
+ "sway/window": {
+ "max-length": 100,
+ "rewrite": {
+ "(.*) — Mozilla Firefox": "$1"
+ },
+ "icon": true,
+ "icon-size": 20
+ },
+ "tray": {
+ "spacing": 20
+ },
+ "clock": {
+ "interval": 1,
+ "format": "{:%a %d %b %I:%M %p}",
+ "format-alt": "{:%Y-%m-%d %H:%M:%S}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "today-format": "<b>{}</b>"
+ },
+ "temperature": {
+ "critical-threshold": 80,
+ "format": "{icon}",
+ "format-alt": "{temperatureC}°C {icon}",
+ "format-icons": ["", "", ""],
+ "tooltip-format": "Temperature: {temperatureC}°C"
+ },
+ "battery": {
+ "interval": 60,
+ "states": {
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "{icon}",
+ "format-alt": "{capacity}% {icon}",
+ "format-charging": "\uf0e7",
+ "format-icons": ["", "", "", "", ""],
+ "tooltip-format": "Battery: {capacity}%\n{timeTo}"
+ },
+ "pulseaudio": {
+ "scroll-step": 5,
+ "format": "{icon}",
+ "format-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "default": ["", ""]
+ },
+ "tooltip-format": "Volume: {volume}%\n{desc}",
+ "on-click": "pavucontrol-qt"
+ },
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
+ },
+ "tooltip": false
+ },
+ "custom/reboot": {
+ "format": "{}",
+ "exec": "~/.local/bin/dnf-needs-restarting",
+ "return-type": "json",
+ "interval": 60
+ },
+ "custom/backup": {
+ "format": "{}",
+ "exec": "~/.local/bin/checkbackup",
+ "return-type": "json",
+ "interval": 60
+ }
+ }
+]
diff --git a/stow/waybar/.config/waybar/style.css b/stow/waybar/.config/waybar/style.css
new file mode 100644
index 0000000..de3eb19
--- /dev/null
+++ b/stow/waybar/.config/waybar/style.css
@@ -0,0 +1,102 @@
+* {
+ border-radius: 0;
+ border: 0;
+ font-family: "Noto Sans", "Font Awesome 6 Free Solid";
+ font-size: 11pt;
+ text-shadow: none;
+}
+
+window#waybar {
+ background: #ffffff;
+ color: #4a484d;
+ border-bottom: 1px solid #efefef;
+ border-left: 5px solid black;
+ border-right: 5px solid black;
+}
+
+.modules-left, .modules-center, .modules-right {
+ background: #ffffff;
+ border-bottom: 1px solid #efefef;
+}
+
+.modules-left {
+ border-radius: 5px 0 0 0;
+ padding-left: 5px;
+}
+
+.modules-right {
+ border-radius: 0 5px 0 0;
+}
+
+tooltip {
+ background: alpha(#fafafa, 0.95);
+ border: 1px solid #ddd;
+}
+
+tooltip label {
+ color: #4a484d;
+}
+
+label, #tray {
+ padding: 2px 10px;
+ margin: 0;
+}
+
+#workspaces label {
+ padding: 0;
+ font-weight: bold;
+ font-family: "Noto Sans", "Font Awesome 6 Free Regular";
+}
+
+#workspaces button {
+ padding: 0 6px;
+ min-width: 30px;
+}
+
+#workspaces button:hover {
+ box-shadow: inherit;
+ text-shadow: inherit;
+ background: #ffffff;
+}
+
+#workspaces button.focused {
+ background: #efefef;
+}
+
+#custom-reboot, #custom-backup, #idle_inhibitor {
+ min-width: 18px;
+}
+
+#network, #pulseaudio, #battery, #temperature {
+ font-weight: 500;
+}
+
+#battery.warning:not(.charging) {
+ color: #714700;
+}
+
+#battery.critical:not(.charging) {
+ color: #a50000;
+}
+
+#temperature.critical {
+ color: #a50000;
+}
+
+#clock {
+ font-weight: 500;
+}
+
+#idle_inhibitor {
+ margin: 0;
+}
+
+#idle_inhibitor.activated {
+ color: #ffffff;
+ background: #a50000;
+ text-shadow: 1px 1px 0 #992030;
+}
+
+#custom-reboot, #custom-backup.script-error {
+ color: #a50000;
+}