-
Notifications
You must be signed in to change notification settings - Fork 43
/
.cwmrc
79 lines (69 loc) · 2.41 KB
/
.cwmrc
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
# Start from scratch.
unbind-key all
# Restore a few default bindings.
bind-key M-Down window-lower
bind-key M-Up window-raise
bind-key CM-n window-menu-label
bind-key M-Tab window-cycle-ingroup
bind-key MS-Tab window-rcycle-ingroup
bind-key CM-m window-maximize
bind-key CM-x window-delete
bind-key CM-s window-stick
bind-key CMS-r restart
bind-key CMS-q quit
# Media keys.
bind-key XF86AudioLowerVolume "/usr/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%"
bind-key XF86AudioRaiseVolume "/usr/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%"
bind-key XF86AudioMute "/usr/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle"
bind-key XF86MonBrightnessUp "/bin/xbacklight -inc 10"
bind-key XF86MonBrightnessDown "/bin/xbacklight -dec 10"
bind-key CM-r "/bin/xrandr --auto"
bind-key CM-q "xscreensaver-command -lock"
bind-key C-space "dswitcher"
bind-key M-space "dmenu_run"
# For keyboards without media keys:
bind-key CMS-Up "/bin/xdotool key --clearmodifiers XF86AudioRaiseVolume"
bind-key CMS-Down "/bin/xdotool key --clearmodifiers XF86AudioLowerVolume"
bind-key CMS-Return "/bin/xdotool key --clearmodifiers XF86AudioMute"
bind-key CMS-Right "/bin/xdotool key --clearmodifiers XF86AudioNext"
bind-key CMS-Left "/bin/xdotool key --clearmodifiers XF86AudioPrev"
bind-key CMS-space "/bin/xdotool key --clearmodifiers XF86AudioPlay"
# Application keys.
bind-key CM-t "uxterm"
bind-key CMS-t "uxterm -fs 16 -bg white -fg black"
# Workspace keys.
bind-key M-F1 group-only-1
bind-key M-F2 group-only-2
bind-key M-F3 group-only-3
bind-key M-F4 group-only-4
bind-key CMS-F1 window-movetogroup-1
bind-key CMS-F2 window-movetogroup-2
bind-key CMS-F3 window-movetogroup-3
bind-key CMS-F4 window-movetogroup-4
# Mouse keys.
unbind-mouse all # Remove the click menus
bind-mouse M-1 window-move
bind-mouse M-3 window-resize
bind-mouse "1" menu-window
bind-mouse "3" menu-cmd
# Layout settings.
fontname "Monaco:pixelsize=12"
snapdist 20
gap 20 0 0 0 # Leave space for status bar
# Application menu
command uxterm uxterm
command firefox firefox
command chrome google-chrome
command qutebrowser qutebrowser
command gimp gimp
command inkscape inkscape
# Predefined groups (get from xprop).
autogroup 1 "uxterm"
autogroup 2 "Navigator,Firefox,google-chrome,Google-chrome,qutebrowser"
# Inherit current selected group.
sticky yes
# Colors.
color activeborder darkblue
color inactiveborder lightgrey
color groupborder red
color ungroupborder lightred