135 lines
3.8 KiB
Plaintext
135 lines
3.8 KiB
Plaintext
{
|
|
"title": "waybar",
|
|
"layer": "top",
|
|
"position": "bottom",
|
|
"height": 30,
|
|
"spacing": 4,
|
|
"reload_style_on_change": true,
|
|
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"sway/mode",
|
|
],
|
|
|
|
"modules-right": [
|
|
"custom/wireless",
|
|
"custom/diskroot",
|
|
"custom/diskhome",
|
|
"memory",
|
|
"cpu",
|
|
"custom/cpu_temp",
|
|
"custom/battery",
|
|
"custom/pomodoro",
|
|
"custom/bluetooth",
|
|
"pulseaudio",
|
|
"custom/language",
|
|
"custom/userhost",
|
|
"clock",
|
|
"tray",
|
|
"custom/power",
|
|
],
|
|
|
|
"clock": {
|
|
"format": " {:%d.%m.%y %a %H:%M}",
|
|
"format-alt": "{:%H:%M}",
|
|
"interval": 30,
|
|
},
|
|
|
|
"custom/wireless": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh wireless",
|
|
"interval": 10,
|
|
"return-type": "text",
|
|
},
|
|
"custom/diskroot": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh disk_root",
|
|
"interval": 30,
|
|
"return-type": "text",
|
|
},
|
|
"custom/diskhome": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh disk_home",
|
|
"interval": 30,
|
|
"return-type": "text",
|
|
},
|
|
"memory": {
|
|
"interval": 5,
|
|
"format": "{used:0.1f}G/{total:0.1f}G ",
|
|
},
|
|
"cpu": {
|
|
"interval": 1,
|
|
"format": "{icon} ",
|
|
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
|
},
|
|
"custom/cpu_temp": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh cpu_temp",
|
|
"interval": 5,
|
|
"return-type": "text",
|
|
},
|
|
"custom/bluetooth": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh bluetooth_battery",
|
|
"interval": 5,
|
|
"return-type": "text",
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon}",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
|
|
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"phone-muted": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", ""]
|
|
},
|
|
"scroll-step": 1,
|
|
"on-click": "pavucontrol",
|
|
},
|
|
"custom/pomodoro": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh pomodoro",
|
|
"interval": 1,
|
|
"return-type": "text",
|
|
"signal": 2,
|
|
"on-click": "pomodoro toggle",
|
|
},
|
|
"custom/language": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh language",
|
|
"return-type": "text",
|
|
"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
|
|
"interval": 10,
|
|
"signal": 3,
|
|
},
|
|
"custom/userhost": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh userhost",
|
|
"return-type": "text",
|
|
},
|
|
"custom/battery": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh battery",
|
|
"interval": 30,
|
|
"return-type": "text",
|
|
},
|
|
"custom/time": {
|
|
"exec": "~/.config/waybar/scripts/builder.sh time",
|
|
"interval": 30,
|
|
"return-type": "text",
|
|
},
|
|
"custom/power": {
|
|
"format" : "⏻",
|
|
"tooltip": false,
|
|
"menu": "on-click",
|
|
"menu-file": "~/.config/waybar/power_menu.xml",
|
|
"menu-actions": {
|
|
"exit": "swaymsg exit",
|
|
"reboot": "reboot",
|
|
"shutdown": "shutdown -h now",
|
|
"suspend": "~/.config/sway/scripts/lock-telegram.sh && systemctl suspend",
|
|
"lock": "~/.config/sway/scripts/lock-telegram.sh && swaylock -f",
|
|
"black": "magick canvas:none PNG:- | feh --class black -YFx -",
|
|
"uefi_reboot": "systemctl reboot --firmware-setup",
|
|
},
|
|
},
|
|
}
|