modules.json 6.58 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{
    "image#menu": {
        "path": "/usr/share/pixmaps/ximperlinux.svg",
        "size": 20,
        "on-click": "pkill wofi || wofi --show drun"
    },
    "idle_inhibitor": {
        "format": " {icon}",
        "format-icons": {
            "activated": "󰅶 ",
            "deactivated": "󰾫 "
        },
        "tooltip-format-activated": "Кофеин: активен\nРежим ожидания: отключен",
        "tooltip-format-deactivated": "Кофеин: отключен\nРежим ожидания: активен"
    },
    "custom/media": {
17
        "format": "{icon} {0}",
18 19
        "return-type": "json",
        "format-icons": {
20 21
            "Playing": "",
            "Paused": ""
22 23 24 25 26 27 28 29 30 31 32
        },
        "max-length": 70,
        "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
        "on-click": "playerctl play-pause",
        "on-scroll-up": "playerctl next",
        "on-scroll-down": "playerctl previous"
    },
    "hyprland/workspaces": {
        "active-only": false,
        "all-outputs": true,
        "format": "{icon}",
33
        "show-special": true,
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
        "on-click": "activate",
        "on-scroll-up": "hyprctl dispatch workspace e+1",
        "on-scroll-down": "hyprctl dispatch workspace e-1",
        "format-icons": {
            "active": "",
            "default": ""
        }
    },
    "tray": {
        "icon-size": 20,
        "show-passive-items": true,
        "spacing": 10
    },
    "custom/clipboard": {
        "tooltip": false,
        "on-click": "pkill wofi || cliphist-wofi-img | wl-copy",
        "on-click-right": "rm -f ~/.cache/cliphist/db",
        "format": " "
    },
    "backlight": {
        "format": "{icon} {percent}%",
        "format-icons": [
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            ""
        ],
        "on-scroll-up": "brightnessctl s +5%",
        "on-scroll-down": "brightnessctl s 5%-"
    },
    "pulseaudio#volume": {
        "scroll-step": 5,
        "format": "{icon} {volume}%",
        "format-bluetooth": "  {icon}  {volume}%",
        "format-muted": "   Мут",
        "tooltip-format": "{desc}",
        "format-icons": {
            "headphone": "  ",
            "default": [
                "  ",
                "  ",
                "   "
            ]
        },
        "on-click": "pwvucontrol",
        "on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
    },
    "pulseaudio#microphone": {
        "format": "{format_source}",
        "format-source": "  {volume}%",
        "format-source-muted": "   Мут",
        "on-click": "pwvucontrol",
        "on-click-right": "wpctl set-mute @DEFAULT_SOURCE@ toggle",
        "on-scroll-up": "wpctl set-volume @DEFAULT_SOURCE@ 10%+ -l 1.0",
        "on-scroll-down": "wpctl set-volume @DEFAULT_SOURCE@ 10%- -l 1.0",
        "tooltip-format": "{source_desc}"
    },
    "hyprland/language": {
        "format": "{}",
        "format-en": "EN",
        "format-ru": "RU"
    },
    "bluetooth": {
        "format": "",
        "format-disabled": "󰂳 ",
        "format-off": "󰂳 ",
        "format-disconnected": "󰂲 ",
        "format-connected": "󰂱 {num_connections}",
        "tooltip": true,
        "tooltip-format": "",
        "tooltip-format-disabled": "󰂳 Отключено",
        "tooltip-format-off": "󰂳 Выключено",
        "tooltip-format-connected": "{device_enumerate}",
        "tooltip-format-enumerate-connected": " {device_alias} 󰂄{device_battery_percentage}%",
        "on-click-right": "blueman-manager"
    },
    "network": {
        "tooltip": true,
        "format-wifi": " ",
        "rotate": 0,
        "format-ethernet": "󰈀 ",
        "tooltip-format": "Сеть: <b>{essid}</b>\nУровень сигнала: <b>{signaldBm}dBm ({signalStrength}%)</b>\nЧастота: <b>{frequency}MHz</b>\nИнтерфейс: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nШлюз: <b>{gwaddr}</b>\nМаска сети: <b>{netmask}</b>",
        "format-linked": "󰈀 {ifname} (No IP)",
        "format-disconnected": "󰖪 ",
        "tooltip-format-disconnected": "Нет соединения",
        "format-alt": "<span>   {bandwidthDownBytes}</span> <span>    {bandwidthUpBytes}</span>",
        "interval": 2,
        "on-click-right": "kitty nmtui"
    },
    "battery": {
        "states": {
            "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}  {capacity}%",
        "rotate": 0,
        "format-charging": "  {capacity}%",
        "format-plugged": "  {capacity}%",
        "format-alt": "{time} {icon}",
        "format-icons": [
            "󰂎",
            "󰁺",
            "󰁻",
            "󰁼",
            "󰁽",
            "󰁾",
            "󰁿",
            "󰂀",
            "󰂁",
            "󰂂",
            "󰁹"
        ]
    },
    "clock": {
        "format": "{:%H:%M}",
        "tooltip-format": "<tt><big>{calendar}</big></tt>",
        "on-click": "swaync-client -t -sw",
        "calendar": {
            "mode": "month",
            "weeks-pos": "right",
            "format": {
                "months": "<span color='#D8E9DE'><b>{}</b></span>",
                "days": "<span color='#D8E9DE'><b>{}</b></span>",
                "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
                "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
                "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
            }
        }
    },
    "custom/notification": {
        "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
    },

    "custom/sep": {
        "format": " ",
        "tooltip": false
    }
}