summaryrefslogtreecommitdiffstats
path: root/cwmrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cwmrc57
1 files changed, 31 insertions, 26 deletions
diff --git a/cwmrc b/cwmrc
index 6bf427d..714e3b0 100644
--- a/cwmrc
+++ b/cwmrc
@@ -1,33 +1,14 @@
-#sticky yes
-#xrdb -merge ~/.Xresources
-#color activeborder "#ffb3ff"
-#gap 0 0 24 0
-#borderwidth 3
-#bind-key 4-Return terminal
-#bind-key 4-d menu-exec
-#bind-key S4-q restart
-#bind-key S4-f window-fullscreen
-#bind-key 4-1 group-only-1
-#bind-key 4-2 group-only-2
-#bind-key 4-3 group-only-3
-#bind-key 4-4 group-only-4
-#bind-key 4-5 group-only-5
-#bind-key 4S-1 window-movetogroup-1
-#bind-key 4S-2 window-movetogroup-2
-#bind-key 4S-3 window-movetogroup-3
-#bind-key 4S-4 window-movetogroup-4
-#bind-key 4S-5 window-movetogroup-5
-#bind-key 4S-k window-htile
-#bind-key 4S-j window-vtile
-#command qutebrowser qutebrowser
-#command top top
-
# from https://www.c0ffee.net/blog/openbsd-on-a-laptop/
# automatically add new windows to the current group
sticky yes
+
+color activeborder #fccfcf
+borderwidth 1
+
# snap windows to edges at 4 pixels distance
snapdist 4
-# leave a gap for xclock
+
+# gaps top bottom left? right?
gap 0 0 0 0
# set font for menus
@@ -44,24 +25,30 @@ unbind-key all
# mod + enter = new xterm
bind-key 4-Return terminal
+
# ctrl + alt + L = lock screen (xlock)
bind-key CM-l lock
+
# mod + backspace = hide window
bind-key 4-BackSpace window-hide
# mod + down arrow = lower window's focus
bind-key 4-Down window-lower
+
# mod + up arrow = raise window's focus
bind-key 4-Up window-raise
+
# mod/alt + tab = cycle through current windows
bind-key 4-Tab window-cycle
bind-key M-Tab window-cycle
+
# mod/alt + shift + tab = same thing in reverse
bind-key 4S-Tab window-rcycle
bind-key MS-Tab window-rcycle
-# mod + w = kill window
+
#bind-key 4-w window-delete
bind-key 4S-q window-delete
+
# set a window's label
bind-key 4-n window-menu-label
@@ -77,6 +64,7 @@ bind-key 4-7 group-only-7
bind-key 4-8 group-only-8
bind-key 4-9 group-only-9
+
# mod + shift +$N = move window to group $N
bind-key 4S-1 window-movetogroup-1
bind-key 4S-2 window-movetogroup-2
@@ -96,20 +84,27 @@ bind-key 4-g window-group
# mod + right arrow = cycle through the window groups
# (you can think of this as switching to the next virtual desktop)
bind-key 4-Right group-cycle
+
# mod + left arrow = same thing in reverse
bind-key 4-Left group-rcycle
+
# mod + S = stick current window to be visible in all groups
bind-key 4-s window-stick
# mod + F = make current window fullscreen
bind-key 4-f window-fullscreen
+
# mod + M = maximize current window
bind-key 4-m window-maximize
+
# mod + equals = maximize window in vertical direction only
bind-key 4-equal window-vmaximize
+
# mod + shift + equals = maximize window in horizontal direction only
bind-key 4S-equal window-hmaximize
+moveamount 10
+
# mod + H,J,K,L = move window left, down, up, right 10 pixels
bind-key 4-h window-move-left-big
bind-key 4-j window-move-down-big
@@ -122,17 +117,22 @@ bind-key 4S-j window-resize-down-big
bind-key 4S-k window-resize-up-big
bind-key 4S-l window-resize-right-big
+
# mod + V = tile windows vertically, current window to the left
bind-key 4-v window-vtile
+
# mod + V = tile windows horizontally, current window to the top
bind-key 4-c window-htile
# mod + / = show popup menu of current windows
bind-key 4-slash menu-window
+
# mod + shift + d = show popup menu to run a command (configured below)
bind-key 4S-d menu-cmd
+
# mod + ? = show popup menu to run an arbitrary command
bind-key 4-question menu-exec
+
# mod + . = show popup menu of known ssh hosts to connect to
bind-key 4-period menu-ssh
@@ -150,15 +150,20 @@ unbind-mouse CMS-3
# mod + left click drag = move window
bind-mouse 4-1 window-move
+
# mod + right click drag = resize window
bind-mouse 4-3 window-resize
+
# mod + middle click = lower window's focus
bind-mouse 4-2 window-lower
+
# mod + shift + middle click = hide window
bind-mouse 4S-2 window-hide
+
# these commands will appear in the command menu
command xterm xterm
+
#command chrome "chrome --enable-unveil"
command chrome "chrome --enable-unveil"
command xclock xclock