123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- {
- "layer": "top",
- "position": "top",
- "height": 30,
- "modules-left": ["custom/menu", "sway/workspaces", "sway/window"],
- "modules-center": ["custom/wf-recorder", "sway/mode", "clock", "battery","network","tray"],
- "modules-right": [
- "custom/wlsunset",
- "custom/playerctl",
- "custom/scratchpad",
- "idle_inhibitor",
- "sway/language",
- "cpu",
- "memory",
- "custom/brightness",
- "bluetooth",
- "pulseaudio",
-
- "custom/power",
-
- ],
-
- "sway/workspaces": {
- "disable-scroll": true,
- "all-outputs": true
- },
-
- "sway/language": {
- "format": " {}",
- "min-length": 5,
- "tooltip": false,
- "on-click": "swaymsg input $(swaymsg -t get_inputs --raw | jq '[.[] | select(.type == \"keyboard\")][0] | .identifier') xkb_switch_layout next"
- },
- "custom/menu": {
- "format": "",
- "on-click": "exec alacritty",
- "tooltip": false
- },
-
- "sway/mode": {
- "format": "<span style=\"italic\">{}</span>",
- "tooltip": false
- },
-
- "sway/window": {
- "format": "{}",
- "max-length": 50,
- "tooltip": true
- },
- "idle_inhibitor": {
- "format": "{icon}",
- "format-icons": {
- "activated": "",
- "deactivated": ""
- },
- "tooltip": true,
- "tooltip-format-activated": "Caffeine on",
- "tooltip-format-deactivated": "Caffein off"
- },
- "pulseaudio": {
- "format": "{icon} {volume}% {format_source}",
- "format-bluetooth": "{icon} {volume}%",
- "format-muted": " {format_source}",
- "format-source": " {volume}%",
- "format-source-muted": "",
- "format-icons": {
- "headphone": "",
- "headset": "",
- "default": ["", "", ""]
- },
- "tooltip-format": "{icon} {volume}% {format_source}",
- "on-click": "swaymsg exec \\$pavucontrol",
- "on-click-middle": "swaymsg exec \\$volume_mute",
- "on-click-right": "swaymsg exec pavucontrol",
- "on-scroll-up": "swaymsg exec \\$volume_up",
- "on-scroll-down": "swaymsg exec \\$volume_down"
-
- },
-
- "battery": {
- "format": "{icon} {capacity}%",
- "format-icons": ["", "", "", "", ""]
- },
- "custom/brightness": {
- "format": " {}",
- "exec": "light -G | cut -d '.' -f 1",
- "interval": 1
- },
-
- "network": {
- "format-wifi": " ({signalStrength}%)",
- "format-ethernet": "",
- "format-disconnected": "",
- "tooltip-format": "{ifname} ({essid}): {ipaddr}",
- "on-click": "swaymsg exec \\$term nmtui"
- },
- "bluetooth": {
- "format": "",
- "format-disabled": "",
- "on-click": "swaymsg exec \\$rofi_bluetooth",
- "on-click-right": "rfkill toggle bluetooth",
- "tooltip-format": "{}"
- },
-
- "clock": {
- "format": "{:%e %b %H:%M}",
- "tooltip": true,
- "tooltip-format": "{:%d.%m.%Y %H:%M}",
- "interval": 5,
- "on-click": "swaymsg exec \\$calendar"
- },
-
- "cpu": {
- "interval": 5,
- "format": "CPU {usage}%",
- "states": {
- "warning": 70,
- "critical": 90
- },
- "on-click": "htop"
- },
-
- "memory": {
- "interval": 30,
- "format": "RAM {}%",
- "states": {
- "warning": 70,
- "critical": 90
- },
- "on-click": "htop"
-
- },
-
- "custom/wf-recorder": {
- "interval": "once",
- "return-type": "json",
- "format": "{}",
- "tooltip-format": "{tooltip}",
- "exec": "echo '{\"class\": \"recording\",\"text\":\"\",\"tooltip\":\"press $mod+Esc to stop recording\"}'",
- "exec-if": "pgrep wf-recorder",
- "on-click": "killall -s SIGINT wf-recorder",
- "signal": 8
- },
- "custom/playerctl": {
- "interval": "once",
- "tooltip": true,
- "return-type": "json",
- "format": "{icon}",
- "format-icons": {
- "Playing": "",
- "Paused": ""
- },
- "exec": "playerctl metadata --format '{\"alt\": \"{{status}}\", \"tooltip\": \"{{playerName}}: {{markup_escape(title)}} - {{markup_escape(artist)}}\" }'",
- "on-click": "playerctl play-pause; pkill -RTMIN+5 waybar",
- "on-click-right": "playerctl next; pkill -RTMIN+5 waybar",
- "on-scroll-up": "playerctl position 10+; pkill -RTMIN+5 waybar",
- "on-scroll-down": "playerctl position 10-; pkill -RTMIN+5 waybar",
- "signal": 5
- },
- "custom/power": {
- "format": "",
- "on-click": "nwg-bar -x"
- },
- "custom/dnd": {
- "interval": "once",
- "return-type": "json",
- "format": "{}{icon}",
- "format-icons": {
- "default": "",
- "dnd": ""
- },
- "on-click": "makoctl mode | grep 'do-not-disturb' && makoctl mode -r do-not-disturb || makoctl mode -a do-not-disturb; pkill -RTMIN+11 waybar",
- "exec": "printf '{\"alt\":\"%s\",\"tooltip\":\"Notification mode: %s\"}' $(makoctl mode | grep -q 'do-not-disturb' && echo dnd || echo default) $(makoctl mode | tail -1)",
- "signal": 11
- },
-
-
- "custom/wlsunset": {
- "interval": "once",
- "tooltip": true,
- "tooltip-format": "{tooltip}",
- "return-type": "json",
- "format": "{icon}",
- "format-icons": {
- "on": "",
- "off": ""
- },
- "exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/sway/scripts/sunset.sh",
- "on-click": "/usr/share/sway/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
- "exec-if": "/usr/share/sway/scripts/sunset.sh check",
- "signal": 6
- },
- "custom/scratchpad": {
- "interval": "once",
- "return-type": "json",
- "format": "{icon}",
- "format-icons": {
- "one": "",
- "many": ""
- },
- "exec": "/home/platon/.config/sway/scripts/scratchpad.sh; pkill -RTMIN+7 waybar",
- "on-click": "swaymsg 'scratchpad show'",
- "signal": 7
- },
-
- "tray": {
- "icon-size": 21,
- "spacing": 10
- }
- },
|