aboutsummaryrefslogtreecommitdiff
path: root/config/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'config/waybar')
-rw-r--r--config/waybar/config117
-rw-r--r--config/waybar/style.css103
2 files changed, 220 insertions, 0 deletions
diff --git a/config/waybar/config b/config/waybar/config
new file mode 100644
index 0000000..00f0af8
--- /dev/null
+++ b/config/waybar/config
@@ -0,0 +1,117 @@
+[
+ {
+ "name": "topbar",
+ "layer": "bottom",
+ "position": "top",
+ "height": 0,
+ "modules-left": ["sway/workspaces", "sway/mode"],
+ "modules-center": ["clock#local", "clock#utc"],
+ "modules-right": ["tray", "cpu", "memory", "network#wifi", "pulseaudio", "battery#bat1"],
+ "idle_inhibitor": {
+ "format": "{icon}",
+ "format-icons": {
+ "activated": "",
+ "deactivated": ""
+ }
+ },
+ "clock#local": {
+ "interval": 1,
+ "format": "{:%a %d %b %I:%M %p}",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
+ },
+ "clock#utc": {
+ "interval": 1,
+ "format": "({:%H:%M %Z})",
+ "timezone": "UTC"
+ },
+ "cpu": {
+ "format": " {usage}%",
+ "tooltip": false
+ },
+ "disk": {
+ "format": " {}%",
+ "tooltip-format": "{used} / {total} used"
+ },
+ "memory": {
+ "format": " {}%",
+ "tooltip-format": "{used:0.1f}G / {total:0.1f}G used"
+ },
+ "temperature": {
+ "critical-threshold": 80,
+ "format": "{icon} {temperatureC}°C",
+ "format-icons": ["", "", "", "", ""]
+ },
+ "backlight": {
+ "device": "intel_backlight",
+ "interval": 1,
+ "on-scroll-down": "brightlight -pd 1",
+ "on-scroll-up": "brightlight -pi 1",
+ "format": "{icon} {percent}%",
+ "format-icons": ["", "", ""]
+ },
+ "battery#bat1": {
+ "bat": "BAT0",
+ "adapter": "AC",
+ "interval": 10,
+ "states": {
+ "full": 100,
+ "good": 99,
+ "empty": 5
+ },
+ "format": "{icon} {capacity}%",
+ "format-charging": " {capacity}%",
+ "format-plugged": " {capacity}%",
+ "format-empty": "",
+ "format-full": "",
+ "format-icons": ["", "", "", "", ""]
+ },
+ "network#disconnected": {
+ "tooltip-format": "No connection!",
+ "format-ethernet": "",
+ "format-wifi": "",
+ "format-linked": "",
+ "format-disconnected": "",
+ "on-click": "nm-connection-editor"
+ },
+ "network#ethernet": {
+ "interface": "enp*",
+ "format-ethernet": "",
+ "format-wifi": "",
+ "format-linked": "",
+ "format-disconnected": "",
+ "tooltip-format": "{ifname}: {ipaddr}/{cidr}",
+ "on-click": "nm-connection-editor"
+ },
+ "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"
+ },
+ "network#vpn": {
+ "interface": "tun0",
+ "format": "",
+ "format-disconnected": "",
+ "tooltip-format": "{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"
+ }
+ }
+]
diff --git a/config/waybar/style.css b/config/waybar/style.css
new file mode 100644
index 0000000..c3646a8
--- /dev/null
+++ b/config/waybar/style.css
@@ -0,0 +1,103 @@
+* {
+ border: none;
+ border-radius: 0;
+ font-family: "SauceCodePro Nerd Font";
+ font-size: 10pt;
+ min-height: 0;
+}
+
+window#waybar {
+ background-color: rgba(43, 48, 59, 1);
+ color: #ffffff;
+ transition-property: background-color;
+ transition-duration: .5s;
+}
+
+window#waybar.empty {
+ color: rgba(0,0,0,0);
+}
+
+.topbar {
+/* border-bottom: 1px solid rgba(100, 114, 125, 1);*/
+}
+
+#workspaces button {
+ padding: 0 5px;
+ background-color: transparent;
+ color: #ffffff;
+}
+
+#workspaces button:hover {
+ background: rgba(0, 0, 0, 0.2);
+ box-shadow: inset 0 3px #ffffff;
+}
+
+#workspaces button.focused {
+ background-color: #64727D;
+ box-shadow: inset 0 3px #ffffff;
+}
+
+#workspaces button.urgent {
+ background-color: #eb4d4b;
+}
+
+#mode {
+ background-color: #64727D;
+ border-top: 3px solid #ffffff;
+}
+
+#backlight,
+#battery.bat1,
+#battery.bat2,
+#clock,
+#cpu,
+#custom-mail,
+#custom-poweroff,
+#custom-weather,
+#disk,
+#idle_inhibitor,
+#memory,
+#mode,
+#network.vpn,
+#network.wifi,
+#network.ethernet,
+#network.disconnected,
+#pulseaudio,
+#taskbar,
+#temperature,
+#tray {
+ padding: 0 6 2 0px;
+ margin: 0 4px;
+ color: #ffffff;
+}
+
+@keyframes blink {
+ to {
+ background-color: #ffffff;
+ color: #000000;
+ }
+}
+
+#battery.bat2.critical:not(.charging) {
+ background-color: #f53c3c;
+ color: #ffffff;
+ animation-name: blink;
+ animation-duration: 0.5s;
+ animation-timing-function: linear;
+ animation-iteration-count: infinite;
+ animation-direction: alternate;
+}
+
+#temperature.critical {
+ background-color: #eb4d4b;
+}
+
+#taskbar button:hover {
+ background: rgba(0, 0, 0, 0.2);
+ box-shadow: inset 0 3px #ffffff;
+}
+
+#taskbar button.active {
+ background-color: #64727D;
+ box-shadow: inset 0 3px #ffffff;
+}