diff --git a/.config/waybar/config b/.config/waybar/config new file mode 100644 index 0000000..c351702 --- /dev/null +++ b/.config/waybar/config @@ -0,0 +1,77 @@ +{ + "height": 35, + "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], + "modules-center": [], + "modules-right": ["pulseaudio", "backlight", "network", "cpu", "memory", "battery", "clock", "tray", "sway/language", "keyboard-state"], + "sway/mode": { + "format": "{}" + }, + "sway/window": { + "max-length": 50 + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "clock": { + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": " {:%Y-%m-%d %H:%M}" + }, + "cpu": { + "format": " {usage}%", + "tooltip": false + }, + "memory": { + "format": " {}%" + }, + "backlight": { + // "device": "acpi_video1", + "format": "{icon} {percent}%", + "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": ["", "", "", "", ""] + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": " ({signalStrength}%)", + // "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", + "format-ethernet": " {ipaddr}", + "format-linked": " {ifname} (No IP)", + "format-disconnected": "⚠ Disconnected" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{icon} {volume}% {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": "pavucontrol" + }, + "sway/language": { + "format": "{flag}", + "on-click": "swaymsg input type:keyboard xkb_switch_layout next", + } +} diff --git a/.config/waybar/nord.css b/.config/waybar/nord.css new file mode 100644 index 0000000..29a66bb --- /dev/null +++ b/.config/waybar/nord.css @@ -0,0 +1,25 @@ + +/* +* Nord theme +* src : https://www.nordtheme.com/docs/colors-and-palettes +*/ +/* Polar Night */ +@define-color nord0 #2e3440; +@define-color nord1 #3b4252; +@define-color nord2 #434c5e; +@define-color nord3 #4c566a; +/* Snow storm */ +@define-color nord4 #d8dee9; +@define-color nord5 #e5e9f0; +@define-color nord6 #eceff4; +/* Frost */ +@define-color nord7 #8fbcbb; +@define-color nord8 #88c0d0; +@define-color nord9 #81a1c1; +@define-color nord10 #5e81ac; +/* Aurora */ +@define-color nord11 #bf616a; +@define-color nord12 #d08770; +@define-color nord13 #ebcb8b; +@define-color nord14 #a3be8c; +@define-color nord15 #b48ead; \ No newline at end of file diff --git a/.config/waybar/style.css b/.config/waybar/style.css new file mode 100644 index 0000000..f22159b --- /dev/null +++ b/.config/waybar/style.css @@ -0,0 +1,124 @@ +@import "nord.css"; + +window { + background-color: transparent; +} + +* { + font-family: Cantarell; + font-size: 14px; + font-weight: 600; + margin-top: 2px; +} + +/* +* Left part +*/ +#mode { + color: @nord0; + background-color: @nord13; + margin-left: 8px; + border-radius: 5px; + padding: 0px 6px; +} + +#workspaces button { + margin-left: 8px; + background-color: @nord3; + padding: 0px 4px; + color: @nord6; + margin-top: 0; +} + +#workspaces button.focused { + color: @nord0; + background-color: @nord8; +} + +#window { + margin-left: 10px; + color: @nord6; + font-weight: bold; + padding: 0px 5px; +} + +/* +* Right part +*/ +#pulseaudio, +#network, +#cpu, +#memory, +#backlight, +#language, +#keyboard-state, +#battery, +#clock, +#tray { + background-color: @nord2; + padding: 0px 8px; + color: @nord6; +} + +#backlight, +#language, +#battery, +#clock, +#tray { + margin-right: 8px; + border-top-right-radius: 5px; + border-bottom-right-radius: 5px; +} + +#pulseaudio, +#network, +#clock, +#tray { + border-top-left-radius: 5px; + border-bottom-left-radius: 5px; +} + +#pulseaudio.muted { + background-color: @nord13; + color: @nord3; +} + +#pulseaudio, #backlight { + background-color: @nord10; +} + +#network, #cpu, #memory, #battery { + background-color: @nord3; +} + +#tray { + background-color: @nord1; +} + +#network.disabled, +#network.disconnected { + background-color: @nord13; + color: @nord0; +} + +#battery.warning { + background-color: @nord13; + color: @nord0; +} + +#battery.critical { + background-color: @nord11; + color: @nord0; +} + +#tray menu { + background-color: @nord2; + color: @nord4; + padding: 10px 5px; + border: 2px solid @nord1; +} + +#language { + min-width: 20px; + border-radius: 5px; +}