-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathzy-keys-mouse-desktop.fvwm2rc
executable file
·83 lines (64 loc) · 2.92 KB
/
zy-keys-mouse-desktop.fvwm2rc
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
# Time-stamp: <zy-keys-mouse-desktop.fvwm2rc, 09-17-2009 16:59 Ziyu Zhang >
# =====================Key-Binding=================================
#Key Keyname Context Modifiers Function
# Key Tab A M WindowList Root c c CurrentDesk, NoGeometry, CurrentAtEnd, IconifiedAtEnd
# To remove the window list binding, use this:
Key Tab A M -
# ==============
# Print
# ==============
Key Print A N Function toggle-emacs-hot_program
# Key Print A N Function toggle-emacs-fvwm_pdf_viewer
# Key Print A N Function toggle-emacs-acroread
# Key Print A M Function toggle-desk
# Key Print A 3 Restart fvwm2
Key Print A C ThisWindow (!FvwmTaskBar, !FvwmButtons !FvwmPager) Maximize 100 -28p
Style fvwm-run-dialog FPGrabFocus, FPReleaseFocus
Key Print A 4 Exec exec sh $zy/linux/x/fvwm/run-dialog.sh
# + I Test (EnvMatch emacs_flag 1) Function switch-window "emacs-snapshot"
# ==============
# Scroll_Lock
# ==============
Key Scroll_Lock A N Function FuncFocusNextWindow
Key Scroll_Lock A 3 Restart fvwm2
Key Scroll_Lock A 4 Function toggle-FvwmConsole
# ==============
# Pause
# ==============
Key Pause A N ThisWindow (!Iconic,!FvwmTaskBar, !FvwmButtons, !FvwmPager) Close
Key Pause A C ThisWindow (!Iconic,!FvwmTaskBar, !FvwmButtons, !FvwmPager) Destroy
# , !emacs
# Key Pause A C PipeRead "pgrep -u $(whoami) firefox | xargs kill -9 "
Key Pause A 3 PipeRead "reboot"
Key Pause A 4 PipeRead "shutdown -h 0"
# Key Print A 3 Test (!EnvIsSet fvwm_host) Exec exec firefox
# I Exec exec echo "fvwm-root --retain-pixmap $[fvwm_img]/wallpaper/$0" > $[fvwm_home]/cfg/background.cfg
# ==============
# Volume
# ==============
Key KP_Divide A 3 Piperead "amixer -c 0 -- sset Master playback 2dB+"
Key KP_Subtract A 3 Piperead "amixer -c 0 -- sset Master playback 2dB-"
Key KP-Multiply A 3 Piperead "amixer -q set Master toggle"
Key KP_Up A A Direction North (CurrentPage, Iconic) Focus
Key KP_Down A A Direction South (CurrentPage, Iconic) Focus
Key KP_Right A A Direction East (CurrentPage, Iconic) Focus
Key KP_Left A A Direction West (CurrentPage, Iconic) Focus
# Test (EnvMatch zy_hostname "desktop") GotoDesk -1
# ==================================Mouse======================================
# Button Context Modifier Function
#Mouse on Root
Mouse 1 R N StrokeFunc DrawMotion
Mouse 3 R N WindowList
#Mouse on Window
# +--------------------------------------------------------------------------+
# | 1 3 5 7 9 Title 0 8 6 4 2 |
# |--------------------------------------------------------------------------|
Mouse 1 1 A Maximize 100 -30p
Mouse 1 3 A Lower
Mouse 1 5 A Close
# Mouse 1 T A Move-or-Raise
# Mouse 3 T A Menu FvwmWindowOpsMenu
Mouse 3 T A Menu TaskBar-Window-Ops
Mouse 1 6 A Destroy
Mouse 1 4 A Iconify
Mouse 1 2 A Maximize 100 -30p