{ "$schema": "/etc/xdg/swaync/configSchema.json", "ignore-gtk-theme": true, "positionX": "right", "positionY": "top", "layer": "overlay", "control-center-layer": "top", "layer-shell": true, "layer-shell-cover-screen": false, "cssPriority": "highest", "control-center-margin-top": 10, "control-center-margin-bottom": 5, "control-center-margin-right": -10, "control-center-margin-left": 0, "notification-2fa-action": false, "notification-inline-replies": false, "notification-body-image-height": 100, "notification-body-image-width": 200, "timeout": 10, "timeout-low": 5, "timeout-critical": 0, "fit-to-screen": true, "relative-timestamps": true, "control-center-width": 470, "control-center-height": 800, "notification-window-width": 500, "keyboard-shortcuts": true, "notification-grouping": false, "image-visibility": "when-available", "transition-time": 100, "hide-on-clear": false, "hide-on-action": true, "text-empty": "No nothing", "script-fail-notify": true, "scripts": { "example-script": { "exec": "echo 'Do something...'", "urgency": "Normal" }, "example-action-script": { "exec": "echo 'Do something actionable!'", "urgency": "Normal", "run-on": "action" } }, "notification-visibility": { "example-name": { "state": "muted", "urgency": "Low", "app-name": "Spotify" } }, "widgets": [ "menubar", "buttons-grid", "volume", "slider#brightness", "slider#cpu", "inhibitors", "title", "notifications", "dnd" ], "widget-config": { "inhibitors": { "text": "Inhibitors", "button-text": "Purge", "clear-all-button": true }, "title": { "text": "Notifications", "clear-all-button": true, "button-text": "Purge" }, "volume": { "label": "󰕾 ", "show-per-app": true, "show-per-app-icon": true, "show-per-app-label": true }, "slider#brightness": { "label": " ", "cmd_setter": "brightnessctl s $value", "cmd_getter": "brightnessctl g", "min": 5000, "min_limit": 5000, "max": 120000, "max_limit": 120000 }, "slider#cpu": { "label": " ", "cmd_setter": "exec ~/.config/hypr/scripts/cpufreq.sh $value", "cmd_getter": "exec ~/.config/hypr/scripts/cpufreq.sh g", "min": 1, "min_limit": 1, "max": 6, "max_limit": 6 }, "dnd": { "text": "Don't bother" }, "label": { "max-lines": 1, "text": "Kolinux 1.0" }, "mpris": { "blacklist": [], "autohide": false, "show-album-art": "always", "loop-carousel": false }, "buttons-grid": { "buttons-per-row": 4, "actions": [ { "label": "󰑫", "type": "toggle", "active": true, "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'", "update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'" }, { "label": "", "type": "toggle", "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && bluetoothctl power on || bluetoothctl power off'", "update-command": "sh -c \'bluetoothctl show | awk \\\"/Powered/ {print \\$2}\\\" | grep -q yes && echo true || echo false\'" }, { "label": "󰦝", "type": "toggle", "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && mullvad connect || mullvad disconnect'", "update-command": "sh -c '[[ $(mullvad status | grep -e Connected ) == \"Connected\" ]] && echo true || echo false'" }, { "label": "", "type": "toggle", "command": "sh -c 'nohup ~/.config/bspwm/proxy.sh > /dev/null 2>&1 & disown'", "update-command": "sh -c 'pgrep sslocal > /dev/null && echo true || echo false'" }, { "label": "󰍰", "type": "toggle", "command": "sh -c 'pactl set-source-mute alsa_input.pci-0000_00_1f.3.analog-stereo toggle'", "update-command": "sh -c '[[ $(pactl get-source-mute alsa_input.pci-0000_00_1f.3.analog-stereo) == \\\"Mute: no\\\" ]] && echo true || echo false'" }, { "label": "󰐨", "type": "toggle", "command": "[[ $SWAYNC_TOGGLE_STATE == true ]] && ( systemd-inhibit --why='User request via swaync' --what=sleep:handle-lid-switch:idle sh -c 'echo \"$$\" > \"$XDG_RUNTIME_DIR/swaync-idle.pid\"; while true; do sleep 3600; done' ) || kill $(<\"$XDG_RUNTIME_DIR/swaync-idle.pid\")", "update-command": "kill -0 $(<\"$XDG_RUNTIME_DIR/swaync-idle.pid\") && echo true || echo false" }, { "label": "󱞟", "type": "toggle", "command": "sh -c 'exec ~/.config/hypr/scripts/toggle_mirror_display.sh'", "update-command": "sh -c 'exec ~/.config/hypr/scripts/toggle_mirror_display.sh g'" }, { "label": "", "type": "toggle", "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && (echo 1 > $HOME/.config/hypr/conditions/autofreeze_swww) || (echo 0 > $HOME/.config/hypr/conditions/autofreeze_swww)'", "update-command": "sh -c '[ \$(cat $HOME/.config/hypr/conditions/autofreeze_swww) -eq 1 ] && echo true || echo false'" } ] }, "menubar": { "menu#power-buttons": { "label": "", "position": "left", "actions": [ { "label": " Reboot", "command": "systemctl reboot" }, { "label": " Lock", "command": "swaylock.sh" }, { "label": " Logout", "command": "loginctl terminate-session ${XDG_SESSION_ID-}" }, { "label": " Shut down", "command": "systemctl poweroff" } ] }, "menu#powermode-buttons": { "label": "󰓅", "position": "right", "actions": [ { "label": "Razgonnnn", "command": "sh -c 'notify-send --hint int:transient:1 Power-Profile Performance && powerprofilesctl set performance'" }, { "label": "Balanced", "command": "sh -c 'notify-send --hint int:transient:1 Power-Profile Balanced && powerprofilesctl set balanced'" }, { "label": "Survival", "command": "sh -c 'notify-send --hint int:transient:1 Power-Profile Power-saver && powerprofilesctl set power-saver'" } ] } } } }