Skip to content

Instantly share code, notes, and snippets.

@matchew
Last active November 13, 2018 04:15
Show Gist options
  • Save matchew/a8de5c0ab939d19f0a12 to your computer and use it in GitHub Desktop.
Save matchew/a8de5c0ab939d19f0a12 to your computer and use it in GitHub Desktop.
toggle focus with mouse in BSPWM
#!/usr/bin/bash
##
# Purpose: toggle focus with mouse. Needs to be disabled for wonky java stuff
################
toggle=$(bspc config focus_follows_pointer | \
awk -vtoggle="true" \
'{ if ($1 == "true") \
toggle="false"; \
print toggle}')
bspc config focus_follows_pointer $toggle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment