-
Notifications
You must be signed in to change notification settings - Fork 0
/
spectrwm.conf
103 lines (103 loc) · 6.09 KB
/
spectrwm.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# PLEASE READ THE MAN PAGE BEFORE EDITING THIS FILE!
# http://opensource.conformal.com/cgi-bin/man-cgi?spectrwm
# colors for focussed and unfocussed window borders
# NOTE: all colors in this file are in hex! see XQueryColor for examples
# color_focus = red
# color_unfocus = rgb:88/88/88
# bar settings
# bar_enabled = 1
bar_border_width = 1
# bar_border[1] = rgb:00/80/80
# bar_color[1] = black
# bar_font_color[1] = rgb:a0/a0/a0
bar_font = -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
bar_action = ~/baraction.sh
bar_delay = 5
# bar_justify = left
# bar_at_bottom = 1
# stack_enabled = 1
clock_enabled = 1
# clock_format = %R %a %d. %B %Y
clock_format = %I:%M %p, %a, %d-%m-%Y
title_name_enabled = 1
# title_class_enabled = 0
window_name_enabled = 1
# verbose_layout = 1
# focus_mode = default
# disable_border = 1
border_width = 1
# urgent_enabled = 1
# spawn app
# program[term] = /usr/bin/xterm -cr green -ms green -bg black -fg yellow -u8
program[screenshot_all] = ~/.myconfig/screenshot.sh full
program[screenshot_wind] = ~/.myconfig/screenshot.sh window
# program[lock] = xlock
program[lock] = xscreensaver-command --lock
#program[initscr] = clipit -n
# program[initscr] = ~/scripts/displaySpectrwm.sh
# program[menu] = dmenu_run -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_border -sf $bar_color
# spawn_term = /usr/bin/uxterm
# dialog box size ratio .3 > = r < 1
# dialog_ratio = 0.6
# Split a non-Xrandr dual head setup into one region per monitor
# (non-standard driver-based multihead is not seen by spectrwm)
# region = screen[1]:1280x1024+0+0
# region = screen[1]:1280x1024+1280+0
# Launch applications in a workspace of choice
# autorun = ws[1]:xterm
# autorun = ws[2]:xxxterm http://www.openbsd.org
# workspace layout
layout = ws[1]:0:0:0:0:vertical_flip
# layout = ws[1]:4:0:0:0:vertical
# layout = ws[2]:0:0:0:0:horizontal
# layout = ws[3]:0:0:0:0:fullscreen
# mod key, (windows key is Mod4) (apple key on OSX is Mod2)
modkey = Mod4
# Clear key bindings and load new key bindings from the specified file.
# This allows you to load pre-defined key bindings for your keyboard layout.
# keyboard_mapping = ~/.spectrwm_us.conf
# quirks
# remove with: quirk[class:name] = NONE
# quirk[MPlayer:xv] = FLOAT + FULLSCREEN + FOCUSPREV
# quirk[OpenOffice.org 2.4:VCLSalFrame] = FLOAT
# quirk[OpenOffice.org 3.0:VCLSalFrame] = FLOAT
# quirk[OpenOffice.org 3.1:VCLSalFrame] = FLOAT
# quirk[Firefox-bin:firefox-bin] = TRANSSZ
# quirk[Firefox:Dialog] = FLOAT
# quirk[Gimp:gimp] = FLOAT + ANYWHERE
# quirk[XTerm:xterm] = XTERM_FONTADJ
# quirk[xine:Xine Window] = FLOAT + ANYWHERE
# quirk[Xitk:Xitk Combo] = FLOAT + ANYWHERE
# quirk[xine:xine Panel] = FLOAT + ANYWHERE
# quirk[Xitk:Xine Window] = FLOAT + ANYWHERE
# quirk[xine:xine Video Fullscreen Window] = FULLSCREEN + FLOAT
# quirk[pcb:pcb] = FLOAT
# EXAMPLE: define firefox program and bind to key
# program[firefox] = firefox http://spectrwm.org/
# bind[firefox] = MOD+Shift+b
program[raise_volume] = /usr/bin/amixer -q set Master 5%+ unmute
program[lower_volume] = /usr/bin/amixer -q set Master 5%- unmute
program[mute_volume] = /usr/bin/amixer -q set Master mute
program[raise_bright] = /usr/bin/xbacklight -inc 15 -steps 1 -time 0
program[lower_bright] = /usr/bin/xbacklight -dec 20 -steps 1 -time 0
program[adjust_display] = ~/scripts/displaySpectrwm.sh
bind[raise_volume] = XF86AudioNext
bind[lower_volume] = XF86AudioPref
bind[mute_volume] = XF86AudioPlay
bind[raise_bright] = XF86MonBrightnessUp
bind[lower_bright] = XF86MonBrightnessDown
bind[adjust_display] = XF86Sleep
# program[devterm] = /usr/bin/xterm -cr green -ms green -bg lightgrey -fg black -u8 -e /bin/bash
# bind[devterm] = Mod4+d
program[mocp_pause] = /usr/bin/mocp -P
program[mocp_play] = /usr/bin/mocp -U
program[mocp_louder] = /usr/bin/mocp -v +2
program[mocp_quieter] = /usr/bin/mocp -v -2
program[mocp_next] = /usr/bin/mocp -f
program[mocp_prev] = /usr/bin/mocp -r
bind[mocp_pause] = Mod4+c
bind[mocp_play] = Mod4+Shift+c
bind[mocp_louder] = Mod4+u
bind[mocp_quieter] = Mod4+Shift+u
bind[mocp_next] = Mod4+f
bind[mocp_prev] = Mod4+Shift+F