commit 714ed3afa61e88e4dcd8ab2659137113ec0fcb7f Author: xesc Date: Sat Dec 9 19:48:28 2023 +0100 initial commit diff --git a/config b/config new file mode 100644 index 0000000..f13475b --- /dev/null +++ b/config @@ -0,0 +1,170 @@ +{ + "layer": "top", // Waybar at top layer +// "output": "eDP-1", + //"position": "top", // Waybar position (top|bottom|left|right) + //"height": 20, // Waybar height (to be removed for auto height) + // "width": 1280, // Waybar width + //"spacing": 10, // Gaps between modules (4px) + // Choose the order of the modules + "modules-left": ["sway/workspaces", "sway/mode" ], + "modules-center": ["clock#clock1"], + "modules-right": ["idle_inhibitor", "sway/scratchpad", "tray", "pulseaudio", "bluetooth", "network", "backlight", "sway/language", "battery", "clock#clock2", "custom/wlogout"], + // Modules configuration + // "sway/workspaces": { + // "disable-scroll": true, + // "all-outputs": true, + // "warp-on-scroll": false, + // "format": "{name}: {icon}", + // "format-icons": { + // "1": "", + // "2": "", + // "3": "", + // "4": "", + // "5": "", + // "urgent": "", + // "focused": "", + // "default": "" + // } + // }, +// "sway/mode": { +// "format": "{}" +// }, + "sway/workspaces": { + "all-outputs": false, + }, + + "sway/window": { + "format": "{app_id}", + "max-length": 30, + }, + "sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "clock#clock1": { + "interval": 1, + "format": "{:%H:%M:%S}", + "tooltip": false, + }, + "clock#clock2": { + "format": "{:%a %b %d}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "month", + "on-scroll": 1, + "format": { + "today": "{}", + }, + + }, + "actions": { + "on-scroll-up": "shift_down", + "on-scroll-down": "shift_up", + }, + }, + "cpu": { + "format": "{usage}% ", + "tooltip": false, + "on-click": "footclient htop" + }, + "memory": { + "format": "{}% ", + "tooltip": false, + "on-click": "footclient htop", + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + "tooltip": false, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{percent}% {icon}", + "tooltip": false, + "format-icons": ["", "", "", "", "", "", "", "", ""] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{icon} {capacity}% ", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": [" ", " ", " ", " ", " "] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "", + "format-ethernet": "", + //"tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "", + "format-alt": "{ifname}: {ipaddr}/{cidr}", + + "tooltip-format-wifi": "{essid} ({signalStrength}%) \n{ifname}: {ipaddr}/{cidr} \nvia {gwaddr}", + "tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr} \nvia {gwaddr}", + "tooltip-format-disconnected": "Disconnected", + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{volume}% {icon} {format_source}", + "format-bluetooth": "{volume}% {icon} {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "footclient pulsemixer" + }, + "bluetooth": { + "format": "", + "format-connected": "", + "format-connected-battery": " {device_alias} {device_battery_percentage}%", + // "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device + "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", + "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", + "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", + "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%", + "on-click": "footclient bluetoothctl", + }, + + "custom/wlogout": { + "format": " ", + "on-click": "wlogout -p layer-shell", + "tooltip": false, + }, +} diff --git a/style.css b/style.css new file mode 100644 index 0000000..66573ef --- /dev/null +++ b/style.css @@ -0,0 +1,85 @@ +* { + border: none; + border-radius: 0; + font-family: JetbrainsMono NF; + font-size: 14px; + box-shadow: none; + text-shadow: none; + transition-duration: 0s; +} + +window { + color: rgba(255, 255, 255, 1); + background: rgba(0, 0, 0, 0); + +} + +.modules-left{ + background: rgba(27, 43, 49, 0.90); + margin-right: 5px; + padding-left: 10px; + padding-right: 10px; + border-radius: 20px; + transition: none; +} + +#workspaces button { + transition: none; + color: rgba(180, 180, 180, 0.5); + background: transparent; + font-weight: 900; +} + +#workspaces button.visible { + color: rgba(200, 200, 200, 1); +} + +#workspaces button.focused { + color: rgba(255, 255, 255, 1); +} + +#window, #scratchpad, #tray { + padding-left: 7px; + padding-right: 7px; +} + +.modules-right{ + background: rgba(27, 43, 49, 0.90); + margin-left: 5px; + padding-left: 10px; + padding-right: 10px; + border-radius: 20px; +} + +#idle_inhibitor { + padding-right: 7px; + padding-left: 7px; + margin-right: 5px; +} + + +#pulseaudio, #bluetooth, #network, #cpu, #memory, #temperature, #backlight, #language, #battery, #clock.clock2 { + padding-left: 11px; + padding-right: 11px; +} +#custom-wlogout { + padding-left: 7px; + padding-right: 3px; +} +#clock.clock1 { + margin-left: 5px; + margin-right: 5px; + padding-left: 15px; + padding-right: 15px; + border-radius: 20px; + transition: none; +/* background: rgba(71, 128, 97, 1); */ + background: rgba(27, 43, 49, 0.90); + font-weight: bold; +} + +tooltip { + border-radius: 4px; + background-color: rgba(71, 128, 97, 1); +} +