diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-01-27 12:45:54 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-01-27 12:45:54 +0530 |
| commit | 05f9bc5afd5ac5f671f1dcd3d20774b0987545ec (patch) | |
| tree | aa1a9fbe816b5217f6827ae2a41481f762c6c7f4 /config/waybar | |
| parent | cc5a352e65e533cc84358a546c9ee6f1d5a47908 (diff) | |
refactor dotfiles, and use nix
Diffstat (limited to 'config/waybar')
| -rw-r--r-- | config/waybar/config | 58 | ||||
| -rw-r--r-- | config/waybar/style.css | 108 |
2 files changed, 166 insertions, 0 deletions
diff --git a/config/waybar/config b/config/waybar/config new file mode 100644 index 0000000..24cb4f0 --- /dev/null +++ b/config/waybar/config @@ -0,0 +1,58 @@ +{ + "layer": "top", + "output": "eDP-1", + "height": 40, + "modules-left": ["custom/launcher", "hyprland/workspaces", "hyprland/window"], + "modules-right": ["tray", "cpu", "backlight", "battery", "clock"], + + // Modules configuration + "custom/launcher": { + "format": "<span font='24'></span>" + }, + "hyprland/workspaces": { + "persistent-workspaces": { + "*": 10 + }, + "disable-scroll": true, + "format": "{icon}", + "on-click": "activate", + "format-icons": { + "urgent": "", + "active": "", + "empty": "", + "default": "", + "sort-by-number": true + }, + }, + "hyprland/window": { + "format": "> {title}", + "separate-outputs": false + }, + "tray": { + "spacing": 10 + }, + "clock": { + "timezone": "Asia/Kolkata", + "format": " {:%a, %Y-%m-%d %H:%M}", + }, + "cpu": { + "format": " {usage}%", + "tooltip": false + }, + "backlight": { + "format": "{icon} {percent}%", + "format-icons": ["", "", "", "", "", "", "", "", ""] + }, + "battery": { + "bat": "BAT1", + "states": { + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%+", + "format-plugged": " {capacity}%", + "format-icons": ["", "", "", "", ""] + } +} + diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100644 index 0000000..a42db21 --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,108 @@ +* { + font-family: UbuntuMono Nerd Font Mono; + font-weight: 500; + font-size: 16px; +} + +window#waybar { + background-color: rgba(27, 27, 27, 1); + color: #f2f0fa; + transition-property: background-color; + transition-duration: .5s; +} + +button { + box-shadow: inset 0 -3px transparent; + border: none; + border-radius: 0px; +} + +button:hover { + background: inherit; +} + +#custom-launcher { + margin: 0 10px; + padding: 0 10px; +} + +#workspaces { + border-radius: 10px; + background-color: #f2f0fa; + color: #272727; + padding: 0 10px; +} + +#workspaces button { + padding: 0 10px; + color: #272727; + background-color: #f2f0fa; +} + +#workspaces button.active { + color: #272727; + background-color: #f2f0fa; +} + +#workspaces button.urgent { + color: #272727; + background-color: #f2f0fa; +} + +#clock { + padding: 0 10px; + margin: 0 10px; + color: #f2f0fa; + border-radius: 0px; +} + +#battery, +#cpu, +#backlight, +#tray { + padding: 0 10px; + margin: 0 0px; + background-color: #f2f0fa; + color: #272727; +} + +#battery { + border-radius: 0px 10px 10px 0px; +} + +#cpu { + border-radius: 10px 0px 0px 10px; +} + +#tray { + border-radius: 10px; + margin: 0 10px; +} + +#window, +#workspaces { + margin: 0 4px; +} + +/* If workspaces is the leftmost module, omit left margin */ +.modules-left > widget:first-child > #workspaces { + margin-left: 0; +} + +#battery.critical:not(.charging) { + background-color: #f53c3c; + color: #ffffff; +} + +label:focus { + background-color: #000000; +} + +#tray > .passive { + -gtk-icon-effect: dim; +} + +#tray > .needs-attention { + -gtk-icon-effect: highlight; + background-color: #eb4d4b; +} |
