personal dotfiles: my Hyprland config
add swaync config
| -rw-r--r-- | .config/swaync/config.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.config/swaync/config.json b/.config/swaync/config.json new file mode 100644 index 0000000..df0bddf --- /dev/null +++ b/.config/swaync/config.json @@ -0,0 +1,38 @@ +{ + "notification-window-width": 300, + "control-center-width": 300, + "widgets": ["title","dnd", "menubar","notifications","inhibitors","mpris","volume","backlight"], + "widget-config": { + "backlight": { + "label": "☀️", + "min": 1, + "device": "ae94000.dsi.0" + }, + "volume": { + "label": "🔈", + "show-per-app": true + }, + "menubar": { + "buttons#screenshot":{ + "actions": [ + {"label":"⌨️","command":"sh -c 'dbus-send --session --print-reply --dest=sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0.SetVisible boolean:$(dbus-send --session --print-reply --dest=sm.puri.OSK0 /sm/puri/OSK0 org.freedesktop.DBus.Properties.Get string:sm.puri.OSK0 string:Visible |grep -o \"false\\|true\" |jq \".|not\")'"} + ] + }, + "buttons#torch":{ + "actions": [ + {"label":"💡","command":"gtk-launch flashlight"} + ] + } + } + }, + "scripts": { + "new-im": { + "exec": "sh -c '[ ! -f /home/user/.config/sxmo/.novibrate ] && sxmo_vibrate 400 2500; [ ! -f ~/.config/sxmo/.noring ] && mpv --volume=50 --really-quiet /usr/share/sounds/freedesktop/stereo/message-new-instant.oga'", + "sound-name": "message-new-instant" + }, + "incoming-call": { + "exec": "sh -c '[ ! -f /home/user/.config/sxmo/.novibrate ] && sxmo_vibrate 400 2500; [ ! -f ~/.config/sxmo/.noring ] && mpv --volume=50 --really-quiet --loop=2 /usr/share/sounds/freedesktop/stereo/phone-incoming-call.oga'", + "sound-name": "phone-incoming-call" + } + } +} |