Some changes from minitoninux
This commit is contained in:
1 parent
cffe11c4e9
commit
695f79c9ee
6 files changed
+33
-19
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Did I just click the desktop?
|
||||
|
||||
#Get the window id of the window that is under the pointer and set variable WINDOW to it
|
||||
eval $(xdotool getmouselocation --shell)
|
||||
|
||||
#Get the window id of the rootwindow aka desktop and convert the id into decimal form that xdotool uses so we can easily compare the values
|
||||
rootwindowid=$(($(lsw | head -1)))
|
||||
#Compare window ids to see if window under mouse is the rootwindow. Returns false if not.
|
||||
[ "$WINDOW" = "$rootwindowid" ]
|
||||
Reference in new issue
Block a user