2023-11-14 22:33:03 +01:00
|
|
|
{
|
|
|
|
"battery": {
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
"format-charging": "{capacity}% \uf0e7 {icon}",
|
|
|
|
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
|
|
|
|
"format-plugged": "{capacity}% \ue55c",
|
|
|
|
"states": {
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"disk": {
|
|
|
|
"interval": 30,
|
|
|
|
"format": "{percentage_used}% \uf0a0",
|
|
|
|
"on-click": "kitty -e duf /",
|
|
|
|
"path": "/",
|
|
|
|
"tooltip-format": "{used} used out of {total} on {path} ({percentage_free}% or {free} free)"
|
|
|
|
},
|
|
|
|
|
|
|
|
"bluetooth": {
|
|
|
|
"format-disabled": "<big>\uf294</big>",
|
|
|
|
"format-off": "\uf294",
|
|
|
|
"format-on": "<big>\uf294</big>",
|
|
|
|
"format-connected": "<big>\uf294</big>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/' )",
|
|
|
|
"on-click-right": "kitty -e bluetoothctl",
|
|
|
|
"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": {
|
|
|
|
"format": "{:%H:%M}",
|
|
|
|
"format-alt": "{:%d/%m/%Y %H:%M}",
|
|
|
|
"timezone": "Europe/Brussels",
|
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/browser": {
|
|
|
|
"format": "\uf120",
|
|
|
|
"on-click": "dmenu_run",
|
|
|
|
"tooltip-format": "Launch an application"
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/light-dark-toggle": {
|
2024-09-25 18:40:54 +02:00
|
|
|
"exec": "bash ${SCRIPT_DIR}/toggle-light-dark.sh -g",
|
|
|
|
"exec-on-event": true,
|
2023-11-14 22:33:03 +01:00
|
|
|
"on-click": "bash ${SCRIPT_DIR}/toggle-light-dark.sh",
|
2024-09-25 18:40:54 +02:00
|
|
|
// "format": "\uf042 ",
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": [
|
|
|
|
"\uf185",
|
|
|
|
"\uf111"
|
|
|
|
],
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-format": "Toggle between light and dark mode"
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/keyboard-switch": {
|
|
|
|
"format": "\uf11c",
|
|
|
|
"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
|
|
|
|
"tooltip-format": "Toggle keyboard layouts",
|
2023-11-14 22:33:03 +01:00
|
|
|
"tooltip": true
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/night-light-toggle": {
|
|
|
|
"on-click": "bash ${SCRIPT_DIR}/sunset.sh",
|
|
|
|
"format": "\uf0eb ",
|
2024-06-02 20:53:09 +02:00
|
|
|
"tooltip": true,
|
2024-09-25 18:40:54 +02:00
|
|
|
"tooltip-format": "Toggle night-light on or off"
|
2024-06-02 20:53:09 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
"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 -f"
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/system-sleep": {
|
|
|
|
"format": "\uf186",
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-format": "Put device to sleep",
|
|
|
|
"on-click": "swaylock -f; systemctl suspend"
|
|
|
|
},
|
|
|
|
|
|
|
|
"custom/system-hibernate": {
|
|
|
|
"format": "\uf2dc",
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-format": "Hibernate device",
|
|
|
|
"on-click": "swaylock -f; 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"
|
2023-11-14 22:33:03 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
"custom/toggle-notifications": {
|
|
|
|
"on-click": "bash ${SCRIPT_DIR}/do-not-disturb.sh",
|
|
|
|
"tooltip-format": "Toggle notifications",
|
|
|
|
"format": "\uf1f6 ",
|
|
|
|
"tooltip": true
|
|
|
|
},
|
|
|
|
|
|
|
|
"cpu": {
|
|
|
|
"format": "{usage}% \uf2db",
|
2024-06-02 20:53:09 +02:00
|
|
|
"on-click": "foot -e htop",
|
2023-11-14 22:33:03 +01:00
|
|
|
"tooltip": true
|
|
|
|
},
|
|
|
|
|
2024-09-25 18:43:21 +02:00
|
|
|
"group/battery": {
|
2024-06-02 20:53:09 +02:00
|
|
|
"orientation": "inherit",
|
|
|
|
"modules": [
|
2024-09-25 18:43:21 +02:00
|
|
|
"battery",
|
2024-06-02 20:53:09 +02:00
|
|
|
"custom/system-shutdown",
|
|
|
|
"custom/system-reboot",
|
|
|
|
"custom/system-hibernate",
|
|
|
|
"custom/system-sleep",
|
|
|
|
"custom/system-lock",
|
2024-09-25 18:43:21 +02:00
|
|
|
"custom/sep",
|
|
|
|
"power-profiles-daemon",
|
|
|
|
"custom/sep"
|
|
|
|
],
|
|
|
|
"drawer": {
|
|
|
|
"transition-duration": 500,
|
|
|
|
"transition-left-to-right": false,
|
|
|
|
"children-class": "drawer-child"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"group/hardware": {
|
|
|
|
"orientation": "inherit",
|
|
|
|
"modules": [
|
|
|
|
"custom/sep",
|
|
|
|
"memory",
|
|
|
|
"cpu",
|
|
|
|
"temperature"
|
2024-06-02 20:53:09 +02:00
|
|
|
],
|
|
|
|
"drawer": {
|
|
|
|
"transition-duration": 500,
|
|
|
|
"transition-left-to-right": false,
|
2024-09-25 18:43:21 +02:00
|
|
|
"children-class": "drawer-child"
|
|
|
|
}
|
2024-06-02 20:53:09 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
"group/system": {
|
|
|
|
"orientation": "inherit",
|
|
|
|
"modules": [
|
|
|
|
"idle_inhibitor",
|
|
|
|
"custom/light-dark-toggle",
|
|
|
|
"custom/night-light-toggle",
|
2024-09-25 18:41:51 +02:00
|
|
|
"custom/keyboard-switch",
|
|
|
|
"custom/toggle-notifications"
|
2024-06-02 20:53:09 +02:00
|
|
|
],
|
|
|
|
"drawer": {
|
|
|
|
"transition-duration": 500,
|
|
|
|
"tansition-left-to-right": true,
|
2024-09-25 18:41:51 +02:00
|
|
|
"children-class": "drawer-child"
|
|
|
|
}
|
2024-06-02 20:53:09 +02:00
|
|
|
},
|
|
|
|
|
2023-11-14 22:33:03 +01:00
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "\uf06e",
|
|
|
|
"deactivated": "\uf070"
|
|
|
|
},
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
|
2024-06-02 20:50:03 +02:00
|
|
|
"keyboard-state": {
|
|
|
|
"format": {
|
2024-09-25 18:41:51 +02:00
|
|
|
"capslock": "{icon}"
|
2024-06-02 20:50:03 +02:00
|
|
|
},
|
|
|
|
"format-icons": {
|
|
|
|
"locked": "\uf023",
|
|
|
|
"unlocked": ""
|
|
|
|
},
|
|
|
|
"numlock": false,
|
|
|
|
"capslock": true,
|
2024-09-25 18:41:51 +02:00
|
|
|
"scrollock": false
|
2024-06-02 20:50:03 +02:00
|
|
|
},
|
|
|
|
|
2023-11-14 22:33:03 +01:00
|
|
|
"memory": {
|
|
|
|
"format": "{}% \uf1c0",
|
|
|
|
"on-click": "kitty -e zenith"
|
|
|
|
},
|
|
|
|
|
2024-06-02 19:51:04 +02:00
|
|
|
"mpris": {
|
|
|
|
// "ignored-players": ["firefox"]
|
|
|
|
"format": "{player_icon} {dynamic}",
|
|
|
|
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
|
|
|
"tooltip-format": "{player} ({status}) {title} - {artist} - {album}",
|
|
|
|
"player-icons": {
|
|
|
|
"default": "\uf51f",
|
|
|
|
"spotify": "\uf1bc",
|
|
|
|
"mpv": "🎵"
|
|
|
|
},
|
|
|
|
"status-icons": {
|
|
|
|
"paused": "⏸"
|
|
|
|
},
|
|
|
|
"dynamic-order": [
|
|
|
|
"title",
|
|
|
|
"artist"
|
|
|
|
],
|
|
|
|
"dynamic-len": 40,
|
|
|
|
},
|
|
|
|
|
2023-11-14 22:33:03 +01:00
|
|
|
"network": {
|
|
|
|
"format-disconnected": "\uf127",
|
|
|
|
"format-ethernet": "\uf6ff {ifname}: {ipadds}/{cidr}",
|
|
|
|
"format-wifi": "\uf1eb",
|
|
|
|
"interval": 5,
|
|
|
|
"on-click-right": "kitty -e nmtui",
|
|
|
|
"tooltip-format": "{ifname}: {ipaddr}",
|
|
|
|
"tooltip-format-disconnected": "Disconnected",
|
|
|
|
"tooltip-format-wifi": "{essid} ({signalStrength}%)\n{ifname}: {ipaddr}"
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/window": {
|
|
|
|
"max-length": 85
|
|
|
|
},
|
|
|
|
|
|
|
|
"sway/workspaces": {
|
|
|
|
"all-outputs": false,
|
|
|
|
"disable-scroll": true,
|
|
|
|
"format": "{icon}{name}",
|
|
|
|
"format-icons": {
|
|
|
|
"default": "", // Prevent showing workspace name literal.
|
|
|
|
"urgent": "\uf071 "
|
|
|
|
},
|
|
|
|
// "persistent_workspaces": {
|
|
|
|
// "0:¯\\_(ツ)_/¯": []
|
|
|
|
// }
|
|
|
|
},
|
2024-06-02 19:39:13 +02:00
|
|
|
|
2024-06-02 20:53:09 +02:00
|
|
|
"power-profiles-daemon": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
|
|
|
"tooltip": true,
|
|
|
|
"format-icons": {
|
|
|
|
"default": "",
|
|
|
|
"performance": "",
|
|
|
|
"balanced": "",
|
|
|
|
"power-saver": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2024-06-02 19:39:13 +02:00
|
|
|
"privacy": {
|
|
|
|
"icon-spacing": 4,
|
|
|
|
"icon-size": 18,
|
|
|
|
"transition-duration": 250,
|
|
|
|
"modules": [
|
|
|
|
{
|
|
|
|
"type": "screenshare",
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-icon-size": 18,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "audio-in",
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-icon-size": 18,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
2023-11-14 22:33:03 +01:00
|
|
|
"pulseaudio": {
|
|
|
|
"format": "{volume}% {icon}{format_source}",
|
|
|
|
"format-muted": "\uf6a9{format_source}",
|
|
|
|
"format-bluetooth": "{volume}% {icon}\uf294{format_source}",
|
|
|
|
"format-bluetooth-muted": "\uf6a9 {icon}\uf294{format_source}",
|
|
|
|
"format-source": " {volume}% \uf130",
|
|
|
|
"format-source-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
"headphone": "\uf58f",
|
|
|
|
"hands-free": "\uf590",
|
|
|
|
"headset": "\uf590",
|
|
|
|
"phone": "\uf3ce",
|
|
|
|
"portable": "\uf3ce",
|
|
|
|
"car": "\uf1b9",
|
|
|
|
"default": ["\uf026", "\uf027", "\uf028 "]
|
|
|
|
},
|
|
|
|
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
|
|
|
"on-click-right": "pavucontrol",
|
2024-09-25 18:42:31 +02:00
|
|
|
"scroll-step": -2
|
2023-11-14 22:33:03 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
"temperature": {
|
|
|
|
"critical-threshold": 70,
|
|
|
|
"format": "{temperatureC}°C {icon}",
|
|
|
|
"format-icons": ["\uf2cb", "\uf2c9", "\uf2c7"]
|
|
|
|
},
|
|
|
|
|
|
|
|
"tray": {
|
|
|
|
"spacing": 10
|
|
|
|
}
|
|
|
|
}
|