Added waybar
This commit is contained in:
Executable
+125
@@ -0,0 +1,125 @@
|
||||
[
|
||||
{
|
||||
"name": "main",
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 34,
|
||||
"spacing": 4,
|
||||
"margin-top": 10,
|
||||
"margin-bottom": 0,
|
||||
"output": "DP-2",
|
||||
"modules-left": [
|
||||
"wireplumber",
|
||||
"disk",
|
||||
"memory",
|
||||
"cpu",
|
||||
"temperature"
|
||||
],
|
||||
"modules-center": ["wlr/taskbar"],
|
||||
"modules-right": [
|
||||
"hyprland/workspaces",
|
||||
"tray",
|
||||
"custom/weather",
|
||||
"network#ethernet",
|
||||
"clock",
|
||||
"custom/poweroff"
|
||||
],
|
||||
"clock": {
|
||||
"interval": 1,
|
||||
"format": "<b>{:%H:%M:%S}</b>",
|
||||
"format-alt": "{:%Y-%m-%d}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}%",
|
||||
"tooltip": false
|
||||
},
|
||||
"disk": {
|
||||
"format": " {}%",
|
||||
"tooltip-format": "{used} / {total} used"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
}
|
||||
},
|
||||
"memory": {
|
||||
"format": " {}%",
|
||||
"tooltip-format": "{used:0.1f}G / {total:0.1f}G used"
|
||||
},
|
||||
"temperature": {
|
||||
"critical-threshold": 80,
|
||||
"format": " {icon} {temperatureC}°C ",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"hwmon-path": "/sys/class/thermal/thermal_zone2/temp"
|
||||
},
|
||||
"network#ethernet": {
|
||||
"interface": "enp*",
|
||||
"format-ethernet": "",
|
||||
"format-wifi": "",
|
||||
"format-linked": "",
|
||||
"format-disconnected": "",
|
||||
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
||||
"on-click": "nm-connection-editor"
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"format": "{name}",
|
||||
"sort-by-number": true,
|
||||
"all-outputs": true
|
||||
},
|
||||
"wlr/taskbar": {
|
||||
"format": "{name}",
|
||||
"icon-size": 32,
|
||||
"tooltip": false,
|
||||
"on-click": "activate",
|
||||
"on-click-right": "close",
|
||||
"all-outputs": true,
|
||||
"ignore-list": [
|
||||
"xwaylandvideobridge"
|
||||
],
|
||||
"rewrite": {
|
||||
"(.*)Firefox Web Browser": "",
|
||||
"(.*)Discord": "",
|
||||
"(.*)Alacritty": "",
|
||||
"Steam(.*)": "",
|
||||
"(.*)Spotify": ""
|
||||
}
|
||||
},
|
||||
"wireplumber": {
|
||||
"format": " {volume}%",
|
||||
"format-muted": " 0%",
|
||||
"on-click": "pavucontrol",
|
||||
"on-click-right": "helvum",
|
||||
"max-volume": 100,
|
||||
"scroll-step": 5
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"custom/spotify": {
|
||||
"interval": 1,
|
||||
"return-type": "json",
|
||||
"exec": "~/.config/waybar/scripts/spotify.sh",
|
||||
"exec-if": "pgrep spotify",
|
||||
"escape": true
|
||||
},
|
||||
"custom/poweroff": {
|
||||
"tooltip": false,
|
||||
"format": " ",
|
||||
"on-click": "bash $HOME/.config/waybar/scripts/poweroff.sh"
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "$HOME/.config/waybar/scripts/get_weather.sh Belleville+Illinois",
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"tooltip": true,
|
||||
"interval": 3600
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user