Initial Ubuntu 24.04 Niri installer

This commit is contained in:
wuyang
2026-07-27 13:39:29 +08:00
commit 1b0af7b3ff
12 changed files with 900 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
{
"layer": "top",
"position": "top",
"height": 36,
"spacing": 6,
"margin-top": 6,
"margin-left": 8,
"margin-right": 8,
"modules-left": ["custom/launcher"],
"modules-center": [],
"modules-right": ["tray", "network", "pulseaudio", "battery", "clock", "custom/lock", "custom/power"],
"custom/launcher": {
"format": " \uf141 ",
"tooltip": false,
"on-click": "fuzzel"
},
"tray": {
"icon-size": 17,
"spacing": 8
},
"network": {
"format-wifi": "\uf1eb {signalStrength}%",
"format-ethernet": "\uf1e6",
"format-disconnected": "\uf071",
"tooltip-format": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "\uf026",
"format-icons": ["\uf026", "\uf027", "\uf028"],
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"tooltip": false
},
"battery": {
"states": {"warning": 30, "critical": 15},
"format": "{icon} {capacity}%",
"format-charging": "\uf0e7 {capacity}%",
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
"tooltip": false
},
"clock": {
"interval": 1,
"format": "{:%m月%d日 %H:%M}",
"tooltip-format": "<tt>{calendar}</tt>"
},
"custom/lock": {
"format": "\uf023",
"tooltip": false,
"on-click": "swaylock -f"
},
"custom/power": {
"format": "\uf011",
"tooltip": false,
"on-click": "wlogout"
}
}
+59
View File
@@ -0,0 +1,59 @@
@define-color panel rgba(24, 26, 29, 0.76);
@define-color text #f0eee8;
@define-color muted #a8abb2;
@define-color accent #d4c5a5;
@define-color red #dc7a78;
* {
border: none;
border-radius: 0;
min-height: 0;
font-family: "Noto Sans CJK SC", "Noto Sans", "FontAwesome";
font-size: 13px;
font-weight: 500;
}
window#waybar {
background: @panel;
color: @text;
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 10px;
}
#custom-launcher,
#tray,
#network,
#pulseaudio,
#battery,
#clock,
#custom-lock,
#custom-power {
padding: 0 10px;
color: @text;
}
#custom-launcher {
color: @accent;
font-size: 16px;
}
#network.disconnected,
#battery.critical {
color: @red;
}
#custom-lock,
#custom-power {
padding: 0 12px;
}
#custom-power {
color: @red;
}
tooltip {
background: #202226;
color: @text;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 6px;
}