aboutsummaryrefslogtreecommitdiff
path: root/dot_cwmrc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_cwmrc.tmpl32
1 files changed, 24 insertions, 8 deletions
diff --git a/dot_cwmrc.tmpl b/dot_cwmrc.tmpl
index 2d0ea5b..7f07727 100644
--- a/dot_cwmrc.tmpl
+++ b/dot_cwmrc.tmpl
@@ -1,11 +1,16 @@
+autogroup 0 "xconsole", "XConsole"
autogroup 1 "URxvt"
autogroup 1 "XTerm"
autogroup 2 "Mozilla Firefox"
+autogroup 2 "qutebrowser"
+autogroup 6 "pavucontrol", "Pavucontrol"
# assign windows to current group
sticky yes
-command term {{ if (eq .chezmoi.os "openbsd" ) -}}xterm{{ else }}urxvtc{{ end }}
+command term {{ if (eq .chezmoi.os "openbsd" "darwin") -}}xterm{{ else }}urxvtc{{ end }}
+command lock {{ if (eq .chezmoi.os "openbsd") -}}"xlock -dpmsoff 1"{{ else }}"slock xset dpms force off"{{ end }}
+command dpmsoff "xset dpms force off"
color activeborder "#ff7701"
@@ -31,12 +36,13 @@ bind-key 4-l lock
# F: menu-window Launch window search menu.
# D: M-slash Search for windows.
-bind-key 4-slash menu-search
+bind-key 4-slash menu-window
# F: menu-window-hidden Launch hidden window search menu.
# F: menu-cmd Launch application search menu.
# D: C-slash Search for applications.
+bind-key 4-c menu-cmd
# F: menu-group Launch group search menu.
bind-key 4-g menu-group
@@ -83,7 +89,7 @@ bind-key 4-plus group-only-9
# F: group-toggle-all Toggle visibility of all groups.
# D: CM-a Toggle visibility of all groups.
-bind-key C4S-a group-toggle-all
+bind-key 4-a group-toggle-all
# F: window-group Toggle group membership of current window.
# D: CM-g Toggle group membership of current window.
@@ -115,11 +121,14 @@ bind-key 4-Tab window-cycle
# F: window-rcycle Reverse cycle through windows.
# D: MS-Tab Reverse cycle through currently visible windows.
-bind-key 4S-Tab window-cycle
+bind-key 4S-Tab window-rcycle
# F: window-cycle-ingroup Forward cycle through windows in current group.
# F: window-rcycle-ingroup Reverse cycle through windows in current group.
-# F: window-close Close current window.
+bind-key C4-Tab window-cycle-ingroup
+bind-key C4S-Tab window-rcycle-ingroup
+
+# F: window-close Close current window.
# D: CM-x Close current window.
bind-key 4S-j window-close
@@ -137,8 +146,9 @@ bind-key 4-Down window-lower
# D: M-Up Raise current window.
bind-key 4-Up window-raise
-# F: window-menu-label Label current window.
-# D: CM-n Label current window.
+# F: window-menu-label Label current window.
+# D: CM-n Label current window.
+bind-key C4-l window-menu-label
# F: window-freeze Freeze current window geometry.
# D: CMS-f Toggle freezing geometry of current window.
@@ -154,21 +164,24 @@ bind-key 4-s window-fullscreen
# F: window-maximize Maximize current window (gap + border honored).
# D: CM-m Toggle maximization of current window.
+bind-key C4-m window-maximize
# F: window-vmaximize Vertically maximize current window (gap + border
# F: honored).
# D: CM-equal Toggle vertical maximization of current window.
+bind-key C4-s window-vmaximize
# F: window-hmaximize Horizontally maximize current window (gap +
# F: border honored).
# D: CMS-equal Toggle horizontal maximization of current window.
+bind-key M4-s window-hmaximize
# F: window-htile Current window is placed at the top of the
# F: screen, maximized horizontally and resized to
# F: htile (default half) of the vertical screen
# F: space. Other windows in its group share
# F: remaining screen space.
-bind-key 4S-space window-htile
+bind-key 4M-space window-htile
# F: window-vtile Current window is placed on the left of the
# F: screen, maximized vertically and resized to
@@ -224,3 +237,6 @@ bind-key 4S-h window-move-down-big
bind-key 4S-t window-move-up-big
bind-key 4S-d window-move-left-big
bind-key 4S-n window-move-right-big
+
+bind-key 4-F5 "xset dpms force off"
+bind-key 4-F6 icd