forked from BunsenLabs/bunsen-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.bunsen-wmhacks
60 lines (51 loc) · 1.67 KB
/
README.bunsen-wmhacks
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
README imported from bunsen-wmhacks
===================================
Scripts for adding hot corners and aero style window snapping
to Openbox.
Based on cb-wmhacks, written for CrunchBang Linux.
Repackaged for BunsenLabs Linux.
### bl-hotcorner usage:
This script is designed to be started automatically on login via
Openbox's autostart file:
# Start hotcorner detection:
bl-hotcorners --daemon &
Once started, the script will detect when the mouse cursor enters
the corners of your screen. If the corner has an associated command,
it will get executed.
#### Command line usage:
bl-hotcorners: usage:
--help show this message and exit
--kill attempt to kill any running instances
--daemon run daemon and listen for cursor triggers
#### Customising commands:
On first use, a config file will be created
`~/.config/bl-hotcorners/bl-hotcornersrc`. The file should be
self-explanatory.
### bl-aerosnap usage:
This script is designed to be called via Openbox keyboard shortucts.
Edit Openbox's rc.xml file to add new shortcuts. Example shortcuts to
bind snapping to Super+Alt+Left/Right key combinations:
<keybind key="W-A-Left">
<action name="Execute">
<command>bl-aerosnap --left</command>
</action>
</keybind>
<keybind key="W-A-Right">
<action name="Execute">
<command>bl-aerosnap --right</command>
</action>
</keybind>
#### Command line usage:
bl-aerosnap: usage:
--help show this message and exit
--left attempt to snap active window to left of screen
--right attempt to snap active window to right of screen
### Dependencies
* python
* python-xlib
* wmctrl
* xdotool (>=2.20110530)
On Debian systems:
sudo apt-get update && sudo apt-get install python python-xlib wmctrl xdotool
### License
GPL3