diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2024-05-23 09:44:38 +0300 |
| commit | 75c2af4aedd2ac5c2cfc74b346625fa4b265541d (patch) | |
| tree | f0a58a6c699dc305ae8f506a806761ad7e57029c /home/waybar/config | |
| download | nixos-75c2af4aedd2ac5c2cfc74b346625fa4b265541d.tar.zst | |
Nixos
Diffstat (limited to 'home/waybar/config')
| -rw-r--r-- | home/waybar/config | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/home/waybar/config b/home/waybar/config new file mode 100644 index 0000000..779a9a1 --- /dev/null +++ b/home/waybar/config @@ -0,0 +1,160 @@ +{ + // ------------------------------------------------------------------------- + // Global configuration + // ------------------------------------------------------------------------- + "ipc": true, + "position": "bottom", + "layer": "top", + "height": 30, + "mode": "dock", + "modules-left": [ + "hyprland/hide", + "hyprland/mode", + "hyprland/workspaces", + "disk", + "memory", + "cpu", + "temperature", + "custom/spotify" + ], + "modules-center": [ + "hyprland/window" + ], + "modules-right": [ + "pulseaudio", + "battery", + "backlight", + "clock#date", + "clock#time", + "network", + "tray" + ], + // ------------------------------------------------------------------------- + // Modules + // ------------------------------------------------------------------------- + "hyprland/hide": { + "hide-on-startup": true + }, + "battery": { + "interval": 1, + "states": { + "low": 30, + "warning": 15, + "critical": 5 + }, + "format": "{icon} {capacity}%", + "format-discharging": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "tooltip-format": "{time} left", + "format-icons": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + ], + "tooltip": true, + "full-at": 95 + }, + "clock#time": { + "interval": 10, + "format": "{:%H:%M}", + "tooltip": false + }, + "clock#date": { + "interval": 60, + "format": "{:%A, %e %b %Y}", + "tooltip": true + }, + "cpu": { + "interval": 2, + "tooltip": true, + "format": " {usage}%", + "states": { + "low": 0, + "normal": 20, + "warning": 70, + "critical": 90 + } + }, + "memory": { + "interval": 5, + "format": " {used:0.1f}G", + "tooltip-format": "{used:0.1f}G / {total:0.1f}G", + "states": { + "warning": 70, + "critical": 90 + } + }, + "network": { + "interval": 1, + "format-wifi": "{icon}", + "format-disconnected": "", + "format-icons": [ + "", + "", + "", + "", + "" + ], + "tooltip-format": "{essid} ({signalStrength}%) - {ifname} - {ipaddr} - {bandwidthDownBits} {bandwidthUpBits}", + "tooltip": true, + }, + "hyprland/mode": { + "format": "<span style=\"italic\"> {}</span>", + "tooltip": false + }, + "hyprland/window": { + "format": "{}", + "max-length": 60, + "tooltip": true + }, + "hyprland/workspaces": { + "all-outputs": true, + "format": "{icon}" + }, + "pulseaudio": { + "scroll-step": 1, + "format": "{icon} {volume}%", + "format-muted": "", + "format-bluetooth": " {icon} {volume}%", + "format-bluetooth-muted": "", + "on-click": "pulseaudio-control togmute", + "on-click-middle": "pulseaudio-control --sink-blacklist 'alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink,alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink,alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink' next-sink" + }, + "temperature": { + "critical-threshold": 90, + "interval": 5, + "format": "{icon} {temperatureC}°C", + "format-icons": [ + "", + "", + "", + "", + "" + ], + "tooltip": true + }, + "disk": { + "interval": 10, + "format": "{free}" + }, + "backlight": { + "device": "intel_backlight", + "format": "{icon} {percent}", + "format-icons": [ + "" + ], + "on-scroll-up": "brightnessctl set +1% -e 6 -n 1", + "on-scroll-down": "brightnessctl set 1%- -e 6 -n 1" + }, + "tray": { + "icon-size": 24, + "spacing": 10 + } +} |
