211 lines
5.6 KiB
Plaintext
211 lines
5.6 KiB
Plaintext
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"margin-top": 10,
|
|
"margin-left": 10,
|
|
"margin-right": 10,
|
|
"height": 54,
|
|
"spacing": 0,
|
|
"modules-left": ["custom/launcher","sway/workspaces","cpu","temperature","power-profiles-daemon","memory","custom/vpn"],
|
|
"modules-center": ["sway/window"],
|
|
"modules-right": ["tray","custom/wf-recorder","bluetooth","network", "wireplumber","custom/weather","clock","battery","custom/powermenu"],
|
|
|
|
// "sway/workspaces": {
|
|
// "on-click": "activate",
|
|
// "format": "{icon}",
|
|
// "format-icons": {
|
|
// "default": "",
|
|
// "1": "",
|
|
// "2": "",
|
|
// "3": "",
|
|
// "4": "",
|
|
// "active": "",
|
|
// "urgent": "",
|
|
// },
|
|
// "persistent-workspaces": {
|
|
// "*": 4,
|
|
// }
|
|
// },
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"urgent": "",
|
|
"focused": "",
|
|
"default": ""
|
|
},
|
|
"persistent-workspaces": {
|
|
"1": [],
|
|
"2": [],
|
|
"3": [],
|
|
"4": []
|
|
}
|
|
},
|
|
|
|
"custom/vpn": {
|
|
//pkill -RTMIN+10 waybar
|
|
"format": "VPN ",
|
|
"exec": "echo '{\"class\": \"connected\"}'",
|
|
"exec-if": "test -d /proc/sys/net/ipv4/conf/wg0",
|
|
"return-type": "json",
|
|
"signal": 10,
|
|
},
|
|
|
|
"custom/wf-recorder": {
|
|
//pkill -RTMIN+11 waybar
|
|
"format": "• ",
|
|
"exec": "echo '{\"class\": \"recording\"}'",
|
|
"exec-if": "pgrep -x wf-recorder >/dev/null",
|
|
"return-type": "json",
|
|
"signal": 11,
|
|
},
|
|
|
|
|
|
"backlight": {
|
|
"device": "amdgpu_bl1",
|
|
"format": "{icon}",
|
|
"format-icons": [" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "]
|
|
},
|
|
|
|
"custom/weather": {
|
|
"exec": "python ~/.config/waybar/scripts/weather.py",
|
|
"restart-interval": 300,
|
|
"return-type": "json",
|
|
// "on-click": "xdg-open https://weather.com/en-IN/weather/today/l/$(location_id)"
|
|
// "format-alt": "{alt}",
|
|
},
|
|
|
|
"bluetooth": {
|
|
"format": "",
|
|
"format-connected": "",
|
|
"format-connected-battery": "",
|
|
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
|
|
"on-click": "/home/teraflops/.local/bin/bt.sh",
|
|
"on-click-right" :"bluetoothctl connect 88:C9:E8:EF:69:1E",
|
|
},
|
|
|
|
"hyprland/window": {
|
|
"max-length": 80,
|
|
"format": "<span font='14' rise='-4444'>{}</span>",
|
|
"separate-outputs": true,
|
|
},
|
|
|
|
"temperature": {
|
|
"hwmon-path": ["/sys/class/thermal/thermal_zone0/temp"],
|
|
"critical-threshold": 80,
|
|
"format-critical": "{temperatureC}°C",
|
|
"format": "{temperatureC}°C"
|
|
},
|
|
|
|
"memory": {
|
|
"interval": 3,
|
|
"format": " {}% ",
|
|
"max-length": 10
|
|
},
|
|
|
|
"cpu": {
|
|
"interval": 1,
|
|
"format": " {}% ",
|
|
"max-length": 10
|
|
},
|
|
|
|
"power-profiles-daemon": {
|
|
"format": "{icon}",
|
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
|
"tooltip": true,
|
|
"format-icons": {
|
|
"default": "BAL",
|
|
"performance": "PERF",
|
|
"balanced": "BAL",
|
|
"power-saver": "PSAV"
|
|
}
|
|
},
|
|
|
|
"custom/powermenu": {
|
|
"format": "⏻ ",
|
|
"tooltip": false,
|
|
"on-click": "/home/teraflops/.config/waybar/scripts/wlogout.sh"
|
|
},
|
|
|
|
"tray": {
|
|
"spacing": 10
|
|
},
|
|
|
|
"clock": {
|
|
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
|
"format-alt": " {:%a, %d %b %Y} ",
|
|
"format": " {:%H:%M} ",
|
|
"calendar": {
|
|
"weeks-pos" : "none",
|
|
"on-scroll" : 1,
|
|
"format": {
|
|
"months": "<span color='#8fbcbb'><b>{}</b></span>",
|
|
"days": "<span color='#8a909e'>{}</span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#81a1c1'><b>{}</b></span>",
|
|
"today": "<span color='#88c0d0'><b>{}</b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click-right": "none",
|
|
"on-click-forward": "tz_up",
|
|
"on-click-backward": "tz_down",
|
|
"on-scroll-up": "shift_up",
|
|
"on-scroll-down": "shift_down"
|
|
}
|
|
},
|
|
|
|
"network": {
|
|
"format-wifi": "{icon}",
|
|
"format-disconnected": " ",
|
|
"format-icons": [" "," "," "," "," "],
|
|
"tooltip-format-wifi": "{essid}",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
"nospacing": 1,
|
|
},
|
|
|
|
"battery": {
|
|
"interval": 60,
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon}",
|
|
"format-charging": " ",
|
|
"format-plugged": "{icon}",
|
|
"format-icons": [" ", " ", " ", " ", " "],
|
|
"max-length": 25,
|
|
"on-click": "gnome-terminal -- battop",
|
|
},
|
|
|
|
"wireplumber": {
|
|
"format": "{icon}",
|
|
"nospacing": 1,
|
|
"tooltip-format": "Volume : {volume}%",
|
|
"format-muted": " ",
|
|
"format-icons": {
|
|
"headphone": " ",
|
|
"default": [" ", " ", " "]
|
|
},
|
|
"on-click": "pamixer -t",
|
|
"on-click-right": "pavucontrol",
|
|
"scroll-step": 5,
|
|
},
|
|
|
|
"custom/launcher": {
|
|
"format": " ",
|
|
"tooltip": false,
|
|
"on-click": "/home/teraflops/.config/rofi/launchers/misc/launcher.sh &"
|
|
},
|
|
}
|
|
|