feat: niri, waybar ricing

This commit is contained in:
Florian Schmitt 2025-01-13 00:32:27 +03:00
parent 3e43aed875
commit 328ecdffc3
11 changed files with 780 additions and 92 deletions

View file

@ -0,0 +1,92 @@
{
"layer": "top",
"spacing": 0,
"height": 20,
"margin-top": 0,
"margin-right": 3,
"margin-bottom": 0,
"margin-left": 3,
"position": "top",
"modules-left": [
"niri/workspaces"
],
"modules-center": [
"niri/window"
],
"modules-right": [
"network",
"cpu",
"memory",
"battery",
"pulseaudio",
"tray",
"clock"
],
"disable-scroll": true,
"tray": {
"icon-size": 16,
"spacing": 8,
"tooltip": false
},
"clock": {
"format": "{:%a %d %b %H:%M}",
"tooltip": false
},
"cpu": {
"format": " {usage}%",
"interval": 2,
"states": {
"critical": 90
},
"on-click": "kitty btop"
},
"memory": {
"format": " {percentage}%",
"interval": 2,
"states": {
"critical": 80
},
"on-click": "kitty btop"
},
"battery": {
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
],
"interval": 6,
"states": {
"warning": 30,
"critical": 10
},
"tooltip": false
},
"network": {
"format-wifi": "󰀂 {bandwidthDownBits}",
"format-ethernet": " {bandwidthDownBits}",
"format-disconnected": "󰲜",
"interval": 5,
"tooltip": false
},
"pulseaudio": {
"scroll-step": 1,
"max-volume": 100,
"format": "󰕾 {volume}%",
"format-bluetooth": "󱄠 {volume}%",
"nospacing": 1,
"on-click": "pavucontrol",
"tooltip": false
},
"niri/window": {
"format": "{}",
"icon": true,
"icon-size": 16,
"rewrite": {
//"(.*) Mozilla Firefox": "🌎 $1",
//"(.*) - zsh": "> [$1]"
}
}
}

94
dotfiles/waybar/style.css Normal file
View file

@ -0,0 +1,94 @@
@define-color base #191724;
@define-color surface #1f1d2e;
@define-color overlay #26233a;
@define-color muted #6e6a86;
@define-color subtle #908caa;
@define-color text #e0def4;
@define-color love #eb6f92;
@define-color gold #f6c177;
@define-color rose #ebbcba;
@define-color pine #31748f;
@define-color foam #9ccfd8;
@define-color iris #c4a7e7;
@define-color highlightLow #21202e;
@define-color highlightMed #403d52;
@define-color highlightHigh #524f67;
* {
font-size: 13px;
min-height: 0;
font-family: "Iosevka Nerd Font Mono";
}
window#waybar {
all: unset;
}
.modules-left,
.modules-center,
.modules-right {
background: transparent;
margin: 0;
padding: 0;
}
tooltip {
background: @base;
color: @text;
}
#clock,
#bluetooth,
#network,
#battery,
#cpu,
#memory,
#temperature,
#tray,
#pulseaudio,
#window,
#workspaces {
border-radius: 8px;
background: alpha(@base, 0.75);
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.75);
color: @text;
padding: 2px 8px;
margin: 3px;
}
#clock:hover,
#bluetooth:hover,
#network:hover,
#battery:hover,
#cpu:hover,
#memory:hover,
#temperature:hover,
#pulseaudio:hover,
#tray:hover,
#window:hover,
#workspaces:hover {
transition: all 0.3s ease;
background: @base;
}
#network {
min-width: 100px;
}
#cpu,
#memory {
min-width: 40px;
}
#workspaces button {
padding: 1px;
margin: 1px;
color: @text;
border-radius: 50%;
}
#workspaces button:hover {
background: @text;
color: @base;
}
#workspaces button.focused {
background: @gold;
color: @base;
}