From 5055c72d26569d352b0273cd79544ece594763b2 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Fri, 2 Feb 2024 15:55:42 +0530 Subject: remove dwlb --- config/waybar/config | 41 +++++++++++++++++ config/waybar/default.nix | 7 +++ config/waybar/style.css | 110 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 config/waybar/config create mode 100644 config/waybar/default.nix create mode 100644 config/waybar/style.css (limited to 'config/waybar') diff --git a/config/waybar/config b/config/waybar/config new file mode 100644 index 0000000..7e472a7 --- /dev/null +++ b/config/waybar/config @@ -0,0 +1,41 @@ +{ + "layer": "top", + "height": 40, + "modules-left": ["custom/launcher", "dwl/tags"], + "modules-right": ["tray", "cpu", "backlight", "battery", "clock"], + + // Modules configuration + "custom/launcher": { + "format": "" + }, + "dwl/tags": { + "num-tags": 9 + }, + "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/default.nix b/config/waybar/default.nix new file mode 100644 index 0000000..915502b --- /dev/null +++ b/config/waybar/default.nix @@ -0,0 +1,7 @@ +{ pkgs, config, ... }: + +{ + home.packages = [ 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..1786ff9 --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,110 @@ +* { + 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; +} + +#tags button { + padding: 0px 15px; + background-color: rgba(27, 27, 27, 1); + color: #f2f0fa; +} + +#tags button.focused { + background-color: rgba(242, 240, 250, 1); + color: #272727; +} + +button:hover { + background: inherit; +} + +#custom-launcher { + margin: 0 10px; + padding: 0 10px; +} + +#workspaces { + border-radius: 10px; + background-color: #f2f0fa; + color: #272727; + padding: 0 10px; + margin: 0px 4px; +} + +#workspaces button { + padding: 0 10px; + color: #272727; + background-color: #f2f0fa; +} + +#clock { + padding: 0 10px; + margin: 0 10px; + color: #f2f0fa; + border-radius: 0px; +} + +#battery, +#cpu, +#backlight { + 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 { + padding: 0 10px; + margin: 0 0px; + border-radius: 10px; + margin: 0 10px; +} + +#window { + 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; +} -- cgit v1.2.3