init: public

This commit is contained in:
2025-04-13 15:09:14 +08:00
parent 5995c2050b
commit 50247d94e8
253 changed files with 12964 additions and 567 deletions

View File

@@ -0,0 +1,118 @@
{ ... }:
{
layer = "top";
position = "top";
mod = "dock";
exclusive = true;
passthrough = false;
gtk-layer-shell = true;
height = 0;
modules-left = [
"clock"
"cpu"
"memory"
"niri/workspaces"
];
modules-center = [
"mpris"
];
modules-right = [
"custom/notification"
"tray"
"pulseaudio"
"pulseaudio#microphone"
];
"niri/workspaces" = {
format = "{value}";
};
cpu = {
interval = 1;
format = "󰞱 {}%";
max-length = 10;
on-click = "";
};
memory = {
interval = 10;
format = " {used:0.1f}G";
max-length = 10;
};
"custom/notification" = {
tooltip = false;
format = "{icon}";
format-icons = {
notification = "<span foreground='red'><sup></sup></span>";
none = "";
dnd-notification = "<span foreground='red'><sup></sup></span>";
dnd-none = "";
inhibited-notification = "<span foreground='red'><sup></sup></span>";
inhibited-none = "";
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
dnd-inhibited-none = "";
};
return-type = "json";
exec-if = "which swaync-client";
exec = "swaync-client -swb";
on-double-click = "swaync-client -t -sw";
on-click-right = "swaync-client -d -sw";
escape = true;
};
tray = {
icon-size = 13;
tooltip = false;
spacing = 10;
};
mpris = {
player = "musicfox";
interval = 1;
format = "{status_icon} {artist} - {title}";
max-length = 60;
status-icons = {
paused = "";
playing = "";
stopped = "";
};
tooltip = false;
toottip-format = "{status_icon} Musicfox {artist} - {album} - {title}";
on-scroll-up = "playerctl -p musicfox volume 0.05+";
on-scroll-down = "playerctl -p musicfox volume 0.05-";
};
clock = {
format = " {:%H:%M %m.%d}";
tooltip = false;
};
pulseaudio = {
format = "{icon} {volume}%";
tooltip = false;
format-muted = "󰟎 Muted";
on-click = "pamixer -t";
on-click-middle = "pavucontrol & disown";
on-scroll-up = "pamixer -i 5";
on-scroll-down = "pamixer -d 5";
scroll-step = 5;
format-icons = {
headphone = "󰋋";
hands-free = "󰋋";
headset = "󰋋";
phone = "";
portable = "";
car = "";
default = [
""
""
""
];
};
};
"pulseaudio#microphone" = {
format = "{format_source}";
tooltip = false;
format-source = "󰍬 {volume}%";
format-source-muted = "󰍭 Muted";
on-click = "pamixer --default-source -t";
on-scroll-up = "pamixer --default-source -i 5";
on-scroll-down = "pamixer --default-source -d 5";
scroll-step = 5;
};
}

View File

@@ -0,0 +1,247 @@
* {
border: none;
border-radius: 0;
font-family: monospace;
font-weight: bold;
font-size: 14px;
min-height: 0;
}
window#waybar {
background: rgba(21, 18, 27, 0);
color: #cdd6f4;
}
tooltip {
color: #cdd6f4;
font-family: monospace;
background: #1e1e2e;
border-radius: 10px;
border-width: 2px;
border-style: solid;
border-color: #2a2c36;
}
tooltip label {
color: #cdd6f4;
}
tooltip.background {
background-clip: padding-box;
}
tooltip * {
padding: 4px;
background-color: transparent;
color: white;
}
#workspaces button {
padding: 5px;
color: #313244;
margin-right: 5px;
}
#workspaces button.focused {
color: #a6adc8;
border-radius: 10px;
}
#workspaces button.urgent {
color: #11111b;
background: #a6e3a1;
border-radius: 10px;
}
#workspaces button:hover {
background: #11111b;
color: #cdd6f4;
border-radius: 10px;
}
#taskbar button {
padding: 5px;
color: #313244;
margin-right: 5px;
}
#taskbar button.focused {
color: #a6adc8;
background: #eba0ac;
border-radius: 10px;
}
#taskbar button.urgent {
color: #11111b;
background: #a6e3a1;
border-radius: 10px;
}
#workspaces button:hover {
background: #11111b;
color: #cdd6f4;
border-radius: 10px;
}
#tray menu {
color: #cdd6f4;
font-family: monospace;
background: #1e1e2e;
border-radius: 10px;
border-width: 2px;
border-style: solid;
border-color: #2a2c36;
}
#custom-language,
#custom-updates,
#custom-caffeine,
#custom-weather,
#window,
#clock,
#battery,
#pulseaudio,
#network,
#workspaces,
#taskbar,
#tray,
#custom-notification,
#mpd,
#mpris,
#cpu,
#memory,
#backlight {
background: #1e1e2e;
padding: 0px 10px;
margin: 3px 0px;
margin-top: 10px;
border: 1px solid #181825;
}
#tray {
border-radius: 10px;
margin-right: 10px;
}
#workspaces {
background: #1e1e2e;
border-radius: 10px;
margin-left: 10px;
padding-right: 0px;
padding-left: 5px;
}
#taskbar {
background: #1e1e2e;
border-radius: 10px;
margin-left: 10px;
padding-right: 0px;
padding-left: 5px;
}
#custom-language {
color: #f38ba8;
border-left: 0px;
border-right: 0px;
}
#custom-updates {
color: #f5c2e7;
border-left: 0px;
border-right: 0px;
border-radius: 10px 0px 0px 10px;
}
#custom-notification {
color: #cdd6f4;
font-size: 20px;
border-radius: 10px;
margin-right: 10px;
}
#mpd {
color: rgba(97, 134, 214, 0.973);
background: #1e1e2e;
border-radius: 10px;
border: 1px solid #181825;
}
#mpris {
color: rgba(97, 134, 214, 0.973);
background: #1e1e2e;
border-radius: 10px;
border: 1px solid #181825;
margin-right: 10px;
}
#window {
border-radius: 10px;
margin-left: 60px;
margin-right: 60px;
}
#window.empty {
border-radius: 0px;
background-color: transparent;
}
window#waybar.empty #window {
padding: 0px;
margin: 0px;
border: 0px;
background-color: transparent;
}
#clock {
color: #fab387;
border-radius: 10px 0px 0px 10px;
margin-left: 5px;
border-right: 0px;
}
#network {
color: #f9e2af;
border-left: 0px;
border-right: 0px;
}
#cpu {
color: #fab387;
border-radius: 0;
border-left: 0;
border-right: 0;
}
#memory {
color: #fab387;
border-radius: 0px 10px 10px 0px;
border-left: 0;
border-right: 0;
}
#pulseaudio {
color: #89b4fa;
border-right: 0px;
border-radius: 10px 0px 0px 10px;
}
#pulseaudio.microphone {
color: #cba6f7;
margin-right: 5px;
border-left: 0px;
border-radius: 0 10px 10px 0;
}
#battery {
color: #a6e3a1;
border-radius: 0 10px 10px 0;
margin-right: 10px;
border-left: 0px;
}
#custom-weather {
border-radius: 0px 10px 10px 0px;
border-left: 0;
border-right: 0;
margin-left: 0px;
}