mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-03 05:40:38 -04:00
battery / backlight update for laptops
This commit is contained in:
parent
55bc00bf01
commit
a64c95e180
2 changed files with 40 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"layer": "top", // Waybar at top layer
|
||||
// "output": ["DP-1"],
|
||||
// "output": ["eDP-1"],
|
||||
"position": "top", // Waybar position (top|bottom|left|right)
|
||||
// "height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
|
@ -8,7 +8,7 @@
|
|||
// Choose the order of the modules
|
||||
"modules-left": ["custom/menu", "hyprland/workspaces", "custom/swaync", "custom/updates"],
|
||||
"modules-center": ["custom/playerctl", "custom/playerlabel"],
|
||||
"modules-right": ["network", "pulseaudio", "clock", "tray", "custom/power"],
|
||||
"modules-right": ["network", "pulseaudio", "clock", "tray", "battery", "backlight", "custom/power"],
|
||||
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
|
@ -83,6 +83,28 @@
|
|||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": " {essid}",
|
||||
|
@ -141,19 +163,19 @@
|
|||
|
||||
"persistent-workspaces":{
|
||||
"1": [
|
||||
"DP-1"
|
||||
"eDP-1"
|
||||
],
|
||||
"2": [
|
||||
"DP-1"
|
||||
"eDP-1"
|
||||
],
|
||||
"3": [
|
||||
"DP-1"
|
||||
"eDP-1"
|
||||
],
|
||||
"4": [
|
||||
"DP-1"
|
||||
"eDP-1"
|
||||
],
|
||||
"5": [
|
||||
"DP-1"
|
||||
"eDP-1"
|
||||
],
|
||||
"6": [
|
||||
"HDMI-A-1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue