add sway and waybar configs

This commit is contained in:
2026-03-05 14:47:40 +00:00
parent 25e96dfb74
commit 11838c0f98
6 changed files with 616 additions and 1 deletions

107
waybar_config Normal file
View File

@@ -0,0 +1,107 @@
{
"layer": "bottom",
"position": "bottom",
"height": 30,
"spacing": 0,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-right": [
"custom/greetings",
"custom/history",
"custom/claudebar",
"pulseaudio",
"cpu",
"memory",
"disk",
"network",
"clock",
"tray"
],
"sway/workspaces": {
"disable-scroll": true,
"on-click": "activate",
"format": "{icon}",
"format-icons": {
"1:ツ": "ツ",
"2:ಠ‿ಠ": "ಠ‿ಠ",
"3:◕‿◕": "◕‿◕",
"4:ʘ‿ʘ": "ʘ‿ʘ",
"5:˘◡˘": "˘◡˘",
"6:◠‿◠": "◠‿◠",
"7:ᵔᴥᵔ": "ᵔᴥᵔ",
"8:æ": "æ"
}
},
"sway/mode": {
"format": " {} "
},
"custom/greetings": {
"exec": "echo $USER!",
"interval": "once",
"format": "{}",
"tooltip": false
},
"custom/history": {
"exec": "~/scripts/sh/waybar-history",
"format": "$ {}",
"tooltip": false
},
"custom/claudebar": {
"exec": "claudebar",
"return-type": "json",
"interval": 60,
"signal": 13,
"tooltip": true,
"on-click": "xdg-open https://claude.ai/settings/usage"
},
"pulseaudio": {
"format": "VOL: {volume}%",
"format-muted": "VOL: mute",
"on-click": "pavucontrol",
"tooltip": false
},
"cpu": {
"format": "CPU: {usage}%",
"interval": 1,
"tooltip": false
},
"memory": {
"format": "MEM: {used:0.1f}G/{total:0.1f}G",
"interval": 5,
"tooltip": false
},
"disk": {
"format": "DISK: {used}/{total}",
"interval": 30,
"path": "/",
"tooltip": false
},
"network": {
"format-wifi": "WIFI: {essid}",
"format-ethernet": "ETH: {ifname}",
"format-disconnected": "WIFI: --",
"interval": 10,
"tooltip": false
},
"clock": {
"format": "{:%Y-%m-%d %H:%M}",
"interval": 1,
"tooltip": false
},
"tray": {
"spacing": 10
}
}