mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 16:26:10 +01:00
added binfiles from chrysostomus/bspwm-scripts, fixed eaten space
This commit is contained in:
15
bin/toggle-focus-follows-pointer
Executable file
15
bin/toggle-focus-follows-pointer
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user