Add waybar
This commit is contained in:
149
.config/waybar/config
Normal file
149
.config/waybar/config
Normal file
@ -0,0 +1,149 @@
|
||||
[{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 30,
|
||||
|
||||
"modules-left": ["sway/mode", "temperature"],
|
||||
"modules-center": ["clock", "custom/weather"],
|
||||
"modules-right": ["network", "cpu"],
|
||||
|
||||
"clock": {
|
||||
"format": "{:%a %d %b %H:%M}",
|
||||
"tooltip": false
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": " {}"
|
||||
},
|
||||
"network": {
|
||||
"format": "{icon}",
|
||||
"format-alt": "{ipaddr}/{cidr} {icon}",
|
||||
"format-alt-click": "click-right",
|
||||
"format-icons": {
|
||||
"wifi": ["", "" ,""],
|
||||
"ethernet": [""],
|
||||
"disconnected": [""]
|
||||
},
|
||||
"on-click": "termite -e nmtui",
|
||||
"tooltip": false
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 2,
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
"format-critical": "{temperatureC}°C ",
|
||||
"format": "{temperatureC}°C "
|
||||
},
|
||||
"cpu": {
|
||||
"interval": 10,
|
||||
"format": "{}% ",
|
||||
"max-length": 10,
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 80
|
||||
}
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
"format-alt": "{alt}: {}",
|
||||
"format-alt-click": "click-right",
|
||||
"interval": 1800,
|
||||
"return-type": "json",
|
||||
"exec": "~/.config/waybar/modules/weather.sh",
|
||||
"exec-if": "ping wttr.in -c1"
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"layer": "bottom",
|
||||
"position": "bottom",
|
||||
"height": 30,
|
||||
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["custom/spotify", "custom/storage", "backlight", "pulseaudio", "idle_inhibitor", "battery", "tray"],
|
||||
"sway/mode": {
|
||||
"format": " {}"
|
||||
},
|
||||
"sway/workspaces": {
|
||||
"format": "{name}",
|
||||
"disable-scroll": true
|
||||
},
|
||||
"sway/window": {
|
||||
"max-length": 80,
|
||||
"tooltip": false
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"format-charging": "{capacity}% ",
|
||||
"interval": 30,
|
||||
"states": {
|
||||
"warning": 25,
|
||||
"critical": 10
|
||||
},
|
||||
"tooltip": false
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon}",
|
||||
"format-alt": "{volume} {icon}",
|
||||
"format-alt-click": "click-right",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"phone": [" ", " ", " ", " "],
|
||||
"default": ["", "", "", ""]
|
||||
},
|
||||
"scroll-step": 10,
|
||||
"on-click": "pavucontrol",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/spotify": {
|
||||
"interval": 1,
|
||||
"return-type": "json",
|
||||
"exec": "~/.config/waybar/modules/spotify.sh",
|
||||
"exec-if": "pgrep spotify",
|
||||
"escape": true
|
||||
},
|
||||
"custom/storage": {
|
||||
"format": "{} ",
|
||||
"format-alt": "{percentage}% ",
|
||||
"format-alt-click": "click-right",
|
||||
"return-type": "json",
|
||||
"interval": 60,
|
||||
"exec": "~/.config/waybar/modules/storage.sh"
|
||||
},
|
||||
"backlight": {
|
||||
"format": "{icon}",
|
||||
"format-alt": "{percent}% {icon}",
|
||||
"format-alt-click": "click-right",
|
||||
"format-icons": ["", ""],
|
||||
"on-scroll-down": "light -A 1",
|
||||
"on-scroll-up": "light -U 1"
|
||||
},
|
||||
"custom/weather": {
|
||||
"format": "{}",
|
||||
"format-alt": "{alt}: {}",
|
||||
"format-alt-click": "click-right",
|
||||
"interval": 1800,
|
||||
"return-type": "json",
|
||||
"exec": "~/.config/waybar/modules/weather.sh",
|
||||
"exec-if": "ping wttr.in -c1"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
},
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/test": {
|
||||
"format": "{}",
|
||||
"exec": "/tmp/test blub",
|
||||
"param": "blah",
|
||||
"interval": 5
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 18
|
||||
}
|
||||
}]
|
Reference in New Issue
Block a user