aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharlène <julianaito@posteo.jp>2019-11-24 18:49:34 +0100
committerCharlène <julianaito@posteo.jp>2019-11-24 18:49:34 +0100
commit293b8e222480c85b2e581a986e17a5aaf00956dd (patch)
treea79864d61da9cfe6aa9bafabc8aab6e32ac0ca19
parenteb3922c080f4b6b6df29ba962a6f7a42df76c18b (diff)
downloaddotfiles-293b8e222480c85b2e581a986e17a5aaf00956dd.tar.gz
+.exrc, new spectrwm conf, .xsession fallback when spectrwm misbehave
-rw-r--r--.exrc10
-rw-r--r--.spectrwm.conf69
-rw-r--r--.spectrwm_fr.conf2
-rwxr-xr-x.xsession3
4 files changed, 48 insertions, 36 deletions
diff --git a/.exrc b/.exrc
new file mode 100644
index 0000000..d33c64c
--- /dev/null
+++ b/.exrc
@@ -0,0 +1,10 @@
+" line numbering
+set nu
+" show ruler
+set ru
+" show current mode
+set showmode
+" use extended regexes
+set extended
+" ignore case during searches
+set ic
diff --git a/.spectrwm.conf b/.spectrwm.conf
index 0f29009..63bd3e6 100644
--- a/.spectrwm.conf
+++ b/.spectrwm.conf
@@ -1,19 +1,19 @@
-
-workspace_limit =4
+#
+workspace_limit =5
focus_mode = follow
-
-# Window Decoration
+#
+## Window Decoration
border_width = 1
color_focus = lightpink
color_focus_maximized = lightpink
color_unfocus = rgb:15/01/14
color_unfocus_maximized = rgb:15/01/14
tile_gap = 0
-
-# Remove window border when bar is disabled and there is only one window in workspace
+#
+## Remove window border when bar is disabled and there is only one window in workspace
disable_border = 1
-
-# Bar Settings
+#
+## Bar Settings
bar_enabled = 1
bar_border_width = 0
bar_color = rgb:15/01/14,lightpink
@@ -31,58 +31,59 @@ window_instance_enabled = 0
window_name_enabled = 0
verbose_layout = 1
urgent_enabled = 1
-
-# Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0
+#
+## Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0
dialog_ratio = 0.6
-
-# Set workspace name at start
+#
+## Set workspace name at start
name = ws[1]:term
name = ws[2]:www
name = ws[3]:misc
name = ws[4]:buf
-
-# Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2)
+name = ws[5]:bulk
+#
+## Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2)
modkey = Mod4
-
-# This allows you to include pre-defined key bindings for your keyboard layout.
+#
+## This allows you to include pre-defined key bindings for your keyboard layout.
keyboard_mapping = ~/.spectrwm_fr.conf
-
-# PROGRAMS
-
-# Validated default programs:
+#
+## PROGRAMS
+#
+## Validated default programs:
program[menu] = rofi -show run
program[term] = urxvt
program[lock] = xlock
program[screenshot] = screenshot
-
-
+#
+#
bind[lock] = MOD+Shift+Delete
bind[term] = MOD+Shift+Return
bind[menu] = MOD+p
bind[screenshot] = Mod+Menu
-
-# Optional default programs that will only be validated if you override:
-
+#
+## Optional default programs that will only be validated if you override:
+#
program[unmnt] = urxvt -e "unmnt"
bind[unmnt] = MOD+u
program[mntsd] = urxvt -e "mntsd"
bind[mntsd] = MOD+s
-
-
-# Quirks
+#
+#
+## Quirks
quirk[.*] = NONE
quirk[Sylpheed] = WS[3]
-# Allows gvim to be opened alongside sylpheed when sylpheed is launched
-# from another workspace and i open an attachment, and other cases.
+## Allows gvim to be opened alongside sylpheed when sylpheed is launched
+## from another workspace and i open an attachment, and other cases.
quirk[.*:.*:.*] = IGNORESPAWNWS
quirk[chromium-browser] = WS[2]
quirk[.*:chromium-browser] = WS[2]
-# Gimp can be used in single window mode
+## Gimp can be used in single window mode
quirk[Gimp:gimp] = NONE
quirk[Xmessage] = FLOAT ANYWHERE
-
-# Autorun
-
+#
+## Autorun
+#
autorun ws[2]:iridium
autorun ws[3]:sylpheed
autorun ws[4]:urxvt -e ssh niji
diff --git a/.spectrwm_fr.conf b/.spectrwm_fr.conf
index 2a35fea..7525c00 100644
--- a/.spectrwm_fr.conf
+++ b/.spectrwm_fr.conf
@@ -22,6 +22,7 @@ bind[mvws_1] = MOD+Shift+a
bind[mvws_2] = MOD+Shift+z
bind[mvws_3] = MOD+Shift+e
bind[mvws_4] = MOD+Shift+r
+bind[mvws_5] = MOD+Shift+t
bind[quit] = MOD+Shift+q
bind[restart] = MOD+q
bind[stack_dec] = MOD+Shift+d
@@ -33,3 +34,4 @@ bind[ws_1] = MOD+a
bind[ws_2] = MOD+z
bind[ws_3] = MOD+e
bind[ws_4] = MOD+r
+bind[ws_5] = MOD+t
diff --git a/.xsession b/.xsession
index 7bb570c..6ec94fe 100755
--- a/.xsession
+++ b/.xsession
@@ -47,8 +47,7 @@ xset m 11/10 0
sct 3000 &
urxvt -e tmux &
-#exec fvwm
-exec spectrwm
+spectrwm || cwm
# vim: ft=sh sw=4 ts=4