summaryrefslogtreecommitdiff
path: root/spectrwm
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-04-18 04:02:11 +0000
committerShubham Saini <shubham6405@gmail.com>2020-04-18 04:02:11 +0000
commit1ff38305dd4020212e8a2bad29754f13b37153b3 (patch)
tree1928f87fcc49f7a04b251bff648b727680419ab1 /spectrwm
parent795ab6b47e1f0e9ee7332450a2dec65c96b85aab (diff)
spectrwm
Diffstat (limited to 'spectrwm')
-rw-r--r--spectrwm/.config/spectrwm/keybindings.conf121
-rw-r--r--spectrwm/.config/spectrwm/spectrwm.conf131
2 files changed, 252 insertions, 0 deletions
diff --git a/spectrwm/.config/spectrwm/keybindings.conf b/spectrwm/.config/spectrwm/keybindings.conf
new file mode 100644
index 0000000..e21a511
--- /dev/null
+++ b/spectrwm/.config/spectrwm/keybindings.conf
@@ -0,0 +1,121 @@
1# Key bindings for United States (us) keyboards
2# unbind with: bind[] = <keys>
3bind[bar_toggle] = MOD+b
4bind[bar_toggle_ws] = MOD+Shift+b
5bind[button2] = MOD+v
6bind[cycle_layout] = MOD+space
7bind[flip_layout] = MOD+Shift+backslash
8bind[float_toggle] = MOD+t
9bind[focus_main] = MOD+m
10bind[focus_next] = MOD+j
11bind[focus_next] = MOD+Tab
12bind[focus_prev] = MOD+k
13bind[focus_prev] = MOD+Shift+Tab
14bind[focus_urgent] = MOD+u
15bind[height_grow] = MOD+Shift+equal
16bind[height_shrink] = MOD+Shift+minus
17bind[iconify] = MOD+w
18bind[initscr] = MOD+Shift+i
19bind[lock] = MOD+Shift+Delete
20bind[master_add] = MOD+comma
21bind[master_del] = MOD+period
22bind[master_grow] = MOD+l
23bind[master_shrink] = MOD+h
24bind[maximize_toggle] = MOD+e
25bind[menu] = MOD+p
26bind[move_down] = MOD+Shift+bracketright
27bind[move_left] = MOD+bracketleft
28bind[move_right] = MOD+bracketright
29bind[move_up] = MOD+Shift+bracketleft
30bind[mvrg_1] = MOD+Shift+KP_End
31bind[mvrg_2] = MOD+Shift+KP_Down
32bind[mvrg_3] = MOD+Shift+KP_Next
33bind[mvrg_4] = MOD+Shift+KP_Left
34bind[mvrg_5] = MOD+Shift+KP_Begin
35bind[mvrg_6] = MOD+Shift+KP_Right
36bind[mvrg_7] = MOD+Shift+KP_Home
37bind[mvrg_8] = MOD+Shift+KP_Up
38bind[mvrg_9] = MOD+Shift+KP_Prior
39bind[mvws_1] = MOD+Shift+1
40bind[mvws_2] = MOD+Shift+2
41bind[mvws_3] = MOD+Shift+3
42bind[mvws_4] = MOD+Shift+4
43bind[mvws_5] = MOD+Shift+5
44bind[mvws_6] = MOD+Shift+6
45bind[mvws_7] = MOD+Shift+7
46bind[mvws_8] = MOD+Shift+8
47bind[mvws_9] = MOD+Shift+9
48bind[mvws_10] = MOD+Shift+0
49bind[mvws_11] = MOD+Shift+F1
50bind[mvws_12] = MOD+Shift+F2
51bind[mvws_13] = MOD+Shift+F3
52bind[mvws_14] = MOD+Shift+F4
53bind[mvws_15] = MOD+Shift+F5
54bind[mvws_16] = MOD+Shift+F6
55bind[mvws_17] = MOD+Shift+F7
56bind[mvws_18] = MOD+Shift+F8
57bind[mvws_19] = MOD+Shift+F9
58bind[mvws_20] = MOD+Shift+F10
59bind[mvws_21] = MOD+Shift+F11
60bind[mvws_22] = MOD+Shift+F12
61bind[name_workspace] = MOD+Shift+slash
62bind[quit] = MOD+Shift+q
63bind[raise_toggle] = MOD+Shift+r
64bind[restart] = MOD+q
65bind[rg_1] = MOD+KP_End
66bind[rg_2] = MOD+KP_Down
67bind[rg_3] = MOD+KP_Next
68bind[rg_4] = MOD+KP_Left
69bind[rg_5] = MOD+KP_Begin
70bind[rg_6] = MOD+KP_Right
71bind[rg_7] = MOD+KP_Home
72bind[rg_8] = MOD+KP_Up
73bind[rg_9] = MOD+KP_Prior
74bind[rg_next] = MOD+Shift+Right
75bind[rg_prev] = MOD+Shift+Left
76bind[screenshot_all] = MOD+s
77bind[screenshot_wind] = MOD+Shift+s
78bind[search_win] = MOD+f
79bind[search_workspace] = MOD+slash
80bind[stack_dec] = MOD+Shift+period
81bind[stack_inc] = MOD+Shift+comma
82bind[stack_reset] = MOD+Shift+space
83bind[swap_main] = MOD+Shift+Return
84bind[swap_next] = MOD+Shift+j
85bind[swap_prev] = MOD+Shift+k
86bind[term] = MOD+Return
87bind[uniconify] = MOD+Shift+w
88bind[version] = MOD+Shift+v
89bind[width_grow] = MOD+equal
90bind[width_shrink] = MOD+minus
91bind[wind_del] = MOD+x
92bind[wind_kill] = MOD+Shift+x
93bind[ws_1] = MOD+1
94bind[ws_2] = MOD+2
95bind[ws_3] = MOD+3
96bind[ws_4] = MOD+4
97bind[ws_5] = MOD+5
98bind[ws_6] = MOD+6
99bind[ws_7] = MOD+7
100bind[ws_8] = MOD+8
101bind[ws_9] = MOD+9
102bind[ws_10] = MOD+0
103bind[ws_11] = MOD+F1
104bind[ws_12] = MOD+F2
105bind[ws_13] = MOD+F3
106bind[ws_14] = MOD+F4
107bind[ws_15] = MOD+F5
108bind[ws_16] = MOD+F6
109bind[ws_17] = MOD+F7
110bind[ws_18] = MOD+F8
111bind[ws_19] = MOD+F9
112bind[ws_20] = MOD+F10
113bind[ws_21] = MOD+F11
114bind[ws_22] = MOD+F12
115bind[ws_next] = MOD+Right
116bind[ws_next_all] = MOD+Up
117bind[ws_next_move] = MOD+Shift+Up
118bind[ws_prev] = MOD+Left
119bind[ws_prev_all] = MOD+Down
120bind[ws_prev_move] = MOD+Shift+Down
121bind[ws_prior] = MOD+a
diff --git a/spectrwm/.config/spectrwm/spectrwm.conf b/spectrwm/.config/spectrwm/spectrwm.conf
new file mode 100644
index 0000000..d9990c1
--- /dev/null
+++ b/spectrwm/.config/spectrwm/spectrwm.conf
@@ -0,0 +1,131 @@
1# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE!
2# https://htmlpreview.github.io/?https://github.com/conformal/spectrwm/blob/master/spectrwm.html
3# NOTE: all rgb color values in this file are in hex! see XQueryColor for examples
4
5workspace_limit = 9
6focus_mode = default
7focus_close = previous
8focus_close_wrap = 1
9focus_default = last
10spawn_position = next
11workspace_clamp = 1
12warp_focus = 1
13warp_pointer = 1
14
15# Window Decoration
16border_width = 1
17color_focus = red
18color_focus_maximized = yellow
19color_unfocus = rgb:88/88/88
20color_unfocus_maximized = rgb:88/88/00
21region_padding = 6
22tile_gap = 6
23
24# Region containment
25# Distance window must be dragged/resized beyond the region edge before it is
26# allowed outside the region.
27# boundary_width = 50
28
29# Remove window border when bar is disabled and there is only one window in workspace
30# disable_border = 1
31
32# Bar Settings
33bar_enabled = 1
34bar_border_width = 1
35bar_border[1] = rgb:00/80/80
36bar_border_unfocus[1] = rgb:00/40/40
37bar_color[1] = black
38bar_color_selected[1] = rgb:00/80/80
39bar_font_color[1] = rgb:a0/a0/a0
40bar_font_color_selected = black
41bar_font = Hermit:size=9
42# bar_action = baraction.sh
43bar_justify = left
44bar_format = +N:+I +S <+D>+4<%a %b %d %R %Z %Y+8<+4<+V
45workspace_indicator = listcurrent,listactive,markcurrent,printnames
46bar_at_bottom = 0
47stack_enabled = 1
48clock_enabled = 1
49clock_format = %a %b %d %R %Z %Y
50iconic_enabled = 0
51maximize_hide_bar = 0
52window_class_enabled = 0
53window_instance_enabled = 0
54window_name_enabled = 1
55verbose_layout = 1
56urgent_enabled = 1
57
58# Dialog box size ratio when using TRANSSZ quirk; 0.3 < dialog_ratio <= 1.0
59# dialog_ratio = 0.6
60
61# Split a non-RandR dual head setup into one region per monitor
62# (non-standard driver-based multihead is not seen by spectrwm)
63# region = screen[1]:1280x1024+0+0
64# region = screen[1]:1280x1024+1280+0
65
66# Launch applications in a workspace of choice
67#autorun = ws[1]:urxvtd
68
69# Customize workspace layout at start
70# layout = ws[1]:4:0:0:0:vertical
71# layout = ws[2]:0:0:0:0:horizontal
72# layout = ws[3]:0:0:0:0:fullscreen
73# layout = ws[4]:4:0:0:0:vertical_flip
74# layout = ws[5]:0:0:0:0:horizontal_flip
75
76# Set workspace name at start
77name = ws[1]:term
78name = ws[2]:web
79name = ws[3]:music
80name = ws[4]:file
81name = ws[5]:code
82name = ws[6]:virt
83name = ws[7]:game
84name = ws[8]:hack
85name = ws[9]:temp
86
87# Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2)
88modkey = Mod4
89
90# This allows you to include pre-defined key bindings for your keyboard layout.
91keyboard_mapping = ~/.config/spectrwm/keybindings.conf
92
93# PROGRAMS
94
95# Validated default programs:
96# program[lock] = xlock
97program[term] = urxvtc
98program[menu] = dmenu_run
99# program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
100# program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
101
102# To disable validation of the above, free the respective binding(s):
103# bind[] = MOD+Shift+Delete # disable lock
104# bind[] = MOD+Shift+Return # disable term
105# bind[] = MOD+p # disable menu
106
107# Optional default programs that will only be validated if you override:
108# program[screenshot_all] = screenshot.sh full # optional
109# program[screenshot_wind] = screenshot.sh window # optional
110# program[initscr] = initscreen.sh # optional
111
112# EXAMPLE: Define 'firefox' action and bind to key.
113# program[firefox] = firefox http://spectrwm.org/
114# bind[firefox] = MOD+Shift+b
115
116# QUIRKS
117# Default quirks, remove with: quirk[class:name] = NONE
118# quirk[MPlayer:xv] = FLOAT + FULLSCREEN + FOCUSPREV
119# quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
120# quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
121# quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT
122# quirk[Firefox-bin:firefox-bin] = TRANSSZ
123# quirk[Firefox:Dialog] = FLOAT
124# quirk[Gimp:gimp] = FLOAT + ANYWHERE
125# quirk[XTerm:xterm] = XTERM_FONTADJ
126# quirk[xine:Xine Window] = FLOAT + ANYWHERE
127# quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
128# quirk[xine:xine Panel] = FLOAT + ANYWHERE
129# quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
130# quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT
131# quirk[pcb:pcb] = FLOAT