about summary refs log tree commit diff
path: root/alpine-river/config/waybar
diff options
context:
space:
mode:
Diffstat (limited to 'alpine-river/config/waybar')
-rw-r--r--alpine-river/config/waybar/config71
-rw-r--r--alpine-river/config/waybar/rose-pine.css23
-rw-r--r--alpine-river/config/waybar/style.css98
3 files changed, 192 insertions, 0 deletions
diff --git a/alpine-river/config/waybar/config b/alpine-river/config/waybar/config
new file mode 100644
index 0000000..dd524e7
--- /dev/null
+++ b/alpine-river/config/waybar/config
@@ -0,0 +1,71 @@
+{
+  "modules-left": [
+    "river/tags"
+  ],
+  "modules-center": [
+    "mpris"
+  ],
+  "modules-right": [
+    "cpu",
+    "battery",
+    "memory",
+    "temperature",
+    "clock"
+  ],
+  "battery":{
+    "format": "bat {capacity:2}%",
+    "states": {
+      "warning": 20,
+      "critical": 10
+    },
+    "tooltip": false
+  },
+  "clock": {
+    "format": "{:%T}",
+    "format-alt": "{:%a %d-%m}",
+    "interval": 1,
+    "tooltip": false
+  },
+  "network": {
+    "format-wifi": "{essid} {signalStrength}%",
+    "format-ethernet": "{ifname}: {ipaddr}/{cidr}",
+    "format-linked": "{ifname} (No IP)",
+    "format-disconnected": "Disconnected",
+    "format-alt": "{ifname}: {ipaddr}/{cidr}",
+    "tooltip": false
+  },
+  "idle_inhibitor": {
+    "tooltip": false
+  },
+  "cpu": {
+    "format": "cpu{usage:3}%",
+    "interval": 1,
+    "states": {
+      "warning": 50,
+      "critical": 90
+    },
+    "tooltip": false
+  },
+  "memory": {
+    "format": "mem {}%",
+    "interval": 1,
+    "states": {
+      "warning": 50,
+      "critical": 90
+    },
+    "tooltip": false
+  },
+  "mpris":{
+    "player": "kew",
+    "format": "{artist} - {title}",
+    "tooltip": false,
+    "max-length": 75
+  },
+  "temperature": {
+    "format": "tmp {temperatureC}°",
+    "interval": 1,
+    "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
+    "critical-threshold": 80,
+    "tooltip": false
+  }
+}
diff --git a/alpine-river/config/waybar/rose-pine.css b/alpine-river/config/waybar/rose-pine.css
new file mode 100644
index 0000000..a3ae0e4
--- /dev/null
+++ b/alpine-river/config/waybar/rose-pine.css
@@ -0,0 +1,23 @@
+/*
+* Variant: Rosé Pine
+* Maintainer: DankChoir
+*/
+
+@define-color base            #191724;
+@define-color surface         #1f1d2e;
+@define-color overlay         #26233a;
+
+@define-color muted           #6e6a86;
+@define-color subtle          #908caa;
+@define-color text            #e0def4;
+
+@define-color love            #eb6f92;
+@define-color gold            #f6c177;
+@define-color rose            #ebbcba;
+@define-color pine            #31748f;
+@define-color foam            #9ccfd8;
+@define-color iris            #c4a7e7;
+
+@define-color highlightLow    #21202e;
+@define-color highlightMed    #403d52;
+@define-color highlightHigh   #524f67;
diff --git a/alpine-river/config/waybar/style.css b/alpine-river/config/waybar/style.css
new file mode 100644
index 0000000..484f6c4
--- /dev/null
+++ b/alpine-river/config/waybar/style.css
@@ -0,0 +1,98 @@
+@import "./rose-pine.css";
+
+* {
+    border-radius: 0;
+    font-family: FantasqueSansMono;
+    font-size: 14pt;
+    min-height: 0;
+}
+
+window#waybar {
+    background-color: rgba(0,0,0,0); /* transparent */
+}
+
+#tags {
+    margin-top: 12px;
+    margin-left: 12px;
+    padding: 1px;
+    background-color: @base; /*base02*/
+    border: 2px solid @rose; /*base1*/
+}
+
+#tags button {
+    margin: 1px;
+    padding: 1px;
+    color: @text; /*base1*/
+    border: 2px solid @base; /*base02*/
+
+    /* Disable animation on click, GTK has the stupidest defaults */
+    transition-property: none;
+}
+
+/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
+#tags button:hover {
+    box-shadow: inherit;
+    text-shadow: inherit;
+    background: @base; /*base02*/
+}
+
+#tags button.focused {
+    color: @base; /*base02*/
+    background-color: @rose; /*base1*/
+    border: 2px solid @base; /*base02*/
+}
+
+#tags button.occupied {
+    border: 2px solid @rose; /*base1*/
+}
+
+#tags button.urgent {
+    border: 2px solid @love; /*red*/
+}
+
+#tags button.occupied.urgent {
+    border: 2px solid @love; /*red*/
+}
+
+#tags button.focused.occupied {
+    color: @base; /*base02*/
+    background-color: @rose; /*base1*/
+    border: 2px solid @rose; /*base1*/
+}
+
+#battery,
+#clock,
+#mode,
+#cpu,
+#memory,
+#mpris,
+#network,
+#idle_inhibitor,
+#temperature {
+    padding: 1px 5px;
+    margin-top: 12px;
+    margin-left: 12px;
+    background-color: @base; /*base02*/
+    color: @text; /*base1*/
+    border: 2px solid @rose; /*base1*/
+}
+
+#clock {
+    margin-right: 12px;
+}
+
+#mprimpris {
+    margin-left: 0px;
+    margin-right: 0px;
+}
+
+#cpu.warning,
+#memory.warning {
+    border: 2px solid @gold; /*yellow*/
+}
+
+#cpu.critical,
+#memory.critical,
+#temperature.critical {
+    border: 2px solid @love; /*red*/
+}