diff options
-rw-r--r-- | spectrwm/.config/spectrwm/keybindings.conf | 121 | ||||
-rw-r--r-- | spectrwm/.config/spectrwm/spectrwm.conf | 131 | ||||
-rw-r--r-- | x/.xinitrc | 68 |
3 files changed, 256 insertions, 64 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> | ||
3 | bind[bar_toggle] = MOD+b | ||
4 | bind[bar_toggle_ws] = MOD+Shift+b | ||
5 | bind[button2] = MOD+v | ||
6 | bind[cycle_layout] = MOD+space | ||
7 | bind[flip_layout] = MOD+Shift+backslash | ||
8 | bind[float_toggle] = MOD+t | ||
9 | bind[focus_main] = MOD+m | ||
10 | bind[focus_next] = MOD+j | ||
11 | bind[focus_next] = MOD+Tab | ||
12 | bind[focus_prev] = MOD+k | ||
13 | bind[focus_prev] = MOD+Shift+Tab | ||
14 | bind[focus_urgent] = MOD+u | ||
15 | bind[height_grow] = MOD+Shift+equal | ||
16 | bind[height_shrink] = MOD+Shift+minus | ||
17 | bind[iconify] = MOD+w | ||
18 | bind[initscr] = MOD+Shift+i | ||
19 | bind[lock] = MOD+Shift+Delete | ||
20 | bind[master_add] = MOD+comma | ||
21 | bind[master_del] = MOD+period | ||
22 | bind[master_grow] = MOD+l | ||
23 | bind[master_shrink] = MOD+h | ||
24 | bind[maximize_toggle] = MOD+e | ||
25 | bind[menu] = MOD+p | ||
26 | bind[move_down] = MOD+Shift+bracketright | ||
27 | bind[move_left] = MOD+bracketleft | ||
28 | bind[move_right] = MOD+bracketright | ||
29 | bind[move_up] = MOD+Shift+bracketleft | ||
30 | bind[mvrg_1] = MOD+Shift+KP_End | ||
31 | bind[mvrg_2] = MOD+Shift+KP_Down | ||
32 | bind[mvrg_3] = MOD+Shift+KP_Next | ||
33 | bind[mvrg_4] = MOD+Shift+KP_Left | ||
34 | bind[mvrg_5] = MOD+Shift+KP_Begin | ||
35 | bind[mvrg_6] = MOD+Shift+KP_Right | ||
36 | bind[mvrg_7] = MOD+Shift+KP_Home | ||
37 | bind[mvrg_8] = MOD+Shift+KP_Up | ||
38 | bind[mvrg_9] = MOD+Shift+KP_Prior | ||
39 | bind[mvws_1] = MOD+Shift+1 | ||
40 | bind[mvws_2] = MOD+Shift+2 | ||
41 | bind[mvws_3] = MOD+Shift+3 | ||
42 | bind[mvws_4] = MOD+Shift+4 | ||
43 | bind[mvws_5] = MOD+Shift+5 | ||
44 | bind[mvws_6] = MOD+Shift+6 | ||
45 | bind[mvws_7] = MOD+Shift+7 | ||
46 | bind[mvws_8] = MOD+Shift+8 | ||
47 | bind[mvws_9] = MOD+Shift+9 | ||
48 | bind[mvws_10] = MOD+Shift+0 | ||
49 | bind[mvws_11] = MOD+Shift+F1 | ||
50 | bind[mvws_12] = MOD+Shift+F2 | ||
51 | bind[mvws_13] = MOD+Shift+F3 | ||
52 | bind[mvws_14] = MOD+Shift+F4 | ||
53 | bind[mvws_15] = MOD+Shift+F5 | ||
54 | bind[mvws_16] = MOD+Shift+F6 | ||
55 | bind[mvws_17] = MOD+Shift+F7 | ||
56 | bind[mvws_18] = MOD+Shift+F8 | ||
57 | bind[mvws_19] = MOD+Shift+F9 | ||
58 | bind[mvws_20] = MOD+Shift+F10 | ||
59 | bind[mvws_21] = MOD+Shift+F11 | ||
60 | bind[mvws_22] = MOD+Shift+F12 | ||
61 | bind[name_workspace] = MOD+Shift+slash | ||
62 | bind[quit] = MOD+Shift+q | ||
63 | bind[raise_toggle] = MOD+Shift+r | ||
64 | bind[restart] = MOD+q | ||
65 | bind[rg_1] = MOD+KP_End | ||
66 | bind[rg_2] = MOD+KP_Down | ||
67 | bind[rg_3] = MOD+KP_Next | ||
68 | bind[rg_4] = MOD+KP_Left | ||
69 | bind[rg_5] = MOD+KP_Begin | ||
70 | bind[rg_6] = MOD+KP_Right | ||
71 | bind[rg_7] = MOD+KP_Home | ||
72 | bind[rg_8] = MOD+KP_Up | ||
73 | bind[rg_9] = MOD+KP_Prior | ||
74 | bind[rg_next] = MOD+Shift+Right | ||
75 | bind[rg_prev] = MOD+Shift+Left | ||
76 | bind[screenshot_all] = MOD+s | ||
77 | bind[screenshot_wind] = MOD+Shift+s | ||
78 | bind[search_win] = MOD+f | ||
79 | bind[search_workspace] = MOD+slash | ||
80 | bind[stack_dec] = MOD+Shift+period | ||
81 | bind[stack_inc] = MOD+Shift+comma | ||
82 | bind[stack_reset] = MOD+Shift+space | ||
83 | bind[swap_main] = MOD+Shift+Return | ||
84 | bind[swap_next] = MOD+Shift+j | ||
85 | bind[swap_prev] = MOD+Shift+k | ||
86 | bind[term] = MOD+Return | ||
87 | bind[uniconify] = MOD+Shift+w | ||
88 | bind[version] = MOD+Shift+v | ||
89 | bind[width_grow] = MOD+equal | ||
90 | bind[width_shrink] = MOD+minus | ||
91 | bind[wind_del] = MOD+x | ||
92 | bind[wind_kill] = MOD+Shift+x | ||
93 | bind[ws_1] = MOD+1 | ||
94 | bind[ws_2] = MOD+2 | ||
95 | bind[ws_3] = MOD+3 | ||
96 | bind[ws_4] = MOD+4 | ||
97 | bind[ws_5] = MOD+5 | ||
98 | bind[ws_6] = MOD+6 | ||
99 | bind[ws_7] = MOD+7 | ||
100 | bind[ws_8] = MOD+8 | ||
101 | bind[ws_9] = MOD+9 | ||
102 | bind[ws_10] = MOD+0 | ||
103 | bind[ws_11] = MOD+F1 | ||
104 | bind[ws_12] = MOD+F2 | ||
105 | bind[ws_13] = MOD+F3 | ||
106 | bind[ws_14] = MOD+F4 | ||
107 | bind[ws_15] = MOD+F5 | ||
108 | bind[ws_16] = MOD+F6 | ||
109 | bind[ws_17] = MOD+F7 | ||
110 | bind[ws_18] = MOD+F8 | ||
111 | bind[ws_19] = MOD+F9 | ||
112 | bind[ws_20] = MOD+F10 | ||
113 | bind[ws_21] = MOD+F11 | ||
114 | bind[ws_22] = MOD+F12 | ||
115 | bind[ws_next] = MOD+Right | ||
116 | bind[ws_next_all] = MOD+Up | ||
117 | bind[ws_next_move] = MOD+Shift+Up | ||
118 | bind[ws_prev] = MOD+Left | ||
119 | bind[ws_prev_all] = MOD+Down | ||
120 | bind[ws_prev_move] = MOD+Shift+Down | ||
121 | bind[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 | |||
5 | workspace_limit = 9 | ||
6 | focus_mode = default | ||
7 | focus_close = previous | ||
8 | focus_close_wrap = 1 | ||
9 | focus_default = last | ||
10 | spawn_position = next | ||
11 | workspace_clamp = 1 | ||
12 | warp_focus = 1 | ||
13 | warp_pointer = 1 | ||
14 | |||
15 | # Window Decoration | ||
16 | border_width = 1 | ||
17 | color_focus = red | ||
18 | color_focus_maximized = yellow | ||
19 | color_unfocus = rgb:88/88/88 | ||
20 | color_unfocus_maximized = rgb:88/88/00 | ||
21 | region_padding = 6 | ||
22 | tile_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 | ||
33 | bar_enabled = 1 | ||
34 | bar_border_width = 1 | ||
35 | bar_border[1] = rgb:00/80/80 | ||
36 | bar_border_unfocus[1] = rgb:00/40/40 | ||
37 | bar_color[1] = black | ||
38 | bar_color_selected[1] = rgb:00/80/80 | ||
39 | bar_font_color[1] = rgb:a0/a0/a0 | ||
40 | bar_font_color_selected = black | ||
41 | bar_font = Hermit:size=9 | ||
42 | # bar_action = baraction.sh | ||
43 | bar_justify = left | ||
44 | bar_format = +N:+I +S <+D>+4<%a %b %d %R %Z %Y+8<+4<+V | ||
45 | workspace_indicator = listcurrent,listactive,markcurrent,printnames | ||
46 | bar_at_bottom = 0 | ||
47 | stack_enabled = 1 | ||
48 | clock_enabled = 1 | ||
49 | clock_format = %a %b %d %R %Z %Y | ||
50 | iconic_enabled = 0 | ||
51 | maximize_hide_bar = 0 | ||
52 | window_class_enabled = 0 | ||
53 | window_instance_enabled = 0 | ||
54 | window_name_enabled = 1 | ||
55 | verbose_layout = 1 | ||
56 | urgent_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 | ||
77 | name = ws[1]:term | ||
78 | name = ws[2]:web | ||
79 | name = ws[3]:music | ||
80 | name = ws[4]:file | ||
81 | name = ws[5]:code | ||
82 | name = ws[6]:virt | ||
83 | name = ws[7]:game | ||
84 | name = ws[8]:hack | ||
85 | name = ws[9]:temp | ||
86 | |||
87 | # Mod key, (Windows key is Mod4) (Apple key on OSX is Mod2) | ||
88 | modkey = Mod4 | ||
89 | |||
90 | # This allows you to include pre-defined key bindings for your keyboard layout. | ||
91 | keyboard_mapping = ~/.config/spectrwm/keybindings.conf | ||
92 | |||
93 | # PROGRAMS | ||
94 | |||
95 | # Validated default programs: | ||
96 | # program[lock] = xlock | ||
97 | program[term] = urxvtc | ||
98 | program[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 | ||
@@ -1,65 +1,5 @@ | |||
1 | #!/bin/sh | 1 | xrdb ~/.Xresources & |
2 | 2 | compton & | |
3 | userresources=$HOME/.Xresources | 3 | urxvtd & |
4 | usermodmap=$HOME/.Xmodmap | 4 | exec spectrwm |
5 | sysresources=/etc/X11/xinit/.Xresources | ||
6 | sysmodmap=/etc/X11/xinit/.Xmodmap | ||
7 | |||
8 | # merge in defaults and keymaps | ||
9 | |||
10 | if [ -f $sysresources ]; then | ||
11 | |||
12 | xrdb -merge $sysresources | ||
13 | |||
14 | fi | ||
15 | |||
16 | if [ -f $sysmodmap ]; then | ||
17 | xmodmap $sysmodmap | ||
18 | fi | ||
19 | |||
20 | if [ -f "$userresources" ]; then | ||
21 | |||
22 | xrdb -merge "$userresources" | ||
23 | |||
24 | fi | ||
25 | |||
26 | if [ -f "$usermodmap" ]; then | ||
27 | xmodmap "$usermodmap" | ||
28 | fi | ||
29 | |||
30 | # start some nice programs | ||
31 | |||
32 | if [ -d /etc/X11/xinit/xinitrc.d ] ; then | ||
33 | for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do | ||
34 | [ -x "$f" ] && . "$f" | ||
35 | done | ||
36 | unset f | ||
37 | fi | ||
38 | |||
39 | if [ -n "$DISPLAY" ]; then | ||
40 | xset b off | ||
41 | fi | ||
42 | |||
43 | # load additional configs | ||
44 | if [ "$2" = "nvidia" ]; then | ||
45 | XINIT_D="/etc/X11/nvidia/xinit/xinitrc.d" | ||
46 | else | ||
47 | XINIT_D="/etc/X11/xinit/xinitrc.d" | ||
48 | fi | ||
49 | |||
50 | if [ -d "$XINIT_D" ]; then | ||
51 | for f in "$XINIT_D/?*.sh" ; do | ||
52 | [ -x "$f" ] && . "$f" | ||
53 | done | ||
54 | unset f | ||
55 | fi | ||
56 | unset XINIT_D | ||
57 | |||
58 | # additional nvidia specific settings | ||
59 | if [ "$2" = "nvidia" ]; then | ||
60 | xrandr --setprovideroutputsource modesetting NVIDIA-0 | ||
61 | xrandr --auto | ||
62 | fi | ||
63 | xsetroot -cursor_name left_ptr | ||
64 | exec dbus-launch --exit-with-session bspwm | ||
65 | #exec bspwm | 5 | #exec bspwm |