diff options
Diffstat (limited to 'config/waybar')
| -rw-r--r-- | config/waybar/config | 58 | ||||
| -rw-r--r-- | config/waybar/default.nix | 8 | ||||
| -rw-r--r-- | config/waybar/style.css | 51 |
3 files changed, 117 insertions, 0 deletions
diff --git a/config/waybar/config b/config/waybar/config new file mode 100644 index 0000000..52d1df2 --- /dev/null +++ b/config/waybar/config @@ -0,0 +1,58 @@ +{ + "layer": "top", + "position": "bottom", + "height": 40, + "margin-top": 0, + "margin-right": 0, + "margin-bottom": 0, + "margin-left": 0, + "modules-left": ["wlr/taskbar"], + "modules-center": [], + "modules-right": ["backlight", "pulseaudio", "battery", "clock"], + + "clock": { + "format": " {:%a, %b %d %Y | %I:%M %p}" + }, + + "wlr/taskbar": { + "format": "{title:.24}", + "tooltip-format": "{title}", + "on-click": "minimize-raise", + "on-click-right": "close" + }, + + "tray": { + "icon-size": 24 + }, + + "pulseaudio": { + "format": "{icon} {volume}%", + "format-bluetooth": "{icon} {volume}%", + "format-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "phone-muted": "", + "portable": "", + "car": "", + "default": ["", ""] + }, + "scroll-step": 1, + "on-click": "pavucontrol" + }, + + "backlight": { + "format": "{icon} {percent}%", + "format-icons": ["", ""] + }, + + "battery": { + "bat": "BAT1", + "interval": 60, + "format": "{icon} {capacity}%", + "format-icons": ["", "", "", "", ""], + "max-length": 25 + } +} diff --git a/config/waybar/default.nix b/config/waybar/default.nix new file mode 100644 index 0000000..5aaf2e1 --- /dev/null +++ b/config/waybar/default.nix @@ -0,0 +1,8 @@ +{ pkgs, config, ... }: + +{ + home.packages = with pkgs; [ waybar ]; + + home.file.".config/waybar/config".source = ./config; + home.file.".config/waybar/style.css".source = ./style.css; +} diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100644 index 0000000..f016ace --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,51 @@ +/* ----------------------------------------------------------------------------- + * Styles + * -------------------------------------------------------------------------- */ + +/* COLORS */ + +/* Nord */ +@define-color bg #191919; +@define-color light #212121; + +/* Reset all styles */ +* { + border: none; + border-radius: 0px; + min-height: 0; + font-family: "UbuntuMono Nerd Font Mono"; + font-size: 14px; + font-weight: bold; + padding: 0; +} + +/* The whole bar */ +window#waybar { + background: @bg; + color: @light; + border: 2px solid #191919; +} + +/* Each module */ +#clock, +#taskbar button, +#workspaces, +#tray, +#battery, +#pulseaudio, +#backlight { + margin: 6px 6px 6px 0px; + padding: 2px 8px; + background: #212121; + color: #9b9b9b +} + +#taskbar { + padding: 0 6px; +} + +#window { + margin-right: 40px; + margin-left: 40px; + font-weight: normal; +} |
