From 96c61a054f8da62dcae64ad9c76885be05826312 Mon Sep 17 00:00:00 2001 From: Spacedio Date: Sun, 26 Apr 2026 14:37:07 -0400 Subject: Initial commit of the x1-carbon wayland branch. --- waybar/.config/waybar/config | 104 ++++++++++++++++++++++++++++++++++++++++ waybar/.config/waybar/style.css | 67 ++++++++++++++++++++++++++ 2 files changed, 171 insertions(+) create mode 100644 waybar/.config/waybar/config create mode 100644 waybar/.config/waybar/style.css (limited to 'waybar') diff --git a/waybar/.config/waybar/config b/waybar/.config/waybar/config new file mode 100644 index 0000000..928a366 --- /dev/null +++ b/waybar/.config/waybar/config @@ -0,0 +1,104 @@ +{ + "layer": "top", + "position": "top", + "height": 24, + "spacing": 5, + + "modules-left": ["sway/workspaces", "group/usage"], + "modules-center": ["clock"], + "modules-right": ["wireplumber", "group/net", "group/bat", "tray"], + + "group/usage": { + "orientation": "horizontal", + "modules": ["cpu", "memory"] + }, + + "group/bat": { + "orientation": "horizontal", + "modules": ["backlight", "battery"] + }, + + "group/net": { + "orientation": "horizontal", + "modules": ["sway/language", "network", "bluetooth"] + }, + + "sway/workspaces": { + "format": "{icon}", + "on-click": "activate", + "format-icons": { + }, + "icon-size": 40, + "sort-by-number": true, + "persistent-workspaces": { + "1": [], + "2": [], + "3": [] + } + }, + + "clock": { + "format": "{:%d.%m.%Y | %H:%M}" + }, + + "wireplumber": { + "format": "\udb81\udd7e {volume}%", + "max-volume": 100, + "scroll-step": 5 + }, + + "battery": { + "bat": "BAT0", + "interval": 60, + "format": "{icon} {capacity}%", + "format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"] + }, + + "backlight": { + "format": "\udb80\udcdf {percent}%" + }, + + "cpu": { + "interval": 30, + "format": " {usage}%" + }, + + "memory": { + "interval": 30, + "format": " {used:0.1f}G" + }, + + "temperature": { + "format": " {temperatureC}°C" + }, + + "network": { + "format": "", + "format-ethernet": "\udb83\udc9d ", + "format-wifi": "{icon} ", + "format-disconnected": "\udb83\udc9c ", + "format-icons": ["\udb82\udd2f", "\udb82\udd1f", "\udb82\udd22", "\udb82\udd25", "\udb82\udd28"], + "tooltip-format-wifi": "{essid} ({signalStrength}%)", + "tooltip-format-ethernet": "{ifname}", + "tooltip-format-disconnected": "Disconnected" + }, + + "bluetooth": { + "format": "\udb80\udcaf", + "format-disabled": "\udb80\udcb2", + "format-connected": "\udb80\udcb1", + "tooltip-format": "{controller_alias}\t{controller_address}", + "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}", + "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", + "tooltip-format-disabled": "Disabled" + }, + + "hyprland/language": { + "format": "{short}" + }, + + "tray": { + "icon-size": 16, + "spacing": 16 + } +} \ No newline at end of file diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css new file mode 100644 index 0000000..3bb3ac7 --- /dev/null +++ b/waybar/.config/waybar/style.css @@ -0,0 +1,67 @@ +@define-color foreground #eff0f1; +@define-color foreground-inactive #7f8c8d; +@define-color background #232629; +@define-color background-alt #31363b; + +* { + font-family: Hasklug Nerd Font; + font-size: 14px; + padding: 0; + margin: 0; +} + +#waybar { + color: @foreground; + background-color: @background; +} + +#workspaces button { + padding-left: 1em; + padding-right: 1.3em; +} + +/* +#workspaces button.empty { + color: @foreground-inactive; +} +*/ + +#workspaces button.focused { + color: @foreground; +} + +#workspaces button:hover { + background: none; + box-shadow: none; + text-shadow: none; + /* border: 0; */ + border-color: transparent; + transition: none; /* Removes any fade animations */ + color: @foreground; +} + +#workspaces button.active { + background-color: @background-alt; + border-radius: 3px; +} + +#wireplumber, +#bat, +#tray, +#usage, +#net { + /* background-color: @background-alt; */ + border-radius: 3px; + padding-left: 0.5em; + padding-right: 0.5em; + margin-left: 0.3em; +} + +#battery, +#memory, +#language, +#cpu, +#backlight, +#network { + margin-right: 0.8em; +} -- cgit v1.2.3