feat(waybar): add asus profile tooltip

This commit is contained in:
Price Hiller 2022-09-06 00:32:25 -05:00
parent ca885bb9e7
commit 466a4bec62
2 changed files with 15 additions and 2 deletions

View File

@ -6,6 +6,7 @@
"idle_inhibitor", "idle_inhibitor",
"cpu", "cpu",
"temperature", "temperature",
"custom/asusmode",
"memory", "memory",
"battery", "battery",
"disk", "disk",
@ -85,7 +86,7 @@
"奄", "奄",
"奔", "奔",
"墳" "墳"
], ]
}, },
"on-click": "pw-volume mute toggle; pkill -RTMIN+8 waybar", "on-click": "pw-volume mute toggle; pkill -RTMIN+8 waybar",
"exec": "pw-volume status" "exec": "pw-volume status"
@ -124,6 +125,11 @@
] ]
} }
}, },
"custom/asusmode": {
"interval": 1,
"format": " {}",
"exec": "asusctl profile -p | awk '{print $NF}'"
},
"memory": { "memory": {
"format": " {percentage}%", "format": " {percentage}%",
"tooltip-format": "{used:0.1f}GB/{total:0.1f}GB ", "tooltip-format": "{used:0.1f}GB/{total:0.1f}GB ",
@ -149,7 +155,7 @@
"escape": true "escape": true
}, },
"wlr/workspaces": { "wlr/workspaces": {
"on-click": "activate", "on-click": "activate"
} }
}, },
{ {

View File

@ -60,6 +60,13 @@
color: @fujiWhite; color: @fujiWhite;
} }
#custom-asusmode {
background: @sumiInk0;
border-top: 2px solid @oniViolet;
border-left: 2px solid @oniViolet;
color: @fujiWhite;
}
#custom-sway-mode { #custom-sway-mode {
background: @sumiInk0; background: @sumiInk0;
border-bottom: 2px solid @oniViolet; border-bottom: 2px solid @oniViolet;