-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
31 lines (20 loc) · 1.23 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
xbutton - add x button via ld_preload to kill application
Written in 2013 by <Ahmet Inan> <ainan@mathematik.uni-freiburg.de>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
this tool can be used to add a quit (kill) button to applications, that dont have it.
minimal usage:
# LD_PRELOAD=./xbutton.so COMMAND
all options:
# XBUTTON_DEBUG={0,1} XBUTTON_CORNER={NW,NE,SW,SE} XBUTTON_R=NUM XBUTTON_RESIZE={first,max,always} LD_PRELOAD=./xbutton.so COMMAND
XBUTTON_R is radius in pixels of xbutton.
kill xterm when clicking to upper right corner:
# LD_PRELOAD=./xbutton.so xterm
place xbutton to lower left corner:
# XBUTTON_CORNER=SW LD_PRELOAD=./xbutton.so terminal
track resize of only first created window:
# XBUTTON_RESIZE=first LD_PRELOAD=./xbutton.so firefox
track all window resizes and take maximum:
# XBUTTON_RESIZE=max LD_PRELOAD=./xbutton.so javaws -about
be verbose:
# XBUTTON_DEBUG=1 LD_PRELOAD=./xbutton.so ./SURFER