#!/bin/sh # ------------------------------------------------------------ # Purpose: toggle focus with mouse. This needs to be # disabled for wonky java stuff, see: # https://bbs.archlinux.org/viewtopic.php?pid=1448554#p1448554 # # Thanks matchew, for your awesome script! # ------------------------------------------------------------ toggle=$(bspc config focus_follows_pointer | \ awk -vtoggle="true" \ '{ if ($1 == "true") toggle="false"; print toggle }') bspc config focus_follows_pointer $toggle