backup Arch and Niri configuration

This commit is contained in:
DucklingDev
2026-09-15 12:53:56 +08:00
commit 6aee617c20
34 changed files with 5948 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
// Waybar 基础配置(适用于 niri)
{
"layer": "top",
"position": "top",
"height": 32,
"spacing": 8,
"modules-left": [
"custom/arch-workspaces",
"custom/musicfox-lyrics"
],
"modules-center": [
"custom/center-clock"
],
"modules-right": [
"pulseaudio",
"network",
"cpu",
"memory",
"tray"
],
"custom/arch-workspaces": {
"exec": "printf ''",
"interval": 3600,
"tooltip": false
},
"custom/musicfox-lyrics": {
"exec": "/home/skyroy/Documents/code/musicfox-waybar-lyrics/musicfox_lyrics.py",
"return-type": "json",
"restart-interval": 5,
"escape": true,
"on-click": "playerctl --player=musicfox play-pause",
"on-scroll-up": "playerctl --player=musicfox next",
"on-scroll-down": "playerctl --player=musicfox previous",
"max-length": 70,
"tooltip": true
},
"custom/center-clock": {
"exec": "day=$(date +%u); case $day in 1) week=星期一;; 2) week=星期二;; 3) week=星期三;; 4) week=星期四;; 5) week=星期五;; 6) week=星期六;; 7) week=星期日;; esac; date \"+$week • %Y年%m月%d日 • %H:%M:%S\"",
"interval": 1,
"tooltip": false
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-muted": "静音",
"format-icons": {
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"network": {
"format-wifi": "{essid} {signalStrength}% ",
"format-ethernet": "{ipaddr} 󰈀",
"format-disconnected": "未连接"
},
"cpu": {
"format": " {usage}%"
},
"memory": {
"format": " {percentage}%"
},
"clock": {
"format": "{:%Y-%m-%d %H:%M}",
"tooltip-format": "<big>{:%Y年%m月}</big>\n<tt><small>{calendar}</small></tt>"
},
"tray": {
"spacing": 8
}
}
+60
View File
@@ -0,0 +1,60 @@
/* Waybar 独立磨砂玻璃模块 */
* {
border: none;
border-radius: 0;
font-family: FontAwesome, sans-serif;
font-size: 13px;
min-height: 0;
}
window#waybar {
background: transparent;
color: #cdd6f4;
}
#custom-arch-workspaces,
#custom-musicfox-lyrics,
#custom-center-clock,
#pulseaudio,
#network,
#cpu,
#memory,
#clock,
#tray {
margin: 4px 3px;
padding: 0 12px;
border: none;
border-radius: 8px;
background: rgba(30, 30, 46, 0.55);
box-shadow: none;
}
#custom-arch-workspaces {
margin-left: 8px;
color: #89b4fa;
font-size: 16px;
}
#custom-musicfox-lyrics {
color: #cdd6f4;
}
#custom-musicfox-lyrics.hidden {
margin: 0;
padding: 0;
min-width: 0;
background: transparent;
}
#custom-center-clock {
color: #cdd6f4;
font-weight: bold;
}
#clock {
color: #89b4fa;
}
#tray {
margin-right: 8px;
}