From b0708ad010b4e557f52bf3c8dc37b3b3b9e08fc6 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Thu, 6 Aug 2015 20:26:32 +0200 Subject: switching back to ratpoison --- tools/ratpoisonrc.conf | 75 ++++++++++++++++++++------------------------------ 1 file changed, 30 insertions(+), 45 deletions(-) (limited to 'tools/ratpoisonrc.conf') diff --git a/tools/ratpoisonrc.conf b/tools/ratpoisonrc.conf index 079e9c4..a40ce54 100644 --- a/tools/ratpoisonrc.conf +++ b/tools/ratpoisonrc.conf @@ -4,9 +4,6 @@ escape grave definekey top s-grave meta definekey top Arabic_dammatan meta -#unmanage Nautilus Desktop -unmanage Desktop - #find files script bind f exec ~/.tools/spotlight @@ -14,10 +11,6 @@ bind f exec ~/.tools/spotlight #set font -*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-* set font "DejaVu Sans Mono" -#Style message box -set bgcolour #fdf6e3 -set fgcolor #657b83 - # Enable xcb copy/paste source .tools/ratpoisonrc.clipboard @@ -28,7 +21,7 @@ bind Tab nextscreen set wingravity center # Use the name of the program rather than the title in the window list -set winname title +set winname class #Pest control. banish @@ -48,42 +41,34 @@ exec xsetroot -cursor_name left_ptr #exec nitrogen --restore #Border & Padding -alias showpadding set padding 10 10 10 10 -alias hidepadding set padding 0 0 0 0 -showpadding +alias showpanel set padding 0 27 0 0 +alias hidepanel set padding 0 0 0 0 +showpanel -barinpadding 0 alias showborder set border 3 alias hideborder set border 0 showborder -set fwcolor #657b83 -set bwcolor #839496 - ###################################### # Panel ###################################### -alias rpbarsend exec ~/.tools/rpbarsend +alias barsend exec ~/.tools/panel/windows -# tell ratpoison to ignore rpbar +# tell ratpoison to ignore panels unmanage rpbar +unmanage bar +unmanage stalonetray # hooks -#addhook switchwin rpbarsend -#addhook switchframe rpbarsend -#addhook switchgroup rpbarsend -#addhook deletewindow rpbarsend -## RP versions >= 1.4.6 (from the git repo) have these hooks. -## Recommended! -#addhook titlechanged rpbarsend -#addhook newwindow rpbarsend +addhook switchwin barsend +addhook deletewindow barsend +addhook switchframe barsend +addhook switchgroup barsend +#addhook titlechanged barsend unmanage conky unmanage xfce4-panel unmanage ratbar.pl -alias showpanel set padding 0 27 0 0 -alias hidepanel set padding 0 0 0 0 -#showpanel #------------------------------------------------------------- # Workspaces #------------------------------------------------------------- @@ -95,18 +80,18 @@ bind W workspace_menu #Get F-keys to switch windows now in /usr/bin/rpws -definekey top F1 exec rpws 1 #&& ratpoison -c bordscript -definekey top F2 exec rpws 2 #&& ratpoison -c bordscript -definekey top F3 exec rpws 3 -definekey top F4 exec rpws 4 #&& ratpoison -c bordscript -definekey top F5 exec rpws 5 #&& ratpoison -c bordscript -definekey top F6 exec rpws 6 #&& ratpoison -c bordscript -definekey top F7 exec rpws 7 #&& ratpoison -c bordscript -definekey top F8 exec rpws 8 #&& ratpoison -c bordscript -definekey top F9 exec rpws 9 #&& ratpoison -c bordscript -definekey top F10 exec xset -led 3 & exec ratpoison -c "exec rpws 10" -definekey top F11 exec rpws 11 #3&& ratpoison -c bordscript -definekey top F12 exec rpws 12 #3&& ratpoison -c bordscript +definekey top F1 exec rpws 1 && echo "D1" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F2 exec rpws 2 && echo "D2" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F3 exec rpws 3 && echo "D3" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F4 exec rpws 4 && echo "D4" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F5 exec rpws 5 && echo "D5" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F6 exec rpws 6 && echo "D6" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F7 exec rpws 7 && echo "D8" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F8 exec rpws 8 && echo "D8" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F9 exec rpws 9 && printf "D9\nIxlear\n" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F10 exec rpws 10 && printf "D10\nIclear\n" > /tmp/panel-fifo & xset -led named "Scroll Lock" #&& ratpoison -c bordscript +definekey top F11 exec rpws 11 && echo "D11" > /tmp/panel-fifo #&& ratpoison -c bordscript +definekey top F12 exec rpws 12 && echo "D12" > /tmp/panel-fifo #&& ratpoison -c bordscript definekey top M-F1 rpwsm1 definekey top M-F2 rpwsm2 @@ -169,7 +154,7 @@ bind J exchangedown bind K exchangeup bind w window_menu -bind a title +bind a exec ratpoison -i -c 'title' && ratpoison -c 'barsend' bind t time definekey top s-l exec i3lock -n -i ~/.wallpaper.png definekey top s-s exec ~/bin/sus @@ -210,11 +195,11 @@ definekey top s-p paneltoggle # b : Open url -alias browse_cmd exec .tools/exec_to_workspace 2 firefox -new-tab +alias browse_cmd exec .tools/exec_to_workspace 2 vimb alias browse colon browse_cmd bind b browse # B : open a new firefox tab and browse to the X clipboard selection -alias browse_selection exec .tools/exec_to_workspace 2 firefox -new-tab `ratpoison -c getsel` +alias browse_selection exec .tools/exec_to_workspace 2 vimb `ratpoison -c getsel` bind B browse_selection # Paste with X selection @@ -229,7 +214,7 @@ bind i insert_X_selection definekey top s-f exec firefox definekey top s-u exec uzbl-browser definekey top s-m exec /home/vasko/.tools/pentfocus -definekey top s-v exec vlc +definekey top s-v exec vimb definekey top s-g exec gvim #definekey top s-l exec libreoffice @@ -244,7 +229,7 @@ definekey top KP_Enter exec ~/Dropbox/speech/run-duplex.sh # Up alias volup exec amixer -q set Master 5+ && ratpoison -c "echo `$HOME/.tools/volind`" -defivhave`havhave`nekey top XF86AudioRaiseVolume volup +definekey top XF86AudioRaiseVolume volup definekey top s-Prior volup # Down -- cgit v1.2.3-54-g00ecf