aboutsummaryrefslogtreecommitdiffstats
path: root/.cwmrc
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-17 10:40:11 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-17 10:40:11 -0700
commitea127689e0ae2d39b49004be605e541ff80e2621 (patch)
treeabbe79e5e37792bd8ebea8f9ac788ff5b8aed704 /.cwmrc
downloadopenbsd-dotfiles-ea127689e0ae2d39b49004be605e541ff80e2621.zip
Initial Commit
Diffstat (limited to '.cwmrc')
-rw-r--r--.cwmrc104
1 files changed, 104 insertions, 0 deletions
diff --git a/.cwmrc b/.cwmrc
new file mode 100644
index 0000000..a546cab
--- /dev/null
+++ b/.cwmrc
@@ -0,0 +1,104 @@
+#
+# Appearance
+#
+fontname "monospace:pixelsize=14:bold"
+color menubg "#32302f"
+color menufg "#ebdbb2"
+color font "#ebdbb2"
+color selffont "#32302f"
+gap 26 2 2 2
+
+#
+# Application Commands
+#
+command browser firefox
+command terminal xterm
+command top "xterm -e top"
+
+#
+# Window Behavior
+#
+sticky yes
+snapdist 10
+moveamount 5
+
+#
+# Unbind all defaults
+#
+unbind-key all
+unbind-mouse all
+
+#
+# Key Bindings
+#
+# bind-key:
+# - 4 = super
+# - M = alt
+# - C = ctrl
+# - S = shift
+#
+# bind-mouse:
+# - 1 = left
+# - 2 = middle
+# - 3 = right
+#
+
+# reload cwm (e.g. refresh config)
+bind-key 4S-r restart
+
+# window management
+bind-key 4-q window-delete
+bind-key 4S-q quit
+bind-key 4-f fullscreen
+bind-key 4S-space window-stick
+bind-key 4-m window-maximize
+
+# tiling/snapping
+bind-key 4-h window-snap-left
+bind-key 4-j window-snap-down
+bind-key 4-k window-snap-up
+bind-key 4-l window-snap-right
+bind-key 4-v window-vtile
+bind-key 4-b window-htile
+
+# focus movement
+bind-key 4-Tab window-cycle
+bind-key 4S-Tab window-rcycle
+
+# go to workspace
+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 4-6 group-only-6
+bind-key 4-7 group-only-7
+bind-key 4-8 group-only-8
+bind-key 4-9 group-only-9
+
+# move window to workspace
+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-6 window-movetogroup-6
+bind-key 4S-7 window-movetogroup-7
+bind-key 4S-8 window-movetogroup-8
+bind-key 4S-9 window-movetogroup-9
+
+# applications
+bind-key 4-Return terminal
+bind-key 4-a menu-cmd
+bind-key 4-d menu-exec
+bind-key 4-w menu-window
+bind-key 4S-s menu-ssh
+
+# window hiding/unhiding
+bind-key 4-x window-hide
+bind-key 4S-x window-unhide
+
+# mouse
+bind-mouse 4-1 window-move
+bind-mouse 4-3 window-resize
+bind-mouse 4S-3 window-lower