#[SOLVED] bspwm doesn't like my startup script

4 messages · Page 1 of 1 (latest)

silver blade
#

i feel stupid. i'm trying to set up bspwm to auto-run a script that sets my keyboard options and runs polybar. however when bspwm starts and calls its ~/.config/bspwm/bspwmrc, which runs my ~/bin/bspwm/startup, the super key does not function properly. i.e., super+shift+q is bound to close programs, but instead only prints a capital letter Q. this also means switching workspaces with super+{1-9} does not function.

my ~/.config/bspwm/bspwmrc snippet:

#!/bin/sh
sxhkd &
bspc monitor -d α β γ δ ε ζ η θ ι
#startup
~/bin/bspwm/startup &

my ~/bin/bspwm/startup:

#!/bin/bash
#keylayout
setxkbmap -v us dvorak-qwerty &
#keyrepeat
xset r rate 175 60 &>/dev/null &
#statusbar
polybar -c ~/.config/polybar/config.ini bspwm-bar &

it is worth noting i'm able to exit bspwm with my normal keybind, so it seems like only super is affected? i feel at a loss. plz to help

devout lance
#

you should probably send your sxhkdrc as well

silver blade
#

SOLUTION found through some intense google sessions
in ~/.config/bspwm/bspwmrc:
changing sxhkd & to sxhkd -m1 &

the -m1 switch (apparently) lets sxhkd see updated keymapping one time.