summaryrefslogtreecommitdiff
path: root/bindings.config
blob: 97053d732ba8f8c3ed576f8fec10ebbacff0df76 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
###########################
# 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 C A 4 Menu menu_fvwmConfig Root 10p 10p

# Contextual menus
Key D A 4 Menu menu_WindowSendToPage Window 10p 10p
Key R A 4 Menu menu_WindowOps Window 10p 10p

# Close window
Key F4 A M 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 FvwmWindowTitleClick
Mouse 4 T N WindowShade true
Mouse 5 T N WindowShade false

# click on window title
Mouse 1 2 A FvwmWindowClose
Mouse 1 4 A FvwmWindowMaximize 100 100
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 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

# 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

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

# Move windows across pages
Key plus A 4 MoveToPage 0p, +1w
Key KP_Add A 4 MoveToPage 0p, +1w
Key minus A 4 MoveToPage 0p, -1w
Key KP_Subtract A 4 MoveToPage 0p, -1w


# Switching between windows
Key Tab A M WindowList Root c c currentDesk, \
	NoGeometry, NoCurrentDeskTitle, CurrentAtEnd, \
	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

# Do something interesting with the extra mouse buttons
Silent Mouse 6 T N Resize br w-10 w-10
Silent Mouse 7 T N Resize br w+10 w+10
Silent Mouse 8 W N FvwmWindowMove
Silent Mouse 9 W N FvwmWindowResize

# Move across pages with win or ctrl+alt + arrows
Key Left A 4 WindowId root 1 WarpToWindow 10 50
Key Right A 4 WindowId root 0 WarpToWindow 90 50
Key   Up A 4 GotoPage  0p -1p
Key   K  A 4 GotoPage 0p -1p
Mouse 4  A 4 GotoPage 0p -1p
Key   Down A 4 GotoPage  0p +1p
Key   J    A 4 GotoPage 0p +1p
Mouse 5    A 4 GotoPage 0p +1p
Piperead 'for i in `seq 0 8`; do j=$(($i+1)); echo Key $j A 4 GotoPage 0 $i; done'

# Kill
Test (x xkill) Key Escape A M Exec xkill

# Restart FVWM
Key Delete A CM Restart

# Lock screen
Key L A 4 Exec $[infostore.lock]

####################
# Launching apps   #
####################

# FvwmConsole
Key F A 4 FvwmConsole -terminal $[infostore.terminal]

# Launch preferred applications
Key T A 4 Exec exec $[infostore.terminal]
Key V A 4 Exec exec $[infostore.terminal] -e alsamixer
Key Escape A 4 Exec exec $[infostore.terminal] -e htop

# screenshot
Key Space A 4 Exec exec import -window root $[HOME]/screen-$(date +%Y%m%d_%H%M%S).png

#wallpaper
Key W A 4 RandomWall

#MPD control
Key grave A 4 MPDControl toggle
Key B     A 4 MPDControl next
Key Z     A 4 MPDControl prev
Key P     A 4 MPDControl play
Key Page_Up A 4 MPDControl volume +1
Key Page_Down A 4 MPDControl volume -1