summaryrefslogtreecommitdiff
path: root/waybar/config
diff options
context:
space:
mode:
Diffstat (limited to 'waybar/config')
-rw-r--r--waybar/config18
1 files changed, 13 insertions, 5 deletions
diff --git a/waybar/config b/waybar/config
index 25fb4dc..9c7c2c5 100644
--- a/waybar/config
+++ b/waybar/config
@@ -1,3 +1,4 @@
+// vim: set filetype=json5 :
{
"layer": "bottom",
"position": "top",
@@ -11,7 +12,7 @@
"modules-left":[ "hyprland/workspaces", "custom/launcher", "hyprland/window"],
"modules-center":[],
- "modules-right":[ "tray", "mpd", "idle_inhibitor", "wireplumber", "cpu", "memory", "temperature#cpu", "temperature#gpu", "backlight", "network", "clock", "custom/power"],
+ "modules-right":[ "tray", "mpd", "idle_inhibitor", "wireplumber", "cpu", "memory", "temperature#cpu", "temperature#gpu", "backlight", "custom/battery", "network", "clock", "custom/power"],
// Modules configuration
@@ -170,16 +171,16 @@
},
"temperature#cpu": {
"thermal-zone": 0,
- // "hwmon-path": "cat /sys/class/hwmon/hwmon5/temp1_input",
- "critical-threshold": 110,
+ // "hwmon-path": "cat /sys/class/hwmon/hwmon4/temp1_input",
+ "critical-threshold": 90,
"format-critical": "{temperatureC}°C",
"format": "",
"format-icons": ["", "", ""]
},
"temperature#gpu": {
"thermal-zone": 1,
- // "hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
- "critical-threshold": 126,
+ // "hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
+ "critical-threshold": 90,
"format-critical": "{temperatureC}°C",
"format": "",
"format-icons": ["", "", ""]
@@ -213,6 +214,13 @@
"on-click": "rofi -show drun",
//"on-click-right": "killall rofi"
},
+ "custom/battery":{
+ "interval": 15,
+ "format": "{percentage}%",
+ "return-type": "json",
+ "exec": "custom-battery",
+ "tooltip": true,
+ },
"custom/power":{
"format": "",
"on-click": "rofi -show p -modi p:rofi-power-menu",