283 lines
9.1 KiB
Text
283 lines
9.1 KiB
Text
[{
|
|
"output": "DP-1",
|
|
"layer": "top",
|
|
"modules-left": ["hyprland/window"],
|
|
"modules-center": ["hyprland/mode"],
|
|
"hyprland/window": {
|
|
"format": "<span color=\"#f8f8f2\">{title}</span> ",
|
|
"max-length": 60,
|
|
"icon": true,
|
|
"icon-size": 20,
|
|
"all-outputs" : true,
|
|
},
|
|
}, {
|
|
"output": "DP-2",
|
|
"layer": "top",
|
|
"modules-left": ["hyprland/workspaces", "hyprland/mode"],
|
|
"modules-center": ["custom/gpu-usage", "cpu", "memory", "group/disks", "temperature", "clock", "custom/weather", "idle_inhibitor", "custom/pacman", "group/networks", "bluetooth", "group/audio-player"],
|
|
/* "modules-right": ["tray", "custom/scratchpad-indicator", "pulseaudio",], */
|
|
"modules-right": ["group/taskbar", "group/group-power"],
|
|
|
|
"hyprland/mode": {
|
|
"format": " {}"
|
|
},
|
|
"hyprland/workspaces": {
|
|
"format": "{icon}",
|
|
"all-outputs": true,
|
|
"on-click": "activate",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"5": "",
|
|
"6": "",
|
|
"7": "",
|
|
"8": "",
|
|
"9": "",
|
|
"10": "",
|
|
"11": "",
|
|
"12": "",
|
|
},
|
|
"sort-by-number": true
|
|
},
|
|
"group/audio-player": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
"mpris",
|
|
"cava"
|
|
]
|
|
},
|
|
"mpris": {
|
|
"format": "<span color=\"#bd93f9\">{player_icon}</span> <span color=\"#f8f8f2\">Playing </span>",
|
|
"format-paused": "<span color=\"#bd93f9\">{status_icon}</span> <span color=\"#f8f8f2\">Paused </span>",
|
|
"tooltip-format": " {artist}: {title} ( {album})",
|
|
"interval": 1,
|
|
"album-len": 0,
|
|
"player-icons": {
|
|
"default": "",
|
|
"mpv": ""
|
|
},
|
|
"status-icons": {
|
|
"paused": "",
|
|
},
|
|
// "ignored-players": ["firefox"]
|
|
},
|
|
|
|
"cava": {
|
|
"cava_config": "/home/peter/.config/cava/config",
|
|
"framerate": 240,
|
|
"autosens": 1,
|
|
"bars": 6,
|
|
"lower_cutoff_freq": 50,
|
|
"higher_cutoff_freq": 10000,
|
|
"method": "pipewire",
|
|
"source": "auto",
|
|
"stereo": true,
|
|
"reverse": false,
|
|
"bar_delimiter": 32,
|
|
"monstercat": false,
|
|
"waves": false,
|
|
"noise_reduction": 0.77,
|
|
"input_delay": 2,
|
|
"format-icons" : ["<small>▁</small>", "<small>▂</small>", "<small>▃</small>", "<small>▄</small>", "<small>▅</small>", "<small>▆</small>", "<small>▇</small>", "<small>█</small>" ],
|
|
"actions": {
|
|
"on-click-right": "mode"
|
|
}
|
|
},
|
|
"custom/pacman": {
|
|
"format": "<span color=\"#8BE9FD\"> </span>{}",
|
|
"tooltip": true,
|
|
"tooltip-format": "Available updates",
|
|
"interval": 60,
|
|
"exec": "checkupdates | wc -l",
|
|
"exec-if": "exit 0",
|
|
"signal": 8
|
|
},
|
|
"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"
|
|
},
|
|
"group/networks": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
"network",
|
|
"custom/vpn",
|
|
]
|
|
},
|
|
"network": {
|
|
"interface": "enp7s0",
|
|
"format": "{ifname}",
|
|
"interval": 1,
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "<span color=\"#50fa7b\"> </span>{ifname}",
|
|
"format-disconnected": "<span color=\"#FF5555\"> </span>{ifname}",
|
|
"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"
|
|
},
|
|
"group/taskbar": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
"tray",
|
|
"pulseaudio"
|
|
]
|
|
},
|
|
"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/hwmon2/temp1_input",
|
|
"critical-threshold": 80,
|
|
"format-critical": "<span color=\"#ff5555\"></span> {temperatureC}°C",
|
|
"format": "<span color=\"#f1fa8c\"></span> {temperatureC}°C",
|
|
"tooltip": false,
|
|
},
|
|
"group/disks": {
|
|
"orientation": "inherit",
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"transition-left-to-right": true,
|
|
"click-to-reveal": true,
|
|
},
|
|
"modules": [
|
|
"disk",
|
|
"disk#disk2",
|
|
"disk#disk3",
|
|
"disk#disk4",
|
|
"disk#disk5"
|
|
]
|
|
},
|
|
"disk": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#8694c0\"></span><span color=\"#ffb86c\"> </span>/: {percentage_used}%",
|
|
"path": "/"
|
|
},
|
|
"disk#disk2": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#ba89ff\"> </span>M2: {percentage_used}%",
|
|
"path": "/mnt/M2"
|
|
},
|
|
"disk#disk3": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#ff79c6\"> </span>SSD: {percentage_used}%",
|
|
"path": "/mnt/SSD"
|
|
},
|
|
"disk#disk4": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#8BE9FD\"> </span>Games: {percentage_used}%",
|
|
"path": "/media/Games"
|
|
},
|
|
"disk#disk5": {
|
|
"interval": 30,
|
|
"format": "<span color=\"#50FA7B\"> </span>Backups: {percentage_used}%",
|
|
"path": "/mnt/Backups"
|
|
},"pulseaudio": {
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon} ",
|
|
"format-bluetooth-muted": "{icon} ",
|
|
"format-muted": "0% {icon}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"headphone-muted": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"headset-muted": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"bluetooth": {
|
|
"format": "<span color=\"#6272a4\"></span> {status}",
|
|
"format-connected": "<span color=\"#6272a4\"></span> on",
|
|
"format-connected-battery": "<span color=\"#6272a4\"></span> on",
|
|
"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>",
|
|
"tooltip": true,
|
|
"tooltip-format": "Connected",
|
|
"exec": "echo '{\"class\": \"connected\"}'",
|
|
"exec-if": "test -d /proc/sys/net/ipv4/conf/tun0",
|
|
"return-type": "json",
|
|
"on-click": "exec 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
|
|
},
|
|
}]
|