Add '.config/waybar/config'

This commit is contained in:
tk1rk 2022-11-14 23:35:46 +01:00
parent 253591cd9a
commit 379150e3a0
1 changed files with 99 additions and 0 deletions

99
.config/waybar/config Normal file
View File

@ -0,0 +1,99 @@
"settings": [
"mainBar": [
"layer": "top",
"position": "left",
"width": "60",
"spacing": "7",
"modules-left": [
"custom/search"
"wlr/workspaces"
"custom/lock"
"custom/weather"
"custom/todo"
"backlight"
"battery"
],
],
"modules-center": [],
"modules-right": ["pulseaudio" "network" "custom/swallow" "clock" "custom/power"],
"wlr/workspaces": [
"on-click": "activate",
"format": "{icon}",
"active-only": "false",
"format-icons": [
"default": "",
"active": " 󰮯",
],
],
"custom/search": [
"format": " ",
"tooltip": "false",
"on-click": "killall rofi || ${pkgs.rofi}/bin/rofi -show drun",
],
"custom/todo": [
"format": "[]",
"tooltip": "true",
"interval": "7",
"exec": "${./scripts/todo.sh}",
"return-type": "json",
],
"custom/weather": [
"format: "[]",
"tooltip: "true",
"interval: "3600",
"exec": "${waybar-wttr}",
"return-type", "json",
],
"custom/lock" = [
"tooltip": "false",
"on-click" "sh -c '(sleep 0.5s; ${pkgs.swaylock}/bin/swaylock --grace 0)' & disown",
"format": "",
],
"custom/swallow" = [
"tooltip": "false",
"on-click": "${./scripts/waybar-swallow.sh}",
"format": "",
],
"custom/power" = {
"tooltip": "false",
"on-click": "${./scripts/shutdown.sh} &",
"format": "襤",
],
"clock": [
"format": ":%H %M}",
"tooltip-format": "<big>{:%Y %B}</big><tt><small>{calendar}</small></tt>",
],
"backlight": [
"format": "[icon]",
"format-icons": ["" "" "" "" "" "" "" "" ""],
],
"battery": [
"states": [],
"warning": "30",
"critical": "15",
],
"format": "{icon}",
"format-charging": "",
"format-plugged": "",
"format-alt": "{icon}",
"format-icons": ["" "" "" "" "" "" "" "" "" "" "" ""],
],
"network" = [
"format-wifi": "󰤨",
"format-ethernet": "󰤨",
"format-alt": "󰤨",
"format-disconnected": "󰤭",
"tooltip-format": "{ipaddr}/{ifname} via {gwaddr} ({signalStrength}%)",
],
"pulseaudio" = [
"scroll-step": "5",
"tooltip"": "false",
"format": "{icon}",
"format-icons": "default = ["" "" "墳"]",
"on-click": "${pkgs.killall}/bin/killall pavucontrol || ${pkgs.pavucontrol}/bin/pavucontrol",
],
],
],
],
]