197 lines
4.2 KiB
JSON
197 lines
4.2 KiB
JSON
{
|
|
"layer": "top",
|
|
"modules-left":
|
|
[
|
|
"sway/workspaces",
|
|
"sway/scratchpad",
|
|
"sway/window"
|
|
],
|
|
"modules-center":
|
|
[
|
|
"clock"
|
|
],
|
|
"modules-right":
|
|
[
|
|
"tray",
|
|
"custom/temp2",
|
|
"custom/notification",
|
|
"custom/pacman",
|
|
"backlight",
|
|
"pulseaudio",
|
|
"network",
|
|
"idle_inhibitor",
|
|
"battery"
|
|
],
|
|
"spacing": 0,
|
|
|
|
"clock":
|
|
{
|
|
"interval": 60,
|
|
"tooltip": true,
|
|
"format": "{:%a %b %d %I:%M %p}",
|
|
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
|
"calendar":
|
|
{
|
|
"mode" : "year",
|
|
"mode-mon-col" : 3,
|
|
"weeks-pos" : "right",
|
|
"on-scroll" : 1,
|
|
"on-click-right" : "mode",
|
|
"format" :
|
|
{
|
|
"months" : "<span color='#FFEAD3'><b>{}</b></span>",
|
|
"days" : "<span color='#ECC6D9'><b>{}</b></span>",
|
|
"weeks" : "<span color='#99FFDD'><b>W{}</b></span>",
|
|
"weekdays" : "<span color='#FFCC66'><b>{}</b></span>",
|
|
"today" : "<span color='#FF6699'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
"actions":
|
|
{
|
|
"on-click-right" : "mode",
|
|
"on-click-forward" : "tz_up",
|
|
"on-click-backward" : "tz_down",
|
|
"on-scroll-up" : "shift_up",
|
|
"on-scroll-down" : "shift_down"
|
|
}
|
|
},
|
|
|
|
"custom/bg":
|
|
{
|
|
"format": "",
|
|
"exec": "~/Scripts/background-changer.sh",
|
|
"interval": 3600,
|
|
"on-click": "exec",
|
|
"tooltip": true,
|
|
"tooltip-format": "Click to Randomize Wallpaper"
|
|
},
|
|
|
|
"battery":
|
|
{
|
|
"interval": 60,
|
|
"states":
|
|
{
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
|
|
"sway/workspaces":
|
|
{
|
|
"disable-scroll": false,
|
|
"all-outputs": true,
|
|
"format": "{name}"
|
|
},
|
|
|
|
"sway/window":
|
|
{
|
|
"format": "{}",
|
|
"max-length": 50,
|
|
"icon": false
|
|
},
|
|
|
|
"sway/scratchpad":
|
|
{
|
|
"format": "{icon} {count}",
|
|
"show-empty": true,
|
|
"format-icons": ["",""],
|
|
"tooltip": true,
|
|
"tooltip-format": "{app}: {title}"
|
|
},
|
|
|
|
"idle_inhibitor":
|
|
{
|
|
"format": "{icon}",
|
|
"format-icons":
|
|
{
|
|
"activated": "",
|
|
"deactivated": ""
|
|
},
|
|
"timeout": 30.5
|
|
},
|
|
|
|
"network":
|
|
{
|
|
"format": "{ifname}",
|
|
"format-wifi": "{signalStrength}% ",
|
|
"format-ethernet": "{ifname} ",
|
|
"format-disconnected": ""
|
|
},
|
|
|
|
"pulseaudio":
|
|
{
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon} ",
|
|
"format-muted": "",
|
|
"format-icons":
|
|
{
|
|
"default": ["", ""]
|
|
},
|
|
"scroll-step": 1
|
|
},
|
|
|
|
"backlight":
|
|
{
|
|
"format": "{percent}% {icon}",
|
|
"format-icons": ["","",""],
|
|
"on-scroll-up": "brightnessctl set 1+",
|
|
"on-scroll-down": "brightnessctl set 1-",
|
|
"scroll-step": 0.5
|
|
},
|
|
|
|
"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>",
|
|
"inihibited-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
|
|
},
|
|
|
|
"custom/pacman": {
|
|
"format": "{icon}{}",
|
|
"return-type": "json",
|
|
"format-icons": {
|
|
"pending-updates": " ",
|
|
"updated": ""
|
|
},
|
|
"exec-if": "which waybar-updates",
|
|
"exec": "waybar-updates"
|
|
},
|
|
|
|
"temperature": {
|
|
"thermal-zone": 0,
|
|
"critical-threshold": 80,
|
|
"formate-critical": "{temperatureC}°C",
|
|
"format": "{temperatureC}°C"
|
|
},
|
|
|
|
"custom/temp2": {
|
|
"hwmon-path": ["/sys/class/hwmon/hwmon2/temp1_input", "/sys/class/thermal/thermal_zone0/temp"],
|
|
"critical-threshold": 80,
|
|
"formate-critical": "{temperatureC}°C",
|
|
"format": "{temperatureC}°C"
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 10
|
|
}
|
|
|
|
}
|
|
|
|
# vi: ft=json
|