refactor(waybar): split main config into standalone modules
This commit is contained in:
1 parent
b9b5fc4104
commit
ce3c0735c6
1 file changed
+199
+199
@@ -0,0 +1,199 @@
|
||||
{
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"margin-top": 0,
|
||||
"margin-left": 0,
|
||||
"margin-right": 0,
|
||||
"height": 35,
|
||||
"group/hardware": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"cpu",
|
||||
"memory"
|
||||
]
|
||||
},
|
||||
"group/temp": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"temperature#cpu",
|
||||
"custom/gpu_temperature"
|
||||
]
|
||||
},
|
||||
"group/audio": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"wireplumber#source",
|
||||
"wireplumber#sink"
|
||||
]
|
||||
},
|
||||
"group/keyboard": {
|
||||
"orientation": "horizontal",
|
||||
"modules": [
|
||||
"custom/kbd",
|
||||
"keyboard-state#num",
|
||||
"keyboard-state#caps",
|
||||
"custom/language"
|
||||
]
|
||||
},
|
||||
"custom/rofi": {
|
||||
"exec-if": "[ \"$USER\" != \"pyrschtjag\" ]",
|
||||
"exec": "echo '{\"text\": \"\", \"tooltip\": \"\"}'",
|
||||
"return-type": "json",
|
||||
"format": "<span color='#b4befe'>{icon}</span>{text}",
|
||||
"format-icons": [""],
|
||||
"interval": "once",
|
||||
"on-click": "rofi -show drun",
|
||||
"tooltip": false
|
||||
},
|
||||
"sway/workspaces": {
|
||||
"format": "<span color='#cdd6f4' weight='bold'>{icon}</span>{windows}",
|
||||
"window-rewrite": {
|
||||
"class<firefox>": " <span color='#fab387'></span>",
|
||||
"class<foot>": " <span color='#f5c2e7'></span>",
|
||||
"class<discord>": " <span color='#cba6f7'></span>",
|
||||
"class<org.telegram.desktop>": " <span color='#74c7ec'></span>",
|
||||
"class<steam>": " <span color='#a6adc8'></span>",
|
||||
"class<org.gajim.Gajim>": " <span color='#f38ba8'></span>",
|
||||
"class<Spotify>": " <span color='#a6e3a1'></span>",
|
||||
"class<steam_app(.*)>": " <span color='#89b4fa'></span>",
|
||||
"title<nvim>": " <span color='#f5e0dc'></span>",
|
||||
"title<rmpc>": " <span color='#b4befe'></span>",
|
||||
"title<mc(.*)>": " <span color='#89dceb'></span>",
|
||||
"title<\\[work\\] .*Thunderbird.*>": " <span color='#89dceb'></span>",
|
||||
"title<\\[work\\] .*Firefox.*>": " <span color='#f38ba8'></span>",
|
||||
"title<\\[work\\] .*Element.*>": " <span color='#a6e3a1'></span>",
|
||||
"title<\\[work\\] .*Octo Browser.*>": " <span color='#89b4fa'></span>",
|
||||
"title<(.*)Octium>": " <span color='#89b4fa'></span>",
|
||||
"title<(.*)LibreOffice Calc>": " <span color='#a6e3a1'></span>",
|
||||
"": " <span color='#f5c2e7'></span>"
|
||||
},
|
||||
"disable-scroll": true,
|
||||
"disable-auto-back-and-forth": true,
|
||||
"tooltip": false,
|
||||
"cursor": ""
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span color='#f9e2af'>{}</span>",
|
||||
"max-length": 18,
|
||||
"tooltip": false
|
||||
},
|
||||
"clock#time": {
|
||||
"format": "<span color='#a6e3a1'></span> {:%H:%M}",
|
||||
"tooltip": false
|
||||
},
|
||||
"clock#date": {
|
||||
"format": "<span color='#94e2d5'></span> {:%d/%m}",
|
||||
"tooltip": false
|
||||
},
|
||||
"privacy": {
|
||||
"icon-spacing": 10,
|
||||
"icon-size": 14,
|
||||
"transition-duration": 0,
|
||||
"modules": [
|
||||
{
|
||||
"type": "screenshare",
|
||||
"tooltip": false
|
||||
},
|
||||
{
|
||||
"type": "audio-in",
|
||||
"tooltip": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 14,
|
||||
"spacing": 10,
|
||||
"tooltip": false
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "<span color='#fab387'></span>",
|
||||
"deactivated": "<span color='#f9e2af'></span>"
|
||||
},
|
||||
"signal": 13,
|
||||
"tooltip": false,
|
||||
"cursor": ""
|
||||
},
|
||||
"custom/kbd": {
|
||||
"format": "<span color='#94e2d5'></span>",
|
||||
"tooltip": false
|
||||
},
|
||||
"keyboard-state#num": {
|
||||
"numlock": true,
|
||||
"capslock": false,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"locked": "<span color='#a3be8c'></span>",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"keyboard-state#caps": {
|
||||
"numlock": false,
|
||||
"capslock": true,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"locked": "<span color='#bf616a'></span>",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/language": {
|
||||
"format": "<span text_transform='uppercase'>{shortDescription}</span>",
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/language": {
|
||||
"exec": "~/.config/waybar/scripts/lang.sh",
|
||||
"format": "{}",
|
||||
"tooltip": false
|
||||
},
|
||||
"disk": {
|
||||
"format": "<span color='#a6e3a1'></span> {specific_free:0.1f}GB",
|
||||
"paths": ["/"],
|
||||
"unit": "GB",
|
||||
"interval": 120,
|
||||
"tooltip": false
|
||||
},
|
||||
"cpu": {
|
||||
"format": "<span color='#cba6f7'></span> {usage:03}%",
|
||||
"interval": 5,
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "<span color='#89b4fa'></span> {percentage:03}%",
|
||||
"interval": 5,
|
||||
"tooltip": false
|
||||
},
|
||||
"temperature#cpu": {
|
||||
"format": "<span color='#f2cdcd'></span> {temperatureC:03}°C",
|
||||
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"interval": 5,
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/gpu_temperature": {
|
||||
"format": "<span color='#f5c2e7'></span> {text}°C",
|
||||
"exec": "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits | xargs printf '%03d'",
|
||||
"interval": 5,
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/mouse": {
|
||||
"format": "{text} {percentage}%",
|
||||
"exec": "~/.config/waybar/scripts/razer-battery.sh",
|
||||
"return-type": "json",
|
||||
"interval": 60,
|
||||
"tooltip": false
|
||||
},
|
||||
"wireplumber#source": {
|
||||
"format": "<span color='#f9e2af'></span> {volume:03}%",
|
||||
"format-muted": "<span color='#585b70'></span> {volume:03}%",
|
||||
"node-type": "Audio/Source",
|
||||
"scroll-step": 5,
|
||||
"tooltip": false
|
||||
},
|
||||
"wireplumber#sink": {
|
||||
"format": "<span color='#eba0ac'>{icon}</span> {volume:03}%",
|
||||
"format-muted": "<span color='#585b70'></span> {volume:03}%",
|
||||
"format-icons": ["", "", ""],
|
||||
"scroll-step": 5,
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user