more kwm scripts
This commit is contained in:
parent
95c606c43c
commit
014a3f897e
3 changed files with 18 additions and 3 deletions
15
kwm/.config/kwm/bluetooth.sh
Executable file
15
kwm/.config/kwm/bluetooth.sh
Executable 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
|
||||
|
|
@ -468,7 +468,7 @@
|
|||
.event = .{
|
||||
.click = .{
|
||||
.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 = .{
|
||||
.click = .{
|
||||
.pressed = .{
|
||||
.spawn = .{ .argv = .{ "bluetoothctl", "disconnect", "88:C9:E8:D7:60:85" } },
|
||||
.spawn = .{ .argv = .{ "/home/wball/.config/kwm/bluetooth.sh", "--disconnect" } },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ emacs --daemon &
|
|||
|
||||
# swayidle
|
||||
pgrep swayidle || swayidle -w \
|
||||
timeout 300 '$HOME/.config/river/timeout.sh' \
|
||||
timeout 300 '$HOME/.config/kwm/timeout.sh' \
|
||||
before-sleep 'swaylock -f -c 000000' &
|
||||
|
||||
# gnome-keyring (needed for nextcloud to remember login)
|
||||
|
|
|
|||
Loading…
Reference in a new issue