dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit dcb0b6ded5078d5fe421f62fb57f549b95a2f859 (patch)
parent 5de737e6c9efffffa4ea64b0a73c8bc303b1bd41
Author: Alex Karle <alex@karle.co>
Date:   Tue,  9 Jun 2020 17:58:17 -0400

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.

Diffstat:
MX11/xinitrc | 2+-
Acwm/cwmrc | 32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletion(-)

diff --git 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 @@ -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