# epistrc # Marc Wilson (msw@cox.net) options { ChainTimeout 2500; stackedCycling true; stackedCyclingRaise true; } # toggle for turning off grabbing Mod4-Escape toggleGrabs; # Screens Mod4-Tab nextScreen; Mod4-Shift-Tab prevScreen; # Workspaces Mod4-1 changeWorkspace 1; Mod4-2 changeWorkspace 2; Mod4-3 changeWorkspace 3; Mod4-4 changeWorkspace 4; Mod4-5 changeWorkspace 5; Mod4-6 changeWorkspace 6; Control-Mod4-1 sendToWorkspace 1; Control-Mod4-2 sendToWorkspace 2; Control-Mod4-3 sendToWorkspace 3; Control-Mod4-4 sendToWorkspace 4; Control-Mod4-5 sendToWorkspace 5; Control-Mod4-6 sendToWorkspace 6; Control-Left prevWorkspace; Control-Right nextWorkspace; # Menus Menu showRootMenu; Control-Menu showWorkspaceMenu; # Windows Mod4-w { t toggleOmnipresent; s toggleShade; m toggleMaximizeFull; v toggleMaximizeVertical; h toggleMaximizeHorizontal; d toggleDecorations; i iconify; x close; n nextWindow; p prevWindow; } Mod1-Tab nextWindow; Mod1-Shift-Tab prevWindow; Mod1-F4 close; # Nudging Mod4-Up moveWindowUp 5; Mod4-Down moveWindowDown 5; Mod4-Left moveWindowLeft 5; Mod4-Right moveWindowRight 5; Mod1-Mod4-Up moveWindowUp 20; Mod1-Mod4-Down moveWindowDown 20; Mod1-Mod4-Left moveWindowLeft 20; Mod1-Mod4-Right moveWindowRight 20; # Resizing Control-Mod4-Up resizeWindowHeight 5; Control-Mod4-Down resizeWindowHeight -5; Control-Mod4-Left resizeWindowWidth -5; Control-Mod4-Right ResizeWindowWidth 5; # Executes Mod4-o { e execute "killall -HUP epist"; c execute "killall -HUP openbox"; r execute "killall -USR1 openbox"; } Mod4-e { a execute "gview -geometry 72x50 ~/.ascii_table"; b execute "gvim -geometry 120x50 ~/.bashrc"; e execute "gvim -geometry 120x50 ~/.openbox/epistrc"; g execute "gvim -geometry 120x50 ~/.gtkrc-2.0"; m execute "gvim -geometry 120x50 ~/.openbox/menu"; n execute "gvim -geometry 120x50 ~/bin/slurp-newsgroups"; Shift-m execute "gvim -geometry 120x50 ~/.muttrc"; o execute "gvim -geometry 120x50 ~/.sessions/openbox2.session"; r execute "gvim -geometry 120x50 ~/.openbox/rc"; s execute "~/.openbox/edit_style.sh"; v execute "gvim -geometry 120x50 ~/.vimrc"; x execute "gvim -geometry 120x50 ~/.xsession"; } Mod1-F1 execute "grun -w"; Mod1-F2 execute "$AABIGTERM"; Mod1-F3 execute "$AASMALLTERM"; # funky power key on the LiteOn keyboard is mapped to XF86Stop XF86Stop execute "xscreensaver-command -lock"; Mod4-x { b execute "gvim -geometry 120x50 ~/.blog"; c execute "xcalc"; Shift-c execute "$AABIGTERM -hold -geometry 21x8 -title "`date +"%B %Y"`" -e "cal | awk 'length(\$0)>0 {print \$0}'""; d execute "df | awk "/....[hm]d/ || /raid/" | ~/bin/diskspace | xmessage -buttons '' -xrm '*Translations: #override : exit(0)' -xrm '*message.borderWidth: 0' -title 'available disk space on '`hostname --fqdn` -file -"; e execute "gvim -geometry 100x25"; f execute "emelfm"; g execute "gimp1.3"; Shift-g execute "xzgv /mnt/raid/public/mwilson/pictures"; l execute "br a2 on"; m execute "~/bin/mailreader"; p execute "/usr/bin/lpq -a | xmessage -buttons '' -xrm '*Translations: #override : exit(0)' -xrm '*message.borderWidth: 0' -title 'Printer Status' -file -"; Shift-p execute "printop"; s execute "~/bin/ss-upload.sh"; v execute "xawtv"; w execute "mozilla"; x execute "~/bin/gtkx10"; } # play audio discs Mod4-c { b execute "cdcd prev"; f execute "cdcd next"; s execute "cdcd stop"; p execute "cdcd play"; Shift-p execute "cdcd toggle"; c execute "cdcd close"; # o execute "cdcd open"; o execute "eject /cdrom"; } # audio stuff Mod4-a { c execute "xmcd"; g execute "gqmpeg"; x execute "xmms"; m execute "~/bin/mute.sh"; p execute "echo play > ~/.gqmpeg/command"; s execute "echo stop > ~/.gqmpeg/command"; b execute "echo prev > ~/.gqmpeg/command"; f execute "echo next > ~/.gqmpeg/command"; Shift-p execute "xmms --play"; Shift-s execute "xmms --stop"; Shift-b execute "xmms --rew"; Shift-f execute "xmms --fwd"; } # change master volume levels Mod4-KP_1 execute "aumix -v -2"; Mod4-KP_7 execute "aumix -v +2"; # change cd-audio volume levels Mod4-KP_2 execute "aumix -c -2"; Mod4-KP_8 execute "aumix -c +2"; # change pcm volume levels Mod4-KP_3 execute "aumix -w -2"; Mod4-KP_9 execute "aumix -w +2"; # mute everybody Mod4-KP_5 execute "~/bin/mute.sh"; # change line-in volume levels Mod4-Shift-KP_1 execute "aumix -l -2"; Mod4-Shift-KP_7 execute "aumix -l +2"; # left over stuff that really has no relevance unless you're using the MS Natural Multimedia kbd... # (which I'm not any longer... you also need the custom xmodmap for these to work) XF86Mail execute "$AAREALBIGTERM -title "[ Mail for `whoami` @ `hostname` ]" -e ~/bin/launchmutt"; XF86Calculator execute "xcalc"; XF86Sleep execute "xscreensaver-command -lock"; Mod4-XF86PowerOff execute "killall -INT openbox"; XF86WWW execute "mozilla"; Mod4-XF86WWW execute "~/bin/gtkx10"; XF86Launch0 execute "df | awk "/....[hm]d/ || /raid/" | ~/bin/diskspace | xmessage -buttons '' -xrm '*Translations: #override : exit(0)' -xrm '*message.borderWidth: 0' -title 'available disk space on '`hostname --fqdn` -file -"; Mod4-XF86Launch0 execute "emelfm"; XF86Launch1 execute "gthumb /mnt/raid0/home/mwilson/pictures"; Mod4-XF86Launch1 execute "~/bin/ss-upload.sh"; XF86Launch2 execute "/usr/local/bin/lopster -geometry +0+0"; XF86Launch3 execute "/usr/bin/lpq -a | xmessage -buttons '' -xrm '*Translations: #override : exit(0)' -xrm '*message.borderWidth: 0' -title 'Printer Status' -file -"; Mod4-XF86Launch3 execute "printop"; #XF86AudioMedia execute "xmms"; XF86AudioMedia execute "gqmpeg"; Mod1-XF86AudioMedia execute "xmcd"; XF86AudioMute execute "~/bin/mute.sh"; Mod1-XF86AudioMute execute "$AASMALLTERM -geometry 80x12 -title '[ Rexima OSS Audio Mixer ]' -e rexima"; # change master volume levels Mod1-XF86AudioLowerVolume execute "aumix -v -2"; Mod1-XF86AudioRaiseVolume execute "aumix -v +2"; # change cd-audio volume levels Control-XF86AudioLowerVolume execute "aumix -c -2"; Control-XF86AudioRaiseVolume execute "aumix -c +2"; # change pcm volume levels XF86AudioLowerVolume execute "aumix -w -2"; XF86AudioRaiseVolume execute "aumix -w +2"; # change line-in volume levels Mod4-XF86AudioLowerVolume execute "aumix -l -2"; Mod4-XF86AudioRaiseVolume execute "aumix -l +2"; #XF86AudioPlay execute "xmms --play"; #XF86AudioStop execute "xmms --stop"; #XF86AudioPrev execute "xmms --rew"; #XF86AudioNext execute "xmms --fwd"; XF86AudioPlay execute "echo play > ~/.gqmpeg/command"; XF86AudioStop execute "echo stop > ~/.gqmpeg/command"; XF86AudioPrev execute "echo prev > ~/.gqmpeg/command"; XF86AudioNext execute "echo next > ~/.gqmpeg/command"; Mod4-XF86AudioPrev execute "cdcd prev"; Mod4-XF86AudioNext execute "cdcd next"; Mod4-XF86AudioStop execute "cdcd stop"; Mod4-XF86AudioPlay execute "cdcd play"; Control-Mod1-H execute "cdcd toggle"; Control-Mod1-C execute "cdcd close"; Control-Mod1-E execute "cdcd open"; # vim: nu tw=0 ts=8 # $Id: epistrc,v 1.7 2003/06/30 20:39:59 mwilson Exp $