################### AUTHOR, VERSION ######################### #Yokotashi aka lhc #http://kanal.ucw.cz # #version 0.01, alpha #licence GPL ############################################################## How to install this thing: -------------------------- 1. copy these files: ClusterDuck_move ClusterDuck_xchg_to0 ClusterDuck_ls_monitor to your $PATH - like ~/bin/ 2. mkdir ~/.ClusterDuck cp ClusterDuck_README ~/.ClusterDuck If you want to use different place, edit datafiles_path="$HOME/.ClusterDuck" in ClusterDuck_xchg_to0 3. edit config in these files: ClusterDuck_ls_monitor ClusterDuck_move The config is written to working with 3 monitors wide (from left to right) 1920, 1920, 1280 px, no monitor on top of another. 4. add a few lines to your ~/.fluxbox/keys file # ClusterDuck # using numlock keys # 7 8 9 # 4 5 6 # 1 2 3 # desktop 0 (wmctrl) = Workspace 1 (fluxbox) is default # desktops 1, 2 and 3 are moved to 0 and back # 'monitor desktop' # Fluxbox doesn't run it directly from $PATH it seems, therefore whole path here. 79 :Exec echo '1 3' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 80 :Exec echo '2 3' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 81 :Exec echo '3 3' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 83 :Exec echo '1 2' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 84 :Exec echo '2 2' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 85 :Exec echo '3 2' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 87 :Exec echo '1 1' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 88 :Exec echo '2 1' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile 89 :Exec echo '3 1' | /home/lhc/bin/ClusterDuck_xchg_to0 2>&1 >> ~/.ClusterDuck/logfile ^-these numbers are obtained from xev after pressing the keys. You can use other keys. Is possible to run it under other windowmanagers, but you need to found a way to bind keys. This experimental daemon can help you: http://atrey.karlin.mff.cuni.cz/~metan/evfilter/ Is possible to inject events into your computer from serial or parallel port too. 5. reload config in fluxbox (in the menu). Or you can restart fluxbox of course. WARNING Highly untested code, a few hours in use only, inputs are non-sanitized yet. How to use this thing: ---------------------- Allocate 4 workspaces in your windowmanager. Switch to the first (workspace 1 for fluxbox, desktor 0 for wmctl). Your apps will be on workspaces 2 to 4 and you can switch them to workspace 1 using keys on keypad. Press KP_7, it will move all windows from Workspace 4 to 1 on the left monitor and write '3' to ~/.ClusterDuck/monitor_1 Press KP_4, it will move all windows from Workspace 1 to 4 back (according to record in ~/.ClusterDuck/monitor_1) and then move all windows from Workspace 3 to 1. On the left monitor only. And write '2' to ~/.ClusterDuck/monitor_1. It works in middle and right column the same way for the middle and right monitor.