.cwmrc
2021-12-13 · 749 words · 4 min
TagsĀ :  OpenBSD Setup

:~$ cat .cwmrc

stick                   yes
snapdist                4
fontname                "Hack:size=12"
gap                     1 0 0 0
borderwidth             1 

color inactiveborder    "#282A36"
color activeborder      "#F8F8F2"
color groupborder       "#2E3440"
#color urgencyborder    "#3d9751"

color selfont           "#ECEFF4"
color font              "#D8DEE9"
color menufg            "#3B4252"
color menubg            "#2E3440"

htile                   60
vtile                   60

snapdist                5
unbind-key              all

# KEYBINDINGS #
# 4 = win     #
# S = shift   #
# C = crtl    #
# M = alt     #
# 5 = altgr   #

bind-key 4-Return 'xterm -geometry 80x30'
bind-key 4-Tab window-cycle
bind-key 4-BackSpace window-hide
bind-key 4-b 'chrome --enable-pledge --enable-unveil --incognito --temp-profile --no-default-browser-check --no-first-run' 
bind-key 4-p ~/.config/scripts/screenshot.sh
bind-key 4-t ~/.config/scripts/task.sh
bind-key 4-s 'rofi -show run'

bind-key CM-l lock
bind-key CM-r restart 

# 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

# kill window
bind-key 4-w window-delete
# set a window's label
bind-key 4-n window-menu-label

# mod + $N = show only windows for group $N
# (you can think of this as switching to virtual desktop $N)
#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

# mod + shift +$N = move window to group $N
#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

# toggle showing windows from all groups
#bind-key 4-a group-toggle-all
# toggle current window's group membership
#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

bind-key 4-f window-fullscreen
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

# 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
bind-key 4-k window-move-up-big
bind-key 4-l window-move-right-big

# mod + shift + H,J,K,L = resize window left, down, up, right by 10 pixels
bind-key 4S-h window-resize-left-big
bind-key 4S-j window-resize-down-big
bind-key 4S-k window-resize-up-big
bind-key 4S-l window-resize-right-big

bind-key 4-v window-vtile
bind-key 4-c window-htile

# mod + / = show popup menu of current windows
# bind-key 4-slash menu-window
# mod + d = show popup menu to run a command (configured below)

bind-key 4-d menu-cmd
bind-key 4-question menu-exec

# mod + . = show popup menu of known ssh hosts to connect to
# bind-key 4-period menu-ssh

# mod + shift + R = restart cwm, reloading configuration
bind-key 4S-r restart
# mod + shift + E = log out
bind-key 4S-e quit

# unbind default mouse actions
unbind-mouse M-1
unbind-mouse CM-1
unbind-mouse M-2
unbind-mouse M-3
unbind-mouse CMS-3

# left click = move window
bind-mouse 4-1 window-move
# right click = resize window
bind-mouse 4-3 window-resize
# middle click = lower window's focus
#bind-mouse 4-2 window-lower
# shift + middle click = hide window
#bind-mouse 4S-2 window-hide

command ncmpcpp         "xterm -e ncmpcpp"
command abook           "xterm -e abook"
command chromium  			"chrome --enable-pledge --enable-unveil --incognito --temp-profile --no-default-browser-check --no-first-run"
command dino            "dino"
command tor-browser 		"tor-browser"
command mumble          "mumble"
command gimp 						"gimp"
command zint            "zint-qt"
command pdfarranger     "pdfarranger"
command office 					"libreoffice"

# ignore these windows when tiling/cycling

tech · about · visual · contact · home