192 lines
5.6 KiB
Plaintext
192 lines
5.6 KiB
Plaintext
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"mod": "dock",
|
|
"exclusive": true,
|
|
"passthrough": false,
|
|
"gtk-layer-shell": true,
|
|
"height": 50,
|
|
"modules-left": ["custom/launch_wofi","hyprland/workspaces","hyprland/window","cpu","memory","disk"],
|
|
"modules-center": ["custom/lock_screen","custom/updates","clock","custom/power_btn"],
|
|
"modules-right": ["temperature","custom/power_profile","battery","backlight","pulseaudio","pulseaudio#microphone","tray","custom/weather","custom/notification","custom/light_dark"],
|
|
|
|
"hyprland/window": {
|
|
"format": "{}"
|
|
},
|
|
|
|
"custom/launch_wofi": {
|
|
"format": "",
|
|
"on-click": "pkill wofi; wofi -n",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/lock_screen": {
|
|
"format": "",
|
|
"on-click": "sh -c '(sleep 0.5s; swaylock -c 000000 -e -i ~/.config/hypr/wallpaper/hoshino.png)' & disown",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/light_dark": {
|
|
"format": "💡",
|
|
"on-click": "~/.config/waybar/scripts/baraction light",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/power_btn": {
|
|
"format": "",
|
|
"on-click": "sh -c '(sleep 0.5s; wlogout --protocol layer-shell)' & disown",
|
|
"tooltip": false
|
|
},
|
|
|
|
"cpu": {
|
|
"interval": 10,
|
|
"format": " {usage}%",
|
|
"max-length": 10,
|
|
"on-click": "kitty --start-as=fullscreen --title btop sh -c 'btop'"
|
|
},
|
|
|
|
"disk": {
|
|
"interval": 30,
|
|
"format": "💾 {percentage_used}%",
|
|
"path": "/",
|
|
"tooltip": true,
|
|
"tooltip-format": "HDD - {used} used out of {total} on {path} ({percentage_used}%)",
|
|
"on-click": "nemo /"
|
|
},
|
|
|
|
"memory": {
|
|
"interval": 30,
|
|
"format": " {}%",
|
|
"max-length": 10,
|
|
"tooltip": true,
|
|
"tooltip-format": "Memory - {used:0.1f}GB used",
|
|
"on-click": "kitty --start-as=fullscreen --title btop sh -c 'btop'"
|
|
},
|
|
|
|
"custom/updates": {
|
|
"format": "{}",
|
|
"exec": "~/.config/waybar/scripts/update-sys",
|
|
"on-click": "~/.config/waybar/scripts/update-sys update",
|
|
"interval": 300,
|
|
"tooltip": true
|
|
},
|
|
|
|
"custom/power_profile": {
|
|
//shows the current power profile and switches to next on click
|
|
"exec": "echo ?",
|
|
"interval": 30,
|
|
"format": "💻 {}",
|
|
"signal": 8
|
|
},
|
|
|
|
"custom/weather": {
|
|
//shows the current weather and forecast
|
|
"tooltip" : true,
|
|
"format" : "{}",
|
|
"interval" : 30,
|
|
"exec" : "~/.config/waybar/scripts/waybar-wttr.py",
|
|
"return-type" : "json"
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 10
|
|
},
|
|
|
|
"clock": {
|
|
"format": "{:%H:%M }",
|
|
"tooltip": true,
|
|
"tooltip-format": "{:%A, %e %B %Y }"
|
|
},
|
|
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": ["○", "◐", "●"],
|
|
"on-scroll-up": "brightnessctl set 1%+",
|
|
"on-scroll-down": "brightnessctl set 1%-",
|
|
"min-length": 6
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 20
|
|
},
|
|
"format": "🔋 {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{time} 🔋",
|
|
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": "",
|
|
"on-click": "pamixer -t",
|
|
"on-click-right": "pavucontrol",
|
|
"on-scroll-up": "pamixer -d 1",
|
|
"on-scroll-down": "pamixer -i 1",
|
|
"scroll-step": 5,
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
}
|
|
},
|
|
|
|
"pulseaudio#microphone": {
|
|
"format": "{format_source}",
|
|
"format-source": " {volume}%",
|
|
"format-source-muted": "",
|
|
"on-click": "pamixer --default-source -t",
|
|
"on-click-right": "pavucontrol",
|
|
"on-scroll-up": "pamixer --default-source -d 1",
|
|
"on-scroll-down": "pamixer --default-source -i 1",
|
|
"scroll-step": 5
|
|
},
|
|
|
|
"temperature": {
|
|
"thermal-zone": 1,
|
|
"format": " {temperatureC}°C",
|
|
"critical-threshold": 80,
|
|
"format-critical": " {temperatureC}°C",
|
|
"on-click": "kitty --start-as=fullscreen --title btop sh -c 'btop'"
|
|
},
|
|
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
|
|
"hyprland/workspaces": {
|
|
"show-special": true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
},
|
|
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
|
"on-scroll-down": "hyprctl dispatch workspace e-1"
|
|
}
|
|
}
|