summaryrefslogtreecommitdiff
path: root/dot-config/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'dot-config/waybar')
-rw-r--r--dot-config/waybar/config.jsonc102
-rw-r--r--dot-config/waybar/style.css58
2 files changed, 160 insertions, 0 deletions
diff --git a/dot-config/waybar/config.jsonc b/dot-config/waybar/config.jsonc
new file mode 100644
index 0000000..d167e6f
--- /dev/null
+++ b/dot-config/waybar/config.jsonc
@@ -0,0 +1,102 @@
+{
+ // "layer": "top", // Waybar at top layer
+ "position": "bottom", // Waybar position (top|bottom|left|right)
+ "height": 22, // Waybar height (to be removed for auto height)
+ // "width": 1280, // Waybar width
+ "spacing": 20, // Gaps between modules
+ // Choose the order of the modules
+ "modules-left": [
+ "sway/workspaces",
+ "sway/mode",
+ "sway/scratchpad",
+ ],
+ "modules-center": [
+ "clock"
+ ],
+ "modules-right": [
+ "battery",
+ "network",
+ "pulseaudio",
+ "group/hardware"
+ ],
+ "group/hardware": {
+ "orientation": "inherit",
+ "modules": [
+ "cpu",
+ "memory",
+ "temperature"
+ ],
+ },
+ "sway/mode": {
+ "format": "<span style=\"italic\">{}</span>"
+ },
+ "sway/scratchpad": {
+ "format": "{icon} {count}",
+ "show-empty": false,
+ "format-icons": ["", ""],
+ "tooltip": true,
+ "tooltip-format": "{app}: {title}"
+ },
+ "clock": {
+ // "timezone": "America/New_York",
+ "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
+ "format": "{:%a %b %d %r}",
+ "interval": 1,
+ },
+ "cpu": {
+ "format": "&#8201;{usage}%",
+ },
+ "memory": {
+ "format": "&#8201;{}%"
+ },
+ "temperature": {
+ // "thermal-zone": 2,
+ // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+ "critical-threshold": 80,
+ // "format-critical": "{temperatureC}°C {icon}",
+ "format": "{icon}{temperatureC}°C",
+ "format-icons": ["", "", ""]
+ },
+ "battery": {
+ "states": {
+ // "good": 95,
+ "warning": 30,
+ "critical": 15
+ },
+ "format": "{capacity}%&#8201;{icon}",
+ "format-full": "{capacity}%&#8201;{icon}",
+ "format-charging": "{capacity}%&#8201;",
+ "format-plugged": "{capacity}%&#8201;",
+ "format-alt": "{time} {icon}",
+ // "format-good": "", // An empty format will hide the module
+ // "format-full": "",
+ "format-icons": ["", "", "", "", ""],
+ },
+ "network": {
+ // "interface": "wlp2*", // (Optional) To force the use of this interface
+ "format-wifi": "&#8201;{essid}:{signalStrength}%",
+ "format-ethernet": "&#8201;{ipaddr}/{cidr}",
+ "tooltip-format": "{ifname} via {gwaddr} ",
+ "format-linked": "&#8201;{ifname}:No IP",
+ "format-disconnected": "⚠&#8201;Disconnected",
+ "format-alt": "{ifname}={ipaddr}/{cidr}"
+ },
+ "pulseaudio": {
+ // "scroll-step": 1, // %, can be a float
+ "format": "{icon}{volume}% {format_source}",
+ "format-bluetooth": "{icon}{volume}% {format_source}",
+ "format-bluetooth-muted": "{icon} {format_source}",
+ "format-muted": " {format_source}",
+ "format-source": "{volume}%",
+ "format-source-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", "", ""]
+ },
+ },
+}
diff --git a/dot-config/waybar/style.css b/dot-config/waybar/style.css
new file mode 100644
index 0000000..3901ff9
--- /dev/null
+++ b/dot-config/waybar/style.css
@@ -0,0 +1,58 @@
+* {
+ border: none;
+ border-radius: 0;
+ /*font-family: "PragmataPro Liga";*/
+ font-family: "Input";
+ font-size: 13px;
+ min-height: 0;
+}
+
+window#waybar {
+ background: rgba(43, 48, 59, 0.5);
+ color: white;
+}
+
+window#waybar > box {
+ padding: 0 8px 0 0;
+}
+
+#hardware * {
+ margin: 4px;
+}
+
+tooltip {
+ background: rgba(43, 48, 59, 0.5);
+ border: 1px solid rgba(100, 114, 125, 0.5);
+}
+tooltip label {
+ color: white;
+}
+
+#workspaces button {
+ padding: 0 3px;
+ background: transparent;
+ color: white;
+}
+
+#workspaces button.focused {
+ background: #64727D;
+}
+
+#mode {
+ background: #64727D;
+ border-bottom: 3px solid white;
+}
+
+@keyframes blink {
+ to {
+ color: red;
+ }
+}
+
+#battery.warning:not(.charging) {
+ animation-name: blink;
+ animation-duration: 0.5s;
+ animation-timing-function: steps(12);
+ animation-iteration-count: infinite;
+ animation-direction: alternate;
+}