138 lines
5.1 KiB
JSON
138 lines
5.1 KiB
JSON
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 30,
|
|
"output": [ "eDP-1", "DP-5", "DP-6" ],
|
|
"modules-left": [ "custom/logo", "hyprland/workspaces", "tray" ],
|
|
"modules-center": [ "clock" ],
|
|
"modules-right": [ "network", "idle_inhibitor", "bluetooth", "battery", "custom/notification" ],
|
|
|
|
"custom/logo": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "wlogout",
|
|
"on-click-right": "alacritty -e fish -C fastfetch"
|
|
},
|
|
"hyprland/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"format": "{name}"
|
|
},
|
|
"clock": {
|
|
"format": "{:%a %d/%m %H:%M}",
|
|
"tooltip-format": "{:%Y-%m-%d}"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": " ",
|
|
"deactivated": " "
|
|
},
|
|
"tooltip": true,
|
|
"tooltip-format-activated": "Inhibitor Aktiv",
|
|
"tooltip-format-deactivated": "Idle Aktiv"
|
|
},
|
|
"custom/audio_idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"exec": "sway-audio-idle-inhibit --dry-print-both-waybar | sed -u 's/\"alt\":\"output-input\"/&,\"tooltip\":\"Audio \\& Mikrofon aktiv\"/; s/\"alt\":\"output\"/&,\"tooltip\":\"Audio spielt\"/; s/\"alt\":\"input\"/&,\"tooltip\":\"Mikrofon wird benutzt\"/; s/\"alt\":\"none\"/&,\"tooltip\":\"Keine Aktivität\"/'",
|
|
"exec-if": "which sway-audio-idle-inhibit",
|
|
"return-type": "json",
|
|
"tooltip": true,
|
|
"format-icons": {
|
|
"output": " ",
|
|
"input": "",
|
|
"output-input": " ",
|
|
"none": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 10
|
|
},
|
|
"network": {
|
|
"format-wifi": " {essid}",
|
|
"format-ethernet": " {ifname}",
|
|
"format-linked": "{ipaddr}",
|
|
"format": "{essid}",
|
|
"format-disconnected": " no wifi",
|
|
"on-click": "alacritty -e nmtui",
|
|
"on-click-right": "nmcli radio wifi $(nmcli radio wifi | grep -q 'enabled' && echo off || echo on)",
|
|
"tooltip-format": " {bandwidthUpBits} {bandwidthDownBits}\n{ifname}\n{ipaddr}/{cidr}\n",
|
|
"tooltip-format-wifi": " {essid} {frequency}MHz\nStrength: {signalStrength}% ({signaldBm}dBm)\nIP: {ipaddr}/{cidr}\n {bandwidthUpBits} {bandwidthDownBits}",
|
|
"interval": 10
|
|
},
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "{icon}",
|
|
"format-alt": "{percent}%",
|
|
"format-alt-click": "click-right",
|
|
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
|
"tooltip-format": " Helligkeit: {percent}%",
|
|
"on-scroll-down": "brightnessctl s 5%-",
|
|
"on-scroll-up": "brightnessctl s +5%"
|
|
},
|
|
"bluetooth": {
|
|
"format": "",
|
|
"format-disabled": "",
|
|
"format-connected": "{device_alias}",
|
|
"format-connected-battery": "{device_alias} {device_battery_percentage}%",
|
|
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} verbunden\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": "alacritty -e bluetui",
|
|
"on-click-right": "rfkill toggle bluetooth"
|
|
},
|
|
"pulseaudio": {
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": "{icon} {volume}%",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol",
|
|
"on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
|
"tooltip-format": "Ausgabelautstärke: {source_volume}% | {desc}"
|
|
},
|
|
"battery": {
|
|
"interval": 5,
|
|
"format": "{icon}",
|
|
"format-alt": "{capacity}%",
|
|
"format-alt-click": "click-right",
|
|
"format-icons": [ "", "", "", "", "" ],
|
|
"format-charging": "{icon}",
|
|
"format-plugged": "{icon}",
|
|
"tooltip-format": "Akkustand: {capacity}% - {timeTo} - {power}W ",
|
|
"on-click": "alacritty -e btop",
|
|
"states": {
|
|
"full": 100,
|
|
"great": 97,
|
|
"good": 85,
|
|
"ok": 50,
|
|
"warning": 30,
|
|
"low": 20,
|
|
"critical": 10
|
|
}
|
|
},
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
}
|
|
}
|