From 05e8093ec8f8955dadaa29d65d811c6122084757 Mon Sep 17 00:00:00 2001
From: zachir <zachir@librem.one>
Date: Thu, 11 Jan 2024 14:01:40 -0600
Subject: waybar: clean up battery config

Change the battery config to just use stuff that I want in it, rather
than copying off of someone else's config.
---
 waybar/config | 30 ++++++++++--------------------
 1 file changed, 10 insertions(+), 20 deletions(-)

(limited to 'waybar/config')

diff --git a/waybar/config b/waybar/config
index 0590008..c7035b7 100644
--- a/waybar/config
+++ b/waybar/config
@@ -81,6 +81,16 @@
     "memory": {
         "format": "{}% "
     },
+    "battery": {
+        "bat": "BAT0",
+        "interval": 60,
+        "state": {
+            "warning": 30,
+            "critical": 15
+        },
+        "format": "{capacity}%",
+        "max-length": 25
+    },
     "temperature#cpu": {
         // "thermal-zone": 2,
         "hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
@@ -102,26 +112,6 @@
         "format": "{percent}%"
         //"format-icons": ["", ""]
     },
-    "battery": {
-        "states": {
-            // "good": 95,
-            "warning": 30,
-            "critical": 15
-        },
-        "format": "{capacity}%",
-        "format-charging": "{capacity}% +",
-        "format-plugged": "{capacity}% =",
-        "format-alt": "{time}",
-        // "format-good": "", // An empty format will hide the module
-        // "format-full": "",
-        //"format-icons": ["", "", "", "", ""]
-    },
-    "battery#bat0": {
-        "bat": "BAT0"
-    },
-    "battery#bat1": {
-        "bat": "BAT1"
-    },
     "network": {
         // "interface": "wlp2*", // (Optional) To force the use of this interface
         "format-wifi": "{essid} ({signalStrength}%) ",
-- 
cgit v1.2.3


From bc62c581b2f9ce9fa72d0ac14addee6cba073cf2 Mon Sep 17 00:00:00 2001
From: zachir <zachir@librem.one>
Date: Tue, 6 Feb 2024 12:18:16 -0600
Subject: waybar: max network name length

Sets the max network name length to 22 characters
---
 waybar/config | 1 +
 1 file changed, 1 insertion(+)

(limited to 'waybar/config')

diff --git a/waybar/config b/waybar/config
index c7035b7..790e786 100644
--- a/waybar/config
+++ b/waybar/config
@@ -120,6 +120,7 @@
         "format-linked": "{ifname} (No IP) ",
         "format-disconnected": "Disconnected ⚠",
         "format-alt": "{ifname}: {ipaddr}/{cidr}",
+        "max-length": 22,
         "on-click-right": "bash ~/.config/rofi/wifi_menu/rofi_wifi_menu"
     },
     "pulseaudio": {
-- 
cgit v1.2.3


From ac6234e68cb849be9a0fda7ee8c9c6dc63043615 Mon Sep 17 00:00:00 2001
From: zachir <zachir@librem.one>
Date: Sat, 23 Mar 2024 21:56:37 -0500
Subject: Update waybar rules for hyprland/workspaces

Waybar v0.10.0 changed how persistent workspaces are done in config.
---
 waybar/config | 33 +++++++++++++++++++++++----------
 1 file changed, 23 insertions(+), 10 deletions(-)

(limited to 'waybar/config')

diff --git a/waybar/config b/waybar/config
index 790e786..ec04dec 100644
--- a/waybar/config
+++ b/waybar/config
@@ -19,16 +19,29 @@
       "format": "{icon}",
       "active-only": false,
       "all-outputs": false,
-      "persistent_workspaces": {
-        "1": [],
-        "2": [],
-        "3": [],
-        "4": [],
-        "5": [],
-        "6": [],
-        "7": [],
-        "8": [],
-        "9": []
+      "format-icons": {
+        "1": "1",
+        "2": "2",
+        "3": "3",
+        "4": "4",
+        "5": "5",
+        "6": "6",
+        "7": "7",
+        "8": "8",
+        "9": "9",
+        "10": "1",
+        "11": "2",
+        "12": "3",
+        "13": "4",
+        "14": "5",
+        "15": "6",
+        "16": "7",
+        "17": "8",
+        "18": "9",
+      },
+      "persistent-workspaces": {
+        "DP-1": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
+        "HDMI-A-1": [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ],
       },
       "on-scroll-up": "hyprctl dispatch split-workspace e+1",
       "on-scroll-down": "hyprctl dispatch split-workspace e-1",
-- 
cgit v1.2.3