added scripts to start peripheral programs if needed

main
Guus van Meerveld 11 months ago
parent 8e77735b22
commit 1da003cfae
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -19,13 +19,17 @@ pgrep -x mconnect > /dev/null || mconnect -d > /dev/null &
# Kill sxhkd & start a new instance
pgrep -x sxhkd > /dev/null || sxhkd &
start-solaar
start-ckbnext
# Define workspaces
bspc monitor -d I II III IV V VI VII VIII IX X
bspc config border_width 1
bspc config window_gap 6
bspc config split_ratio 0.52
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true

@ -8,7 +8,7 @@ super + Return
# program launcher
super + @space
~/.config/rofi/launchers/type-2/launcher.sh
~/.config/rofi/launchers/type-3/launcher.sh
super + i
kitty

@ -15,6 +15,8 @@
/bin/dotfiles: dotfiles
/bin/open-captive: scripts/open-captive
/bin/start-solaar: scripts/start-solaar
/bin/start-ckbnext: scripts/start-ckbnext
/usr/share/icons/default/index.theme: config/cursors.theme

@ -0,0 +1,6 @@
#!/bin/bash
if lsusb | grep -q "Corsair"
then
pgrep -x ckb-next > /dev/null || ckb-next -b &
fi

@ -0,0 +1,6 @@
#!/bin/bash
if lsusb | grep -q "Logitech"
then
pgrep -x solaar > /dev/null || solaar -w hide &
fi