451 lines
13 KiB
JSON
451 lines
13 KiB
JSON
{
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "{percent}% {icon}",
|
|
"format-icons": [
|
|
"\uf111", /* */
|
|
"\uf185" /* */
|
|
],
|
|
"on-click": "brightnessctl -sq set 0",
|
|
"on-click-right": "wl-mirror $(hyprctl monitors -j | jq --raw-output '.[] | select(.focused) | .name')"
|
|
},
|
|
|
|
"battery": {
|
|
"format": "{capacity}% {icon}",
|
|
"format-alt": "{time} {icon}",
|
|
"format-charging": "{capacity}% \ue55b", /* */
|
|
"format-plugged": "{capacity}% \ue55c",
|
|
"format-icons": [
|
|
"\uf244", /* */
|
|
"\uf243", /* */
|
|
"\uf242", /* */
|
|
"\uf241", /* */
|
|
"\uf240" /* */
|
|
],
|
|
"states": {
|
|
"warning": 25,
|
|
"critical": 12
|
|
}
|
|
},
|
|
|
|
"bluetooth": {
|
|
"format-disabled": "\uf294", /* */
|
|
"format-off": "\uf294", /* */
|
|
"format-on": "<big>\uf294</big>", /* */
|
|
"format-connected": "<big>\uf294</big>c", /* c */
|
|
"max-length": 10.3,
|
|
"on-click": "bluetoothctl power $( bluetoothctl show | sed -n 's/\\s*Powered: \\(yes\\|no\\)/\\1/p' | sed 's/yes/off/;s/no/on/' )",
|
|
"tooltip-format": "{status}",
|
|
"tooltip-format-on": "{status}, no devices connected",
|
|
"tooltip-format-connected": "{status} ({num_connections}):\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias} ({device_address})",
|
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}"
|
|
},
|
|
|
|
"clock#center": {
|
|
"format": "{:%H:%M}",
|
|
"format-alt": "{:%a %b %d, %Y, %R}",
|
|
"timezone": "Europe/Brussels",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"calendar": {
|
|
"mode": "month",
|
|
"week-pos": "left",
|
|
"format": {
|
|
/* Highlight todays date. */
|
|
"today": "<span background='#ffffff' color='#000000'><b>{}</b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click": "mode"
|
|
}
|
|
},
|
|
|
|
"clock#bar": {
|
|
"format": "{:%a %b %d, %R}",
|
|
"timezone": "Europe/Brussels",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"calendar": {
|
|
"mode-mon-col": 3,
|
|
"on-scroll": 1,
|
|
"format": {
|
|
/* Highlight today's date. */
|
|
"today": "<span background='#FFFFFF' color='#000000'><b>{}</b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click": "mode"
|
|
}
|
|
},
|
|
|
|
"custom/control-center": {
|
|
"format": "\uf085", /* */
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/display": {
|
|
"format": "\ue163", /* */
|
|
"tooltip": false,
|
|
"on-click": "wdisplays"
|
|
},
|
|
|
|
"custom/meta": {
|
|
"format": "\uf17c", /* */
|
|
"tooltip": false,
|
|
"on-click": "dmenu_run"
|
|
},
|
|
|
|
"custom/scratchpad-indicator": {
|
|
"interval": 3,
|
|
"return-type": "json",
|
|
"exec": "swaymsg -t get_tree | jq --unbuffered --compact-output '(recurse(.nodes[]) | select(.name == \"__i3_scratch\") | .focus) as $scratch_ids | [.. | (.nodes? + .floating_nodes?) // empty | .[] | select(.id |IN($scratch_ids[]))] as $scratch_nodes | if ($scratch_nodes|length) > 0 then { text: \"\\($scratch_nodes | length)\", tooltip: $scratch_nodes | map(\"\\(.app_id // .window_properties.class) (\\(.id)): \\(.name)\") | join(\"\\n\") } else empty end'",
|
|
"format": "\uf2d2 {}",
|
|
"on-click": "exec swaymsg 'scratchpad show'",
|
|
"on-click-right": "exec swaymsg 'move scratchpad'"
|
|
},
|
|
|
|
"custom/system-lock": {
|
|
"format": "\uf09c", /* */
|
|
"tooltip": true,
|
|
"tooltip-format": "Lock device",
|
|
"on-click": "swaylock --daemonize"
|
|
},
|
|
|
|
"custom/system-sleep": {
|
|
"format": "\uf186", /* */
|
|
"tooltip": true,
|
|
"tooltip-format": "Put device to sleep",
|
|
"on-click": "swaylock --daemonize; systemctl suspend"
|
|
},
|
|
|
|
"custom/system-hibernate": {
|
|
"format": "\uf2dc", /* */
|
|
"tooltip": true,
|
|
"tooltip-format": "Hibernate device",
|
|
"on-click": "swaylock --daemonize; systemctl hibernate"
|
|
},
|
|
|
|
"custom/system-reboot": {
|
|
"format": "\uf0e2", /* */
|
|
"tooltip": true,
|
|
"tooltip-format": "Reboot device",
|
|
"on-click": "systemctl reboot"
|
|
},
|
|
|
|
"custom/system-shutdown": {
|
|
"format": "\uf011", /* */
|
|
"tooltip": true,
|
|
"tooltip-format": "Shutdown device",
|
|
"on-click": "systemctl poweroff -i"
|
|
},
|
|
|
|
"custom/toggle-light-dark": {
|
|
"exec": "bash ${SCRIPT_DIR}/toggle-light-dark.sh -g",
|
|
"interval": 60,
|
|
"return-type": "json",
|
|
"on-click": "bash ${SCRIPT_DIR}/toggle-light-dark.sh",
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"default": "\uf185",
|
|
"prefer-dark": "\uf005"
|
|
},
|
|
"tooltip": true
|
|
},
|
|
|
|
"custom/toggle-nightlight": {
|
|
"exec": "bash ${SCRIPT_DIR}/toggle-nightlight.sh -g",
|
|
"interval": 60,
|
|
"return-type": "json",
|
|
"on-click": "bash ${SCRIPT_DIR}/toggle-nightlight.sh",
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"active": "\uf186", /* */
|
|
"inactive": "\uf0eb" /* */
|
|
},
|
|
"tooltip": true
|
|
},
|
|
|
|
"custom/toggle-notifications": {
|
|
"exec": "bash ${SCRIPT_DIR}/toggle-notifications.sh -g",
|
|
"interval": 60,
|
|
"return-type": "json",
|
|
"on-click": "bash ${SCRIPT_DIR}/toggle-notifications.sh",
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"normal": "\uf0f3", /* */
|
|
"paused": "\uf1f6" /* */
|
|
},
|
|
"tooltip": true
|
|
},
|
|
|
|
"custom/toggle-tailscale": {
|
|
"exec": "bash ${SCRIPT_DIR}/toggle-tailscale.sh -g",
|
|
"interval": 60,
|
|
"return-type": "json",
|
|
"on-click": "bash ${SCRIPT_DIR}/toggle-tailscale.sh",
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"disconnected": "\ue50b",
|
|
"connected": "\ue509",
|
|
},
|
|
"tooltip": true
|
|
},
|
|
|
|
"group/control-center": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
/* Preview */
|
|
"custom/control-center",
|
|
/* Left-most */
|
|
"group/language",
|
|
"custom/toggle-notifications"
|
|
/* Right-most */
|
|
],
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"transition-left-to-right": false,
|
|
"children-class": "drawer-child"
|
|
}
|
|
},
|
|
|
|
"group/display": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
/* Preview */
|
|
"custom/display",
|
|
/* Most-left */
|
|
"idle_inhibitor",
|
|
"custom/toggle-nightlight",
|
|
"custom/toggle-light-dark",
|
|
"backlight"
|
|
/* Most-right */
|
|
],
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"transition-left-to-right": false,
|
|
"children-class": "drawer-child"
|
|
}
|
|
},
|
|
|
|
"group/language": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
"hyprland/language",
|
|
"sway/language"
|
|
]
|
|
},
|
|
|
|
"group/mode": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
"hyprland/submap",
|
|
"sway/mode"
|
|
]
|
|
},
|
|
|
|
"group/network": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
/* Preview */
|
|
"network",
|
|
/* Most-left */
|
|
"bluetooth",
|
|
"custom/toggle-tailscale"
|
|
/* Most-right */
|
|
],
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"transition-left-to-right": false,
|
|
"children-class": "drawer-child"
|
|
}
|
|
},
|
|
|
|
"group/power": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
/* Preview */
|
|
"battery",
|
|
/* Most-left */
|
|
"custom/system-shutdown",
|
|
"custom/system-reboot",
|
|
"custom/system-hibernate",
|
|
"custom/system-sleep",
|
|
"custom/system-lock",
|
|
"power-profiles-daemon"
|
|
/* Most-right */
|
|
],
|
|
"drawer": {
|
|
"transition-duration": 500,
|
|
"transition-left-to-right": false,
|
|
"children-class": "drawer-child"
|
|
}
|
|
},
|
|
|
|
"group/workspaces": {
|
|
"orientation": "inherit",
|
|
"modules": [
|
|
"hyprland/workspaces",
|
|
"sway/workspaces"
|
|
]
|
|
},
|
|
|
|
"hyprland/language": {
|
|
"format": "\uf11c",
|
|
"on-click": "hyprctl switchxkblayout at-translated-set-2-keyboard next && notify-send \"$(hyprctl devices -j | jq -r '.keyboards[] | select(.name == \"at-translated-set-2-keyboard\") | .active_keymap')\" --app-name 'waybar'",
|
|
"tooltip": true,
|
|
"tooltip-format": "Switch keyboard layouts",
|
|
"keyboard-name": "at-translated-set-2-keyboard"
|
|
},
|
|
|
|
"hyprland/workspaces": {
|
|
"all-outputs": false,
|
|
"disable-scroll": true,
|
|
"format": "{icon}{name}",
|
|
"format-icons": {
|
|
"default": "",
|
|
"urgent": "\uf071 " /* */
|
|
}
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "\uf06e", /* */
|
|
"deactivated": "\uf070" /* */
|
|
},
|
|
"tooltip": false
|
|
},
|
|
|
|
"keyboard-state#capslock": {
|
|
"capslock": true,
|
|
"format": {
|
|
"capslock": "{icon}"
|
|
},
|
|
"format-icons": {
|
|
"locked": "\uf11c", /* */
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
|
|
"keyboard-state#numlock": {
|
|
"numlock": true,
|
|
"format": {
|
|
"numlock": "{icon}"
|
|
},
|
|
"format-icons": {
|
|
"locked": "\uf1ec", /* */
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
|
|
"mpris": {
|
|
"format": "{player_icon} {dynamic}",
|
|
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
|
"tooltip-format": "{player} ({status}) {title} - {artist} - {album}",
|
|
"player-icons": {
|
|
"default": "\uf8d9", /* */
|
|
"mpv": "\uf144", /* */
|
|
"spotify": "\uf1bc" /* */
|
|
},
|
|
"status-icons": {
|
|
"paused": "\uf04c" /* */
|
|
},
|
|
"dynamic-order": [
|
|
"title",
|
|
"artist"
|
|
],
|
|
"dynamic-len": 40
|
|
},
|
|
|
|
"network": {
|
|
"format-disconnected": "\uf127", /* */
|
|
"format-ethernet": "\uf6ff", /* */
|
|
"format-linked": "\uf0c1", /* */
|
|
"format-wifi": "{icon}",
|
|
"interval": 5,
|
|
"tooltip": true,
|
|
"tooltip-format": "{ifname}: {ipaddr}",
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
"tooltip-format-wifi": "{essid} ({signalStrength}%)\n{ifname}: {ipaddr}",
|
|
"format-icons": [
|
|
"\uf05e", /* */
|
|
"\uf1eb", /* */
|
|
"\uf1eb" /* */
|
|
]
|
|
},
|
|
|
|
"power-profiles-daemon": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"default": "\uf110", /* */
|
|
"performance": "\uf135", /* */
|
|
"balanced": "\uf24e", /* */
|
|
"power-saver": "\uf06c" /* */
|
|
},
|
|
"tooltip": true,
|
|
"tooltip-format": "Profile: {profile}\nDriver: {driver}"
|
|
},
|
|
|
|
"privacy": {
|
|
"transition-duration": 250,
|
|
"icon-size": 16,
|
|
"modules": [
|
|
{
|
|
"type": "screenshare",
|
|
"tooltip": true
|
|
},
|
|
{
|
|
"type": "audio-in",
|
|
"tooltip": true
|
|
}
|
|
]
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon}",
|
|
"format-headset": "{volume}% \uf58f", /* */
|
|
"format-muted": "\uf6a9", /* */
|
|
"format-icons": [
|
|
"\uf026", /* */
|
|
"\uf027", /* */
|
|
"\uf028" /* */
|
|
],
|
|
"scroll-step": 2.0,
|
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
},
|
|
|
|
"sway/language": {
|
|
"format": "{short}",
|
|
"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
|
|
"tooltip": true,
|
|
"tooltip-format": "Switch keyboard layouts"
|
|
},
|
|
|
|
"sway/window": {
|
|
"format": "{title}",
|
|
"max-length": 20,
|
|
"tooltip": true,
|
|
"all-outputs": true,
|
|
"icon": false,
|
|
"icon-size": 18,
|
|
"rewrite": {
|
|
".* - (.*)": "$1",
|
|
".* — (.*)": "$1"
|
|
}
|
|
},
|
|
|
|
"sway/workspaces": {
|
|
"all-outputs": false,
|
|
"disable-scroll": true,
|
|
"format": "{icon}{name}",
|
|
"format-icons": {
|
|
"default": "",
|
|
"urgent": "\uf071 " /* */
|
|
}
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 16,
|
|
"show-passive-items": true,
|
|
"spacing": 10
|
|
}
|
|
}
|