From dcb0b6ded5078d5fe421f62fb57f549b95a2f859 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 9 Jun 2020 17:58:17 -0400 Subject: [PATCH] cwm: Use cwm over dwm on OpenBSD It's native, part of the base install, and feels right. What more could you ask for? It's not tiling, but I haven't been using tiling as much these days. I use dwm for speed more than tiling. If I can easily get a L/R split and fullscreen items with the keyboard, I'm pretty happy. --- X11/xinitrc | 2 +- cwm/cwmrc | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 cwm/cwmrc diff --git a/X11/xinitrc b/X11/xinitrc index 4e4d80c..65e2f4a 100644 --- a/X11/xinitrc +++ b/X11/xinitrc @@ -20,7 +20,7 @@ if [ $(uname) = "OpenBSD" ]; then export LC_CTYPE="en_US.UTF-8" # xenodm handles ssh-agent for us - exec dwm + exec cwm else ssh-agent dwm fi diff --git a/cwm/cwmrc b/cwm/cwmrc new file mode 100644 index 0000000..fe43693 --- /dev/null +++ b/cwm/cwmrc @@ -0,0 +1,32 @@ +# Commands (for menu-cmd) +command firefox firefox +command term /usr/local/bin/st +command lock /usr/local/bin/slock +command top "/usr/local/bin/st -e top" +command htop "/usr/local/bin/st -e htop" +command mutt "/usr/local/bin/st -e mutt" + +# Global keys +bind-key 4S-e quit +bind-key 4S-r restart + +# App spawns +bind-key 4S-Return terminal +bind-key 4-w firefox +bind-key 4-p menu-cmd +bind-key 4S-p menu-exec +bind-key 4S-w menu-window +bind-key 4S-g menu-group +bind-key 4-semicolon lock + +# Window manipulation +bind-key 4-Return window-fullscreen +bind-key 4-j window-cycle +bind-key 4-k window-rcycle +bind-key 4S-j group-cycle +bind-key 4S-k group-rcycle +bind-key 4S-q window-close + +# Mouse it +bind-mouse 4-1 window-move +bind-mouse 4-3 window-resize -- libgit2 0.28.4