224 lines
6.3 KiB
JSON
224 lines
6.3 KiB
JSON
{
|
|
"layer": "top",
|
|
"position": "bottom",
|
|
"height": 24,
|
|
"spacing": 5,
|
|
|
|
"modules-left": ["hyprland/workspaces"],
|
|
"modules-center": ["clock"],
|
|
"modules-right": ["tray", "group/audio", "bluetooth", "group/network_grp", "idle_inhibitor", "group/power" ],
|
|
|
|
|
|
"group/network_grp": {
|
|
"orientation": "inherit",
|
|
"drawer": {
|
|
"transition-duration": 300,
|
|
"transition-left-to-right": false
|
|
},
|
|
"modules": [
|
|
"network",
|
|
"network#speed"
|
|
]
|
|
},
|
|
|
|
"group/audio": {
|
|
"orientation": "inherit",
|
|
"drawer": {
|
|
"transition-duration": 300,
|
|
"transition-left-to-right": false
|
|
},
|
|
"modules": [
|
|
"pulseaudio",
|
|
"pulseaudio#mic",
|
|
"pulseaudio#volume",
|
|
]
|
|
},
|
|
|
|
"group/power": {
|
|
"orientation": "inherit",
|
|
"drawer": {
|
|
"transition-duration": 300,
|
|
"transition-left-to-right": true
|
|
},
|
|
"modules": [
|
|
"battery",
|
|
"custom/battery_percentage",
|
|
"power-profiles-daemon",
|
|
]
|
|
},
|
|
|
|
"hyprland/workspaces": {
|
|
"format": "<span size='larger'>{icon}</span>",
|
|
"on-click": "activate",
|
|
"format-icons": {
|
|
"active": "\uf444",
|
|
"default": "\uf4c3"
|
|
},
|
|
"icon-size": 10,
|
|
"sort-by-number": true,
|
|
"persistent-workspaces": {
|
|
"1": [],
|
|
"2": [],
|
|
"3": [],
|
|
"4": [],
|
|
"5": [],
|
|
}
|
|
},
|
|
|
|
"clock": {
|
|
"format": "{:%d.%m.%Y | %H:%M}"
|
|
},
|
|
|
|
//"wireplumber": {
|
|
// "format": "\udb81\udd7e {volume}%",
|
|
// "max-volume": 100,
|
|
// "scroll-step": 5
|
|
//},
|
|
|
|
"pulseaudio": {
|
|
"format": "{icon} ",
|
|
"format-bluetooth": "{icon}",
|
|
"tooltip-format": "{volume}% {icon} | {desc}",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": " ",
|
|
"default": [
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"on-click": "volume mute",
|
|
//"on-click-middle": "pavucontrol",
|
|
"on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+",
|
|
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ -5%",
|
|
"smooth-scrolling-threshold": 1
|
|
},
|
|
"pulseaudio#volume": {
|
|
"format": " {volume}% "
|
|
},
|
|
// TODO missing
|
|
"pulseaudio#mic": {
|
|
"format": "{format_source}",
|
|
"format-source": "",
|
|
"format-source-muted": "",
|
|
"tooltip-format": "{volume}% {format_source} ",
|
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
|
|
"on-scroll-down": "wpctl set-volume @DEFAULT_SOURCE@ 5%-",
|
|
"on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_SOURCE@ 5%+"
|
|
},
|
|
|
|
// "battery": {
|
|
// "bat": "BAT1",
|
|
// "interval": 60,
|
|
// "format": "{icon} {capacity}%",
|
|
// "format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
|
|
// },
|
|
"battery": {
|
|
"rotate": 270,
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 16,
|
|
"critical": 8
|
|
},
|
|
"format": "{icon}",
|
|
"interval": 1,
|
|
"format-charging": "",
|
|
"format-full": "<span color='#82A55F'><b>{icon}</b></span>",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"tooltip-format": "{timeTo} {capacity} % | {power} W"
|
|
},
|
|
"custom/battery_percentage": {
|
|
"format": "{}",
|
|
//"exec": "cat /sys/class/power_supply/BAT*/capacity",
|
|
|
|
// Makes battery like if 85% was the maximum capacity (100%).
|
|
// Useful for people that limit charge up to a certain percentage but like having real percentage
|
|
"exec": "echo $(( $(cat /sys/class/power_supply/BAT*/capacity) * 100 / 85 ))%",
|
|
"interval": 10,
|
|
"tooltip": false
|
|
},
|
|
|
|
|
|
"memory": {
|
|
"interval": 30,
|
|
"format": "\uf4bc {used:0.1f}G"
|
|
},
|
|
|
|
"temperature": {
|
|
"format": "{temperatureC}°C"
|
|
},
|
|
|
|
"network": {
|
|
"format": "",
|
|
"format-ethernet": "\udb83\udc9d",
|
|
"format-wifi": "{icon}",
|
|
"format-disconnected": "\udb83\udc9c",
|
|
"format-icons": ["\udb82\udd2f", "\udb82\udd1f", "\udb82\udd22", "\udb82\udd25", "\udb82\udd28"],
|
|
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
|
"tooltip-format-ethernet": "{ifname}",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
"on-click": "python ~/.local/bin/rofi-wifi",
|
|
},
|
|
"network#speed": {
|
|
"format": "{bandwidthDownBits}",
|
|
"interval": 5,
|
|
"tooltip-format": "{ipaddr}",
|
|
"tooltip-format-wifi": "{essid} ({signalStrength}%) \n{ipaddr} | {frequency} MHz{icon} ",
|
|
"tooltip-format-ethernet": "{ifname} \n{ipaddr} | {frequency} MHz{icon}",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
"tooltip": true
|
|
},
|
|
|
|
"bluetooth": {
|
|
"format": "\udb80\udcaf",
|
|
"format-disabled": "\udb80\udcb2",
|
|
"format-connected": "\udb80\udcb1",
|
|
"tooltip-format": "{controller_alias}\t{controller_address}",
|
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
|
"on-click": "rofi-bluetooth"
|
|
},
|
|
|
|
"power-profiles-daemon": {
|
|
"format": "{icon}",
|
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
|
"tooltip": true,
|
|
"format-icons": {
|
|
"default": "",
|
|
"performance": "<span color='#B37F34'><small></small></span>",
|
|
"balanced": "<span><small> </small></span>",
|
|
"power-saver": "<span color='#a6e3a1'><small></small></span>"
|
|
|
|
}
|
|
},
|
|
|
|
"hyprland/language": {
|
|
"format": "{short}"
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 16,
|
|
"spacing": 16
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "\udb80\udd76",
|
|
"deactivated": "\udb83\udfaa"
|
|
}
|
|
}
|
|
}
|