more kwm scripts

This commit is contained in:
William Ball 2026-03-30 18:44:23 -04:00
parent 95c606c43c
commit 014a3f897e
Signed by: wball
SSH key fingerprint: SHA256:3K3IvjUp1U5HwsIRYy/vosnG8l/A84LPUSAKQ6oCGKI
3 changed files with 18 additions and 3 deletions

15
kwm/.config/kwm/bluetooth.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
case "$1" in
--connect)
notify-send 'bluetooth' 'Connecting to Headphones'
bluetoothctl connect "88:C9:E8:D7:60:85"
;;
--disconnect)
notify-send 'bluetooth' 'Disconnecting Headphones'
bluetoothctl disconnect "88:C9:E8:D7:60:85"
;;
*)
exit 1
;;
esac

View file

@ -468,7 +468,7 @@
.event = .{ .event = .{
.click = .{ .click = .{
.pressed = .{ .pressed = .{
.spawn = .{ .argv = .{ "bluetoothctl", "connect", "88:C9:E8:D7:60:85" } }, .spawn = .{ .argv = .{ "/home/wball/.config/kwm/bluetooth.sh", "--connect" } },
}, },
}, },
}, },
@ -479,7 +479,7 @@
.event = .{ .event = .{
.click = .{ .click = .{
.pressed = .{ .pressed = .{
.spawn = .{ .argv = .{ "bluetoothctl", "disconnect", "88:C9:E8:D7:60:85" } }, .spawn = .{ .argv = .{ "/home/wball/.config/kwm/bluetooth.sh", "--disconnect" } },
}, },
}, },
}, },

View file

@ -10,7 +10,7 @@ emacs --daemon &
# swayidle # swayidle
pgrep swayidle || swayidle -w \ pgrep swayidle || swayidle -w \
timeout 300 '$HOME/.config/river/timeout.sh' \ timeout 300 '$HOME/.config/kwm/timeout.sh' \
before-sleep 'swaylock -f -c 000000' & before-sleep 'swaylock -f -c 000000' &
# gnome-keyring (needed for nextcloud to remember login) # gnome-keyring (needed for nextcloud to remember login)