diff --git a/preview.png b/preview.png index 09a23ba..10f2313 100644 Binary files a/preview.png and b/preview.png differ diff --git a/waybar-theme/config.jsonc b/waybar-theme/config.jsonc new file mode 100644 index 0000000..767e16a --- /dev/null +++ b/waybar-theme/config.jsonc @@ -0,0 +1,261 @@ +{ + "reload_style_on_change": true, + "layer": "top", + "position": "top", + "spacing": 0, + "height": 15, + "margin": "0", + "modules-left": [ + "custom/omarchy", + "hyprland/workspaces", + "hyprland/window" + ], + "modules-center": [ + "clock", + "idle_inhibitor", + "custom/update", + "custom/weather", + "custom/screenrecording-indicator" + ], + "modules-right": [ + "group/tray-expander", + "backlight", + "custom/updatespacman", + "bluetooth", + "network", + "pulseaudio", + "cpu", + "memory", + "battery" + ], + "hyprland/workspaces": { + "on-click": "activate", + "format": "{id}", + "format-icons": { + "default": "", + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "6": "6", + "7": "7", + "8": "8", + "9": "9", + "active": "" + }, + "persistent-workspaces": { + "1": [], + "2": [], + "3": [], + "4": [], + "5": [] + } + }, + "hyprland/window": { + "format": "{title} - {class}", + "max-length": 45, + "rewrite": { + " - ": "", // if no window is focused, a single dash is displayed, this removes it + "(.*?) - Chromium - chromium": "  $1 ", + "(.*chrome)...(.*)": "  $1 ", + "(.*) - Obsidian - .* - obsidian": "  $1 ", + "(.*nvim)...(.*)": "  $2 ", + "(.*code) - (.*)": " 󰨞 $1 ", + "^.*btop( .*|$)": " 󰧨 BTOP $1 ", + "^.*cmatrix( .*|$)": " 󰘨 MATRIX $1 ", + "(.*) - Spotify": "  $1 ", + "(.*) - com.mitchellh.ghostty": " 󰊠 $1 ", + "(.*) - Alacritty": "  $1 ", + "(.*) - BeeperTexts": " 󰻞 $1 ", + "(.*Discord)...(.*).. (.*)": "  $2 ", + "(.*) - org.gnome.Nautilus": " 󰣆 $1 ", + "(.*) - fish": "  [$1] ", + "(.*Steam)...(.*)": "  $1", + // "OBS *. - (.*) - com.obsproject.Studio": " $1", // not yet functional + // "nvim (.*) - com.mitchellh.ghostty": " $1", // not being captured + } + }, + "custom/omarchy": { + "format": "\ue900", + "on-click": "omarchy-menu", + "on-click-right": "xdg-terminal-exec", + "tooltip-format": "Omarchy Menu\n\nSuper + Alt + Space" + }, + "custom/update": { + "format": "\ue900", + "exec": "omarchy-update-available", + "on-click": "omarchy-launch-floating-terminal-with-presentation omarchy-update", + "tooltip-format": "Omarchy update available", + "signal": 7, + "interval": 3600 + }, + "backlight": { + "device": "intel_backlight", + "format": "{percent}% {icon}", + "format-icons": [ + "🌑", + "🌘", + "🌗", + "🌖", + "🌕" + ] + }, + "custom/updatespacman": { + "format": "{icon}", + "return-type": "json", + "format-icons": { + "has-updates": "󰏖 ", + "updated": "󰂪" + }, + "exec-if": "which waybar-module-pacman-updates", + "exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300" + }, + "cpu": { + "interval": 2, + "format": "󰍛 {usage}%", + "on-click": "omarchy-launch-or-focus-tui btop" + }, + "memory": { + "interval": 2, + "format": " {percentage}%", + "on-click": "omarchy-launch-or-focus-tui btop" + }, + "clock": { + "format": "{:%e %A %I:%M %p}", + "format-alt": "{:%A %d/%m/%Y}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "mouth", + "mode-mon-col": 3, + "on-click-right": "mode", + "format": { + "mouth": "{}", + "weekdays": "{}", + "today": "{}" + } + }, + "on-click-right": "~/.local/share/omarchy/bin/omarchy-cmd-tzupdate" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "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, + "spacing": 1, + "on-click": "omarchy-launch-wifi" + }, + "battery": { + "format": "{icon} {capacity}%", + "format-discharging": "{icon} {capacity}%", + "format-charging": "{icon} {capacity}%", + "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, + "on-click": "omarchy-menu power", + "states": { + "warning": 20, + "critical": 10 + } + }, + "bluetooth": { + "format": "", + "format-disabled": "󰂲", + "format-connected": "", + "tooltip-format": "Devices connected: {num_connections}", + "on-click": "omarchy-launch-bluetooth" + }, + "custom/weather": { + "format": "{}°", + "tooltip": true, + "interval": 1800, + "exec": "wttrbar --nerd --fahrenheit --mph --location Pasadena+MD", + "return-type": "json" + }, + "pulseaudio": { + "format": "{icon} {volume}%", + "on-click": "omarchy-launch-or-focus-tui wiremix", + "on-click-right": "pamixer -t", + "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 + }, + "custom/screenrecording-indicator": { + "on-click": "omarchy-cmd-screenrecord", + "exec": "$OMARCHY_PATH/default/waybar/indicators/screen-recording.sh", + "signal": 8, + "return-type": "json" + }, + "tray": { + "icon-size": 12, + "spacing": 12 + } +} diff --git a/waybar-theme/style.css b/waybar-theme/style.css new file mode 100644 index 0000000..f087cc0 --- /dev/null +++ b/waybar-theme/style.css @@ -0,0 +1,133 @@ +@import "../omarchy/current/theme/waybar.css"; + +@define-color accent-alert shade(@foreground, 0.7); +@define-color border-accent #42A378; + +* { + border: none; + font-family: 'CaskaydiaMono Nerd Font Propo'; + font-size: 12px; + min-height: 0; +} + +window#waybar { + background: transparent; + color: @foreground; +} + +.modules-left, +.modules-right, +.modules-center { + margin: 6px 6px 2px 6px; + padding: 1px 0 1px; + border: 2px solid @border-accent; + background-color: @background; + box-shadow: 0 1px 6px 2px alpha(#000000, 0.8); +} + +#custom-omarchy { + font-size: 13px; +} + +#window { + margin: 3px; + padding: 1px; +} + +#workspaces { + padding: 1px 2px 1px; + background-color: alpha(@foreground, 0.3); + opacity: 0.95; +} + +#workspaces button { + padding: 0px 5px; + margin: 1px 2px; + background-color: alpha(@foreground, 1); + color: @background; + transition: all 0.3s ease-in-out; + opacity: 0.6; + font-size: 8px; +} + +#workspaces button.active { + color: @foreground; + background-color: @background; + min-width: 30px; + opacity: 1.0; +} + +#workspaces button:hover { + color: @foreground; + background: @background; + min-width: 30px; + opacity: 0.9; +} + +#workspaces button.empty { + opacity: 0.2; +} + +#hyprland-window, +#tray, +#cpu, +#memory, +#battery, +#network, +#bluetooth, +#pulseaudio, +#custom-omarchy, +#backlight, +#custom-updatespacman, +#custom-screenrecording-indicator, +#custom-update { + min-width: 12px; + margin: 0 7.5px; +} + +#custom-expand-icon { + margin-right: 7px; +} + +#custom-update { + font-size: 10px; + margin: 2px; +} + +#clock, #idle_inhibitor { + margin-left: 8.75px; +} + +.hidden { + opacity: 0; +} + +#custom-screenrecording-indicator { + margin-left: 8.75px; + font-size: 10px; +} + +#custom-screenrecording-indicator.active { + color: @accent-alert; +} + + + +#idle_inhibitor { + margin-right: 5px; +} + +#tray-expander { + margin-left: 5px; +} + +tooltip { + opacity: 0.95; + padding: 4px; + background: @background; + font-size: 12px; + border: 2px solid @border-accent; +} +tooltip label { + color: @foreground; +}