obsd-bkp/dotfiles/cwm/dot-cwmrc

181 lines
4.8 KiB
Plaintext

# Defaults
sticky yes
snapdist 4
gap 27 0 0 0
moveamount 3
vtile 50
# set font for menus
fontname "fixed:pixelsize=13:style=semicondensed"
# remove all default keybindings
unbind-key all
# Layout
borderwidth 1
color activeborder yellow
color inactiveborder orange
color urgencyborder red
color font yellow
color menubg black
color menufg yellow
# KEYBINDINGS:
# 4 = mod (windows key)
# S = shift
# C = control
# M = meta (alt)
# mod + enter = new terminal
bind-key 4-Return "terminator --geometry 480x325"
#bind-key 4-Return "/home/b2r1s8/.local/bin/term"
# mod + b = browser
bind-key 4-b firefox
# mod+ E = Emacs
bind-key 4-e "emacs"
# ctrl + alt + L = lock screen (xlock)
bind-key CM-l lock
# mod + backspace = hide window
bind-key 4-BackSpace window-hide
# mod + prtsc = screenshot
bind-key 4-Print /home/b2r1s8/.local/bin/printscreen
# mod + M = mocp
bind-key 4-m /home/b2r1s8/.local/bin/mpm
## mocp binds
# Toggle play and pause
bind-key 4-p "mocp -G"
# Toggle shuffle
bind-key 4S-p "mocp -t s"
# Toggle auto next
bind-key 4M-p "mocp -t n"
# Toggle repeat
bind-key 4SM-p "mocp -t r"
# 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
# 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
# mod + A = toggle showing windows from all groups
bind-key 4-a group-toggle-all
# mod + G = 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
# mod + shift + F = make current window fullscreen
bind-key 4S-f window-fullscreen
# mod + f = maximize current window
bind-key 4-f 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
bind-key 4-j window-move-down
bind-key 4-k window-move-up
bind-key 4-l window-move-right
# mod + shift + H,J,K,L = resize window left, down, up, right by 10 pixels
bind-key 4S-h window-resize-left
bind-key 4S-j window-resize-down
bind-key 4S-k window-resize-up
bind-key 4S-l window-resize-right
# mod + V = tile windows vertically, current window to the left
bind-key 4-v window-vtile
# mod + C = 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 + ? = show popup menu to run a command (configured below)
bind-key 4-question menu-cmd
# mod + d = show popup menu to run an arbitrary command
bind-key 4-d 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
# 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 "Terminal" urxvtc
command Browser "firefox"
command xclock "xclock -d -update 1 -render"
command xcalc xcalc
# ignore these windows when tiling/cycling
ignore xclock
autogroup 0 xclock
ignore lemonbar
autogroup 0 lemonbar
ignore termbar
autogroup 0 termbar
ignore dunst
autogroup 0 dunst
ignore xmessage
autogroup 0 xmessage