137 lines
3.3 KiB
Text
137 lines
3.3 KiB
Text
{
|
|
"layer": "top",
|
|
"position": "bottom",
|
|
"margin-left": 10,
|
|
"margin-right": 10,
|
|
"margin-bottom": 10,
|
|
"height": 30,
|
|
"spacing": 5,
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"sway/mode",
|
|
"sway/window"
|
|
],
|
|
"modules-center": [],
|
|
"modules-right": [
|
|
"idle_inhibitor",
|
|
"pulseaudio",
|
|
"battery",
|
|
"backlight",
|
|
"network",
|
|
"clock",
|
|
"custom/power",
|
|
"custom/grimshot",
|
|
"custom/notification",
|
|
"tray"
|
|
],
|
|
"idle_inhibitor": {
|
|
"format": "{icon} ",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"network": {
|
|
"format": "{ipaddr} {essid} {signalStrength}% \uf1eb",
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {time} {icon}",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"on-click": "~/.config/sway/scripts/tofi-ppctl.sh"
|
|
},
|
|
"clock": {
|
|
"interval": 10,
|
|
"format-alt": "{:%d/%m/%Y %H:%M:%S}",
|
|
"format": "{:%d/%m %H:%M}",
|
|
"tooltip-format": "{:%e %B %Y}",
|
|
"on-click-right": "gsimplecal"
|
|
},
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"disable-markup": false,
|
|
"all-outputs": false,
|
|
"format": " {icon} "
|
|
},
|
|
"sway/mode": {
|
|
"format": "{}",
|
|
"tooltip": false
|
|
},
|
|
"sway/window": {
|
|
"format": "{}",
|
|
"max-length": 120
|
|
},
|
|
"wlr/workspaces": {
|
|
"all-outputs": false,
|
|
"on-click": "activate",
|
|
"sort-by-number": true
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 1,
|
|
"format": "{volume}% {icon}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": " ",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": [
|
|
""
|
|
]
|
|
},
|
|
"on-click": "pavucontrol",
|
|
"on-scroll-up": "pamixer -ui 2",
|
|
"on-scroll-down": "pamixer -ud 2"
|
|
},
|
|
"backlight": {
|
|
"format": "{percent}% ",
|
|
"on-scroll-down": "brightnessctl -c backlight set 1%-",
|
|
"on-scroll-up": "brightnessctl -c backlight set +1%"
|
|
},
|
|
"custom/grimshot": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "slurp | grim -g - - | wl-copy",
|
|
},
|
|
"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": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
"tray": {
|
|
"icon-size": 14,
|
|
"spacing": 10
|
|
}
|
|
}
|