This commit is contained in:
Greg 2024-10-21 21:36:06 +03:00
parent 4bb24c0ebf
commit 5e32014534
3 changed files with 226 additions and 0 deletions

77
.config/waybar/config Normal file
View file

@ -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": "<span style=\"italic\">{}</span>"
},
"sway/window": {
"max-length": 50
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"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",
}
}

25
.config/waybar/nord.css Normal file
View file

@ -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;

124
.config/waybar/style.css Normal file
View file

@ -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;
}