diff --git a/home/dot_config/waybar/config.tmpl b/home/dot_config/waybar/config.tmpl
index 14a66f70..ce6667b0 100644
--- a/home/dot_config/waybar/config.tmpl
+++ b/home/dot_config/waybar/config.tmpl
@@ -4,7 +4,13 @@
// Choose the order of the modules
"modules-left": ["hyprland/workspaces", "hyprland/submap", "hyprland/window"],
"modules-center": ["clock"],
- "modules-right": ["tray", "custom/separator", "network", "custom/separator", "cpu", "custom/separator", "memory", "custom/separator", "pulseaudio", "custom/separator", "custom/disk"],
+ "modules-right": ["tray", "custom/separator",
+ "network", "custom/separator",
+ "cpu", "custom/separator",
+ "memory", "custom/separator",
+ "custom/mouse", "custom/separator",
+ "pulseaudio", "custom/separator",
+ "custom/disk", "custom/bits"],
"hyprland/workspaces": {
"format": "{icon}",
@@ -18,10 +24,15 @@
"hyprland/submap": {
"format": " {}"
},
- "custom/disk": {
- "format": " {}G ",
- "interval": 30,
- "exec": "df -h --output=avail / | awk 'NR==2 {sub(/.$/, \"\", $1); print $1}'",
+ "custom/bits": {
+ "format": "{}",
+ "interval": 5,
+ "exec": "~/.config/waybar/scripts/bits.sh",
+ },
+ "custom/disk": {
+ "format": " {}G ",
+ "interval": 30,
+ "exec": "df -h --output=avail / | awk 'NR==2 {sub(/.$/, \"\", $1); print $1}'",
},
"cpu": {
"format": " {usage}%",
@@ -38,6 +49,11 @@
"format-disconnected": "",
"on-click": "nm-connection-editor"
},
+ "custom/mouse": {
+ "format": " {}% ",
+ "interval": 5,
+ "exec": "cat /sys/class/power_supply/hidpp_battery_[0-9]*/capacity | head -n 1",
+ },
"pulseaudio": {
"format": "{icon} {volume}% {format_source}",
"format-muted": " {format_source}",
diff --git a/home/dot_config/waybar/scripts/executable_bits.sh.tmpl b/home/dot_config/waybar/scripts/executable_bits.sh.tmpl
new file mode 100644
index 00000000..fc3e2213
--- /dev/null
+++ b/home/dot_config/waybar/scripts/executable_bits.sh.tmpl
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+# https://github.com/starr-dusT/dotfiles
+
+bits=""
+
+# Gamemode bit
+if [ "$(gamemoded -s)" != "gamemode is inactive" ]; then
+ bits+="G"
+fi
+
+# VPN bit
+if [ -f ~/.wg0 ]; then
+ bits+="V"
+fi
+
+# Print bits if there are any
+if [ "$bits" != "" ]; then
+ # Seperator
+ echo " | $bits "
+fi
diff --git a/home/dot_config/waybar/scripts/executable_idle.sh b/home/dot_config/waybar/scripts/executable_idle.sh
deleted file mode 100644
index 2304734b..00000000
--- a/home/dot_config/waybar/scripts/executable_idle.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-swayidle -w \
- timeout 300 'hyprctl dispatch dpms off' \
- resume 'hyprctl dispatch dpms on' \
diff --git a/home/dot_config/waybar/style.css.tmpl b/home/dot_config/waybar/style.css.tmpl
index 1373b2a6..b283671a 100644
--- a/home/dot_config/waybar/style.css.tmpl
+++ b/home/dot_config/waybar/style.css.tmpl
@@ -118,6 +118,10 @@ window#waybar.hidden {
color: @fg;
}
+#custom-mouse {
+ color: @fg;
+}
+
#tray {
padding: 0 6px;
}