diff --git a/system/.config/waybar/config b/system/.config/waybar/config new file mode 100644 index 0000000..0ccf56e --- /dev/null +++ b/system/.config/waybar/config @@ -0,0 +1,81 @@ +[{ + "layer": "bottom<", + "position": "top", + "height": 35, + "spacing": 4, + "margin": "0 0 10px 0", + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": [], + "modules-right": ["custom/update", "pulseaudio", "battery", "network", "clock", "custom/power"], + "sway/workspaces": { + "disable-scroll": true, + "format": "{icon}", + "format-icons": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "6": "", + "7": "", + "8": "", + "9": "", + "10": "ﱘ", + } + }, + "custom/update": { + "format": "累 {}", + "exec": "update-count", + "interval": 60, + "tooltip": false, + }, + "pulseaudio": { + "scroll-step": 5, + "format": "{icon} {volume}%", + "format-icons": { + "headphone": "", + "speaker": "墳", + "default": ["奄", "奔", "墳"] + }, + "tooltip": false, + "on-click": "pavucontrol" + }, + "battery": { + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-icons": ["", "", "", "", "", "", "", "", "", ""], + "tooltip": false, + }, + "network": { + "format-wifi": "直 {essid}", + "format-ethernet": "{ipaddr}/{cidr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ", + "tooltip": false, + }, + "clock": { + "format": " {:%F %H:%M:%S}", + "tooltip": false, + "on-click": "xdg-open https://www.kaderli.dev", + }, + "custom/power": { + "format": " ", + "tooltip": false, + "on-click": "$XDG_BIN_HOME/power", + } +}, +{ + "layer": "bottom", + "position": "bottom", + "height": 35, + "spacing": 4, + "margin": "10px 0 0 0", + "modules-left": ["tray"], + "modules-center": [], + "modules-right": [], + "tray": { + "spacing": 10, + } +} +] diff --git a/system/.config/waybar/style.css b/system/.config/waybar/style.css new file mode 100644 index 0000000..0ed1f70 --- /dev/null +++ b/system/.config/waybar/style.css @@ -0,0 +1,49 @@ +* { + border: none; + border-radius: 0; + font-family: "Iosevka Nerd Font", sans-serif; + font-size: 14px; + min-height: 0; +} + +#waybar { + background-color: #18161d; + color: #A4A0AC; +} + +#tray, +#network, +#pulseaudio, +#clock, +#battery, +#custom-update, +#custom-power { + padding: 0 10px; +} + +#tray:hover, +#network:hover, +#pulseaudio:hover, +#clock:hover, +#battery:hover, +#custom-update:hover, +#custom-power:hover { + background-color: #A4A0AC; + color: #18161d; +} + +#workspaces button { + background-color: #18161d; + color: #A4A0AC; + padding: 0; +} + +#workspaces button:hover { + background-color: #A4A0AC; + color: #18161d; +} + +#workspaces button.focused.current_output { + background-color: #A4A0AC; + color: #18161d; +}