diff --git a/configs/niri_l/waybar/1366x768/README.md b/configs/niri_l/waybar/1366x768/README.md new file mode 100644 index 0000000..0294b0d --- /dev/null +++ b/configs/niri_l/waybar/1366x768/README.md @@ -0,0 +1,8 @@ +# Taken from Omarchy project + +# Installation +Copy all files to `~/.config/waybar/` + +```bash +mkdir -p ~/.config/waybar && cp config.jsonc style waybar.css ~/.config/waybar/ +``` diff --git a/configs/niri_l/waybar/1366x768/config.jsonc b/configs/niri_l/waybar/1366x768/config.jsonc new file mode 100644 index 0000000..fbc5b2a --- /dev/null +++ b/configs/niri_l/waybar/1366x768/config.jsonc @@ -0,0 +1,132 @@ +{ + "reload_style_on_change": true, + "layer": "top", + "position": "top", + "spacing": 0, + "height": 28, + "modules-left": ["niri/workspaces"], + + "modules-center": ["clock"], + + "modules-right": [ + "group/tray-expander", + "bluetooth", + "network", + "pulseaudio", + "cpu", + "battery", + "idle_inhibitor", + ], + + "niri/workspaces": { + "all-outputs": true, + "on-click": "activate", + "format": "{icon}", + "active-only": false, + "format-icons": { + "1": "1", + "2": "2", + "3": "3", + "4": "4", + "5": "5", + "6": "6", + "7": "7", + "8": "8", + "9": "9", + "10": "10", + "focused": "󱓻", + }, + "persistent-workspaces": { + "1": [], + "2": [], + "3": [], + "4": [], + "5": [], + }, + }, + + "cpu": { + "interval": 5, + "format": "󰍛", + "on-click": "alacritty -e btop", + }, + + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "󰛑", + }, + }, + "clock": { + "format": "{:%A %H:%M}", + "format-alt": "{:%d %B W%V %Y}", + "tooltip": false, + "on-click-right": "~/.local/share/omarchy/bin/omarchy-cmd-tzupdate", + }, + "network": { + "format-icons": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"], + "format": "{icon}", + "format-wifi": "{icon}", + "format-ethernet": "󰀂", + "format-disconnected": "󰖪", + "tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", + "tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", + "tooltip-format-disconnected": "Disconnected", + "interval": 3, + "nospacing": 1, + "on-click": "kitty --class=Impala -e impala", + }, + "battery": { + "format": "{capacity}% {icon}", + "format-discharging": "{icon}", + "format-charging": "{icon}", + "format-plugged": "", + "format-icons": { + "charging": ["󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅"], + "default": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"], + }, + "format-full": "󰂅", + "tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%", + "tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%", + "interval": 5, + "states": { + "warning": 20, + "critical": 10, + }, + }, + "bluetooth": { + "format": "", + "format-disabled": "󰂲", + "format-connected": "", + "tooltip-format": "Devices connected: {num_connections}", + "on-click": "blueberry", + }, + "pulseaudio": { + "format": "{icon}", + "on-click": "alacritty --class=Wiremix -e wiremix", + "on-click-right": "wiremix", + "tooltip-format": "Playing at {volume}%", + "scroll-step": 5, + "format-muted": "󰝟", + "format-icons": { + "default": ["", "", ""], + }, + }, + "group/tray-expander": { + "orientation": "inherit", + "drawer": { + "transition-duration": 600, + "children-class": "tray-group-item", + }, + "modules": ["custom/expand-icon", "tray"], + }, + "custom/expand-icon": { + "format": " ", + "tooltip": false, + }, + "tray": { + "icon-size": 12, + "spacing": 12, + }, +} diff --git a/configs/niri_l/waybar/1366x768/style.css b/configs/niri_l/waybar/1366x768/style.css new file mode 100644 index 0000000..246f1ea --- /dev/null +++ b/configs/niri_l/waybar/1366x768/style.css @@ -0,0 +1,49 @@ +@import "./waybar.css"; + +* { + background-color: @background; + color: @foreground; + + border: none; + border-radius: 0; + min-height: 0; + font-family: "CaskaydiaMono Nerd Font Propo"; + font-size: 12px; +} + + +.modules-left { + margin-left: 18px; +} + +.modules-right { + margin-right: 18px; +} + +#workspaces button { + all: initial; + padding: 0 6px; + margin: 0 1.5px; + min-width: 9px; +} + +#workspaces button.empty { + opacity: 0.5; +} + +#tray, +#cpu, +#battery, +#network, +#bluetooth, +#pulseaudio, +#clock, +#idle_inhibitor, +#custom-power-menu { + min-width: 12px; + margin: 0 7.5px; +} + +#custom-expand-icon { + margin-right: 12px; +} diff --git a/configs/niri_l/waybar/1366x768/waybar.css b/configs/niri_l/waybar/1366x768/waybar.css new file mode 100644 index 0000000..598de57 --- /dev/null +++ b/configs/niri_l/waybar/1366x768/waybar.css @@ -0,0 +1,2 @@ +@define-color foreground #d4be98; +@define-color background #282828;