mirror of
https://github.com/VectorKappa/dotfiles.git
synced 2025-12-19 08:16:10 +01:00
added binfiles from chrysostomus/bspwm-scripts, fixed eaten space
This commit is contained in:
11
bin/MouseCenter
Executable file
11
bin/MouseCenter
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# Get the necessary info
|
||||
#Script copied from https://github.com/tatou-tatou
|
||||
IFS=" " read -a window <<< $(wattr whxy $(pfw))
|
||||
|
||||
# Find the center of the window
|
||||
center_x=$(( ${window[0]} / 2 + ${window[2]} ))
|
||||
center_y=$(( ${window[1]} / 2 + ${window[3]} ))
|
||||
|
||||
# Move mouse
|
||||
xdotool mousemove $center_x $center_y
|
||||
Reference in New Issue
Block a user