diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-04-20 20:35:48 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-04-20 20:35:48 +0200 |
commit | 8a5017ddf806a6ad4d0d3c5908b9535cbfb85d8a (patch) | |
tree | 68594ff1c7be133732af1a4d19eb9f50b5e68719 | |
parent | 4dfea1e30491e2690d38f04c53eb3f5bbcd232ee (diff) |
Bindings: reorganize/remove unused bindings.
-rw-r--r-- | bindings.config | 110 | ||||
-rw-r--r-- | functions.config | 2 |
2 files changed, 42 insertions, 70 deletions
diff --git a/bindings.config b/bindings.config index 1b8907b..c824d9b 100644 --- a/bindings.config +++ b/bindings.config @@ -1,65 +1,66 @@ +########################### +# Keyboard/mouse bindings # +########################### +# +# /usr/include/X11/keysymdef.h for keys +# + +# main menus Mouse 1 R A Menu menu_RootOps Mouse 2 R A Menu menu_WindowOps -Key Escape A MC EscapeFunc +Key C A 4 Menu menu_fvwmConfig Root 10p 10p # Contextual menus -Mouse 2 TFS A Menu menu_WindowSendToPage -Mouse 3 TFSI A Menu menu_WindowOps -Key F10 A C Menu menu_WindowSendToPage Window 10p 10p Key D A 4 Menu menu_WindowSendToPage Window 10p 10p -Key F10 A S Menu menu_WindowOps Window 10p 10p Key R A 4 Menu menu_WindowOps Window 10p 10p -# Options menu -Mouse 3 R N Menu menu_fvwmConfig -Key F3 A M Menu menu_fvwmConfig Root 10p 10p -Key C A 4 Menu menu_fvwmConfig Root 10p 10p - -# FvwmConsole -Key F A 4 FvwmConsole -terminal $[fvwm_config_terminal] - # Close window Key F4 A M Close -Mouse 2 I A Close # Mouse bindings for windows Mouse 1 W M FvwmWindowMove Mouse (MPlayer) 1 W A FvwmWindowMove Mouse (FvwmIdent) 1 W A FvwmWindowMove Mouse (MPlayer) 3 W A FvwmWindowResize -#Mouse 1 T N FvwmWindowMove 100 100 Mouse 1 T N FvwmWindowTitleClick Mouse 1 I N Iconify off Mouse 4 T N WindowShade true Mouse 5 T N WindowShade false +Mouse 1 2 A FvwmWindowClose +Mouse 1 4 A FvwmWindowMaximize 100 100 +Mouse 1 6 A FvwmWindowIconify on +Mouse 2 2 A FvwmWindowDestroy +Mouse 2 4 A Maximize 100 0 +Mouse 3 4 A Maximize 0 100 +Mouse 1 1 A Menu menu_WindowOps + # Key bindings for windows Key M A 4 FvwmWindowMaximizeNoClick -Key I A 4 FvwmWindowIconify on -Key A A 4 Resize w+10 w+0 -Key A A S4 Resize w-10 w+0 Key H A 4 Resize w+0 w+10 Key H A S4 Resize w+0 w-10 Key G A 4 Resize w+10 w+10 Key G A S4 Resize w-10 w-10 Key S A 4 Pick Resize warptoborder -Key Return I N Iconify off Key Down I N Next (CurrentPage, Iconified) Focus Key Up I N Prev (CurrentPage, Iconified) Focus -# Launch preferred applications -Key T A 4 Exec $[fvwm_config_terminal] -Key V A 4 Exec $[fvwm_config_terminal] -e alsamixer +# Move/resize windows with keys +Key Down WFS 4M AnimatedMove w+0 w+5 Warp +Key Up WFS 4M AnimatedMove w+0p w-5 Warp +Key Left WFS 4M AnimatedMove w-5 w+0 Warp +Key Right WFS 4M AnimatedMove w+5 w+0 Warp -# Escape and tab bindings: -# ctrl+esc: process window -# alt+tab: tipical behaviour -# ctrl+alt+tab: cycle wins in current page -# win+tab: idem -Key Escape A C Exec $[fvwm_config_terminal] -e htop +Key Up WFS MC4 Pick AnimatedMove screen c keep 0p +Key Left WFS MC4 Pick AnimatedMove screen c 0p keep +Key Right WFS MC4 Pick AnimatedMove screen c -128p keep +Key Down WFS MC4 Pick AnimatedMove screen c keep -0p + + +# Switching between windows Key Tab A M WindowList Root c c currentDesk, \ NoGeometry, NoCurrentDeskTitle, CurrentAtEnd, \ - NoNumInDeskTitle, NoHotKeys + NoNumInDeskTitle Key Tab A 4 Next (CurrentPage, !Gkrellm, !FvwmPager) next_window_in_page Key Tab A CM Next (CurrentPage, !Gkrellm, !FvwmPager) next_window_in_page @@ -76,13 +77,6 @@ Silent Mouse 9 W N FvwmWindowResize # Wheel over the root to go page up/down Mouse 4 R A Scroll 0 -100 Mouse 5 R A Scroll 0 100 -# If you have a second wheel, you know what this means -Silent Mouse 6 R A Scroll -100 0 -Silent Mouse 7 R A Scroll 100 0 - -# WM based fullscreen feature -Key Return A 4 Fullscreen - # Move across pages with win or ctrl+alt + arrows Key Left A 4 WindowId root 1 WarpToWindow 10 50 @@ -91,42 +85,20 @@ Key Up A 4 GotoPage 0p -1p Key Down A 4 GotoPage 0p +1p Piperead 'for i in `seq 0 $(($pages-1))`; do j=$(($i+1)); echo Key $j A 4 GotoPage 0 $i; done' -Key Left A CM WindowId root 1 WarpToWindow 10 50 -Key Right A CM WindowId root 0 WarpToWindow 90 50 -Key Up A CM GotoPage 0p -1p -Key Down A CM GotoPage 0p +1p - -# Move/resize windows with keys -# ALT+WIN+<arrows>: Move windows a bit -# CTRL+WIN+ALT+<arrows>: Move windows to the screen border -# or center it (Home key) -# CTRL+WIN+SHIFT+<arrows>: Move windows to that next page -Key Down WFS 4M AnimatedMove w+0 w+5 Warp -Key Up WFS 4M AnimatedMove w+0p w-5 Warp -Key Left WFS 4M AnimatedMove w-5 w+0 Warp -Key Right WFS 4M AnimatedMove w+5 w+0 Warp - -Key Up WFS MC4 Pick AnimatedMove screen c keep 0p -Key Left WFS MC4 Pick AnimatedMove screen c 0p keep -Key Right WFS MC4 Pick AnimatedMove screen c -128p keep -Key Down WFS MC4 Pick AnimatedMove screen c keep -0p - -Key Down WFS SC4 MoveToPage +0p +1p -Key Up WFS SC4 MoveToPage +0p -1p -Key Left WFS SC4 MoveToPage -1p +0p -Key Right WFS SC4 MoveToPage +1p +0p +#################### +# Launching apps # +#################### -# /usr/include/X11/keysymdef.h for keys +# FvwmConsole +Key F A 4 FvwmConsole -terminal $[fvwm_config_terminal] -Key Space A 4 Exec scrot ~/quickshot-$(date +%Y%m%d_%H%M%S).jpg +# Launch preferred applications +Key T A 4 Exec $[fvwm_config_terminal] +Key V A 4 Exec $[fvwm_config_terminal] -e alsamixer +Key Escape A C Exec $[fvwm_config_terminal] -e htop -Mouse 1 2 A FvwmWindowClose -Mouse 1 4 A FvwmWindowMaximize 100 100 -Mouse 1 6 A FvwmWindowIconify on -Mouse 2 2 A FvwmWindowDestroy -Mouse 2 4 A Maximize 100 0 -Mouse 3 4 A Maximize 0 100 -Mouse 1 1 A Menu menu_WindowOps +# screenshot +Key Space A 4 Exec import -window root $[HOME]/screen-$(date +%Y%m%d_%H%M%S).png #wallpaper Key W A 4 RandomWall diff --git a/functions.config b/functions.config index 0188258..b9e3111 100644 --- a/functions.config +++ b/functions.config @@ -147,7 +147,7 @@ AddToFunc ChangeFocusPolicy DestroyFunc Fullscreen AddToFunc Fullscreen + I ThisWindow (Maximized) Fullscreen-Stop -+ I TestRc (False) ThisWindow (!Maximized) Fullscreen-Start ++ I TestRc (NoMatch) ThisWindow (!Maximized) Fullscreen-Start DestroyFunc Fullscreen-Start AddToFunc Fullscreen-Start |