270 lines
8.8 KiB
Text
270 lines
8.8 KiB
Text
[{
|
|
"output": "DP-1",
|
|
"layer": "top",
|
|
"modules-left": ["hyprland/workspaces", "hyprland/mode"],
|
|
"modules-center": ["hyprland/window"],
|
|
"modules-right": ["mpris"],
|
|
|
|
"mpris": {
|
|
"format": "<span color=\"#bd93f9\">{player_icon}</span> <span color=\"#f8f8f2\">{dynamic}</span>",
|
|
"format-paused": "<span color=\"#bd93f9\">{status_icon}</span> <span color=\"#f8f8f2\">{dynamic}</span>",
|
|
"tooltip-format": " {artist}: {title} ( {album})",
|
|
"interval": 1,
|
|
"album-len": 0,
|
|
"player-icons": {
|
|
"default": "",
|
|
"mpv": ""
|
|
},
|
|
"status-icons": {
|
|
"paused": ""
|
|
},
|
|
// "ignored-players": ["firefox"]
|
|
},
|
|
"hyprland/window": {
|
|
"format": "<span color=\"#f8f8f2\">{title}</span> ",
|
|
"max-length": 60,
|
|
"icon": true,
|
|
"icon-size": 20,
|
|
"all-outputs" : true,
|
|
},
|
|
// "hyprland/workspaces": {
|
|
// "format": "{icon}",
|
|
// "on-click": "activate",
|
|
// "format-icons": {
|
|
// "1": "",
|
|
// "2": "",
|
|
// "3": "",
|
|
// "4": "",
|
|
// "5": "",
|
|
// "6": "",
|
|
// },
|
|
// "sort-by-number": true
|
|
//},
|
|
}, {
|
|
"output": "eDP-1",
|
|
"layer": "top",
|
|
"modules-left": ["hyprland/workspaces", "hyprland/mode"],
|
|
"modules-center": ["custom/gpu-usage", "cpu", "memory", "temperature", "network#wifi", "network#lan", "custom/vpn", "clock", "custom/weather", "idle_inhibitor", "custom/pacman", "battery", "battery#2", "bluetooth", "backlight", "disk", "disk#disk2", "disk#disk3", "disk#disk4"],
|
|
/* "modules-right": ["tray", "pulseaudio",], */
|
|
"modules-right": ["tray", "pulseaudio", "group/group-power"],
|
|
|
|
"hyprland/mode": {
|
|
"format": " {}"
|
|
},
|
|
"hyprland/workspaces": {
|
|
"format": "{icon}",
|
|
"on-click": "activate",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"5": "",
|
|
"6": "",
|
|
"7": "",
|
|
"8": "",
|
|
},
|
|
"sort-by-number": true
|
|
},
|
|
"custom/pacman": {
|
|
"format": "<span color=\"#8BE9FD\"> </span>{}",
|
|
"tooltip": false,
|
|
"interval": 60,
|
|
"exec": "checkupdates | wc -l",
|
|
"exec-if": "exit 0",
|
|
"signal": 8
|
|
},
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "<span color=\"#f8f8f2\">{icon}</span> {percent}%",
|
|
"format-icons": ["", "", ""]
|
|
},
|
|
"battery": {
|
|
"bat": "BAT1",
|
|
"weighted-average": true,
|
|
"interval": 60,
|
|
"full-at": 84,
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "<span color=\"#bd93f9\">{icon}</span> {capacity}%",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"max-length": 25
|
|
},
|
|
"battery#2": {
|
|
"bat": "BAT0",
|
|
"weighted-average": true,
|
|
"interval": 60,
|
|
"full-at": 84,
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "<span color=\"#bd93f9\">{icon}</span> {capacity}%",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"max-length": 25
|
|
},
|
|
|
|
"group/group-power": {
|
|
"orientation": "inherit",
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"children-class": "not-power",
|
|
"transition-left-to-right": false,
|
|
},
|
|
"modules": [
|
|
"custom/power",
|
|
"custom/lock",
|
|
"custom/reboot",
|
|
]
|
|
},
|
|
"custom/lock": {
|
|
"format": " ",
|
|
"tooltip": false,
|
|
"on-click": "hyprlock"
|
|
},
|
|
"custom/reboot": {
|
|
"format": " ",
|
|
"tooltip": false,
|
|
"on-click": "shutdown -r now"
|
|
},
|
|
"custom/power": {
|
|
"format": " ",
|
|
"tooltip": false,
|
|
"on-click": "shutdown -h now"
|
|
},
|
|
"network#lan": {
|
|
"interface": "enp0s31f6",
|
|
"format": "",
|
|
"interval": 1,
|
|
"format-ethernet": "<span color=\"#50fa7b\"> </span>{ifname}",
|
|
"format-disconnected": "",
|
|
"max-length": 50,
|
|
"tooltip-format": "speed: {bandwidthDownBytes} / {bandwidthUpBytes}",
|
|
"on-click": "kitty --class nmnet --single-instance -e nmtui",
|
|
"on-click-right": "nm-connection-editor"
|
|
|
|
},
|
|
"network#wifi": {
|
|
"interface": "wlp3s0",
|
|
"format": "",
|
|
"interval": 1,
|
|
"format-wifi": "<span color=\"#50fa7b\"> </span>{essid} ({signalStrength}%) ",
|
|
"format-disconnected": "<span color=\"#F2F8F8\"></span>",
|
|
"max-length": 50,
|
|
"tooltip-format": "speed: {bandwidthDownBytes} / {bandwidthUpBytes}",
|
|
"on-click": "kitty --class nmnet --single-instance -e nmtui",
|
|
"on-click-right": "nm-connection-editor"
|
|
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "<span color=\"#8694c0\"></span>",
|
|
"deactivated": "<span color=\"#8694c0\"></span>"
|
|
},
|
|
"on-click": "toggleRemote"
|
|
},
|
|
"tray": {
|
|
"icon-size": 20,
|
|
"spacing": 6
|
|
},
|
|
"clock": {
|
|
"format": "<span color=\"#FF92DF\"></span> {:%I:%M:%OS}",
|
|
"interval": 1,
|
|
"tooltip-format": "<big> {:%d/%m/%y}</big>",
|
|
// "format-alt": "{:%Y-%m-%d}"
|
|
"on-click": "gsimplecal"
|
|
},
|
|
"cpu": {
|
|
"interval": 10,
|
|
"format": "<span color=\"#cf7cac\">{icon}</span> {usage}%",
|
|
"format-icons": [""]
|
|
},
|
|
"memory": {
|
|
"format": "<span color=\"#8BE9FD\">{icon}</span> {percentage}%",
|
|
"format-icons": [""]
|
|
},
|
|
"temperature": {
|
|
// "thermal-zone": 2,
|
|
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
|
|
// "critical-threshold": 80,
|
|
// "format-critical": "<span color=\"#ff5555\"></span> {temperatureC}°C",
|
|
"format": "<span color=\"#f1fa8c\"></span> {temperatureC}°C",
|
|
"tooltip": false,
|
|
},
|
|
"disk": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#8694c0\"></span><span color=\"#ffb86c\"> </span>/: {percentage_used}%",
|
|
"path": "/"
|
|
},
|
|
"disk#disk2": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#ba89ff\"> </span>~: {percentage_used}%",
|
|
"path": "/home/peter"
|
|
},
|
|
"disk#disk3": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#ff79c6\"> </span>SSD: {percentage_used}%",
|
|
"path": "/mnt/SSD"
|
|
},
|
|
"disk#disk4": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#3ac55d\"> </span>Backups: {percentage_used}%",
|
|
"path": "/mnt/Backups"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": "0% {icon}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"bluetooth": {
|
|
"format": "<span color=\"#6272a4\"></span> {status}",
|
|
"format-connected": "<span color=\"#6272a4\"></span> connected",
|
|
"format-connected-battery": "<span color=\"#6272a4\"></span> Connected {device_battery_percentage}%",
|
|
"on-click": "blueman-manager",
|
|
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
|
|
"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}%"
|
|
},
|
|
"custom/vpn": {
|
|
"format": "<span color=\"#ff5555\"></span> VPN",
|
|
"tooltip": false,
|
|
"exec": "echo '{\"class\": \"connected\"}'",
|
|
"exec-if": "test -d /proc/sys/net/ipv4/conf/tun0",
|
|
"return-type": "json",
|
|
"on-click": "kitty --class nmnet --single-instance -e nmtui",
|
|
"interval": 5
|
|
},
|
|
"custom/weather": {
|
|
"exec": "python ~/.config/waybar/scripts/weather.py",
|
|
"restart-interval": 300,
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"on-click": "xdg-open https://weather.com/en-IN/weather/today/l/e42bb25a58c2e689ec85e632d82e69d7e46c82defb9ad7a5551b6c3a70fbc282"
|
|
// "format-alt": "{alt}",
|
|
},
|
|
"custom/gpu-usage": {
|
|
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
|
|
"format": "<span color=\"#8694c0\"></span><span color=\"#bd93f9\"> </span>{}%",
|
|
"return-type": "",
|
|
"interval": 1,
|
|
"tooltip": false
|
|
},
|
|
}]
|