diff options
| author | Zach DeCook <zachdecook@librem.one> | 2025-01-25 10:38:55 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2025-01-25 10:38:55 -0500 |
| commit | bba5d35d68d8bf4574e7c62bd6c7cca93ae5d2de (patch) | |
| tree | fa07ff8e15f65ad39f0009580c3f8970051a6204 /.config | |
| parent | 06d370b43d711d51e0e5cd318d21a7e0c114cf64 (diff) | |
| download | dotfiles-bba5d35d68d8bf4574e7c62bd6c7cca93ae5d2de.tar.gz | |
add swaync config
Diffstat (limited to '.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" + } + } +} |
