{
"layer": "top",
"position": "top",
"margin-top": 5,
"margin-left": 5,
"margin-right": 5,
"height": 34,
"modules-left": [
"custom/rofi",
"sway/workspaces",
"sway/mode"
],
"modules-center": [
"clock#time"
],
"modules-right": [
"tray",
"idle_inhibitor",
"group/keyboard",
"disk" ,
"group/hardware",
"group/temp",
"group/audio"
],
"group/keyboard": {
"orientation": "horizontal",
/*"modules": [
"keyboard-state",
"sway/language"
]*/
"modules": ["sway/language"]
},
"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"
]
},
"custom/rofi": {
"exec-if": "[ \"$USER\" != \"pyrschtjag\" ]",
"exec": "echo '{\"text\": \"\", \"tooltip\": \"\"}'",
"return-type": "json",
"format": "{icon}{text}",
"format-icons": [""],
"interval": "once",
"on-click": "rofi -show drun",
"tooltip": false
},
"sway/workspaces": {
"format": "{icon}{windows}",
"window-rewrite": {
"class": " ",
"class": " ",
"class": " ",
"class": " ",
"class": " ",
"class": " ",
"class": " ",
"title": " ",
"title": " ",
"title": " ",
"": " "
},
"tooltip": false
},
"sway/mode": {
"format": "{}",
"max-length": 18,
"tooltip": false
},
"clock#time": {
"format": "{:%H:%M}",
"tooltip": false
},
"tray": {
"icon-size": 12,
"spacing": 10,
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
// "deactivated": ""
"deactivated": ""
},
"signal": 13,
"tooltip": false,
"cursor": ""
},
"sway/language": {
// "format": "{}",
"format": " {}",
"format-en": "EN",
"format-ru": "RU",
"tooltip": false
},
"keyboard-state": {
"format": "{name}{icon}",
"numlock": true,
"capslock": true,
"scrolllock": false,
"format-icons": {
"numlock": {
"locked": " ",
"unlocked": ""
},
"capslock": {
"locked": " ",
"unlocked": " "
}
}
},
"disk": {
// enable when release waybar 0.16+
// "format": " {free:5G}G",
"format": " {free:7}",
"paths": ["/"],
"interval": 120,
"tooltip": false
},
"cpu": {
"format": " {usage:03}%",
"interval": 5,
"tooltip": false
},
"memory": {
"format": " {percentage:03}%",
"interval": 5,
"tooltip": false
},
"temperature#cpu": {
"format": " {temperatureC:03}°C",
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"interval": 5,
"tooltip": false
},
"custom/gpu_temperature": {
"format": " {text}°C",
"exec": "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits | xargs printf '%03d'",
"interval": 5,
"tooltip": false
},
"wireplumber#source": {
"format": " {volume:03}%",
"format-muted": " 000%",
"node-type": "Audio/Source",
"scroll-step": 5,
"tooltip": false
},
"wireplumber#sink": {
"format": "{icon} {volume:03}%",
"format-muted": " 000%",
"format-icons": ["", "", ""],
"scroll-step": 5,
"tooltip": false
}
}