dotfiles/.config/waybar/laptop-bar/config

122 lines
3.4 KiB
Plaintext
Executable file

{
"height": 50,
"layer": "top",
"position": "top",
"spacing": 7,
"modules-left": ["custom/launcher", "cpu", "temperature", "backlight", "custom/dunst"],
"modules-center": ["wlr/workspaces"],
"modules-right": ["pulseaudio", "network", "battery", "clock", "custom/powermenu"],
"wlr/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"persistent_workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": [],
"7": [],
"8": [],
"9": [],
"10": []
}
},
"custom/launcher": {
"interval": "once",
"format": "",
"on-click": "wofi --show drun --columns 2 -I -s ~/.config/wofi/style.css",
"tooltip": false
},
"cpu": {
"interval": 10,
"format": " {usage}%",
"max-length": 10
},
"temperature": {
"hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
"input-filename": "temp1_input",
"format": " {temperatureC}°C",
"on-click": "psensor"
},
"backlight": {
"device": "nvidia_0",
"max-length": "4",
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""],
"on-click": "",
"on-scroll-up": "brightnessctl set 10%-",
"on-scroll-down": "brightnessctl set +10%"
},
"custom/dunst": {
"exec": "~/.config/waybar/scripts/dunst.sh",
"on-click": "dunstctl set-paused toggle",
"restart-interval": 1,
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}% {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": "婢",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click-right": "pavucontrol",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
},
"network": {
"format-wifi": "直 {signalStrength}%",
"format-ethernet": " wired",
"format-disconnected": "睊 ",
"on-click": "sh ~/.config/wofi/wifimenu.sh"
},
"battery": {
"bat": "BAT0",
"adapter": "ADP0",
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"max-length": 20,
"format": "{icon} {capacity}%",
"format-warning": "{icon} {capacity}%",
"format-critical": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{icon} {time}",
"format-full": " {capacity}%",
"format-icons": [" ", " ", " ", " ", " "]
},
"clock": {
"format-alt": "<span> </span> {:%a %b %d}",
"format": "<span> </span> {:%I:%M %p}"
},
"custom/powermenu": {
"format": "",
"on-click": "bash ~/.config/wofi/powermenu.sh",
"tooltip": false
}
}