main wf/panko / doc / panko.scfg.sample
 1# panko sample config file
 2
 3# Bar width/height
 4width 850
 5height 35
 6
 7# Screen edges to align the bar to [top, right, bottom, left]
 8anchor bottom
 9
10# Margins relative to the screen edges, in the format of [top right bottom left] (all mandatory)
11margins 0 0 10 0
12
13# Whether the compositor should reserve space for the bar [true/false]
14exclusive true
15
16# Bar style keys, same as modules with the exception of borders. Colors can be hex or named (e.g. `azure`)
17style {
18	foreground "#ff0000"
19	background "#121212"
20	font "Terminus:size=12"
21}
22
23# An example module definiton
24module "workspace" {
25	# Source command for the text
26	command "howlc get_workspace"
27	# Interval at which to execute the source command (seconds)
28	# If the interval is set to 0, the command is a one-shot (executed only once)
29	interval 3
30
31	# Module margins/padding in the format of [top right bottom left] (all mandatory)
32	margins 0 0 0 8
33	padding 2 2 2 2
34
35	# Implicit geometry for the module (inferred from text size if unset)
36	width 15
37	height 15
38
39	# Style keys, unset ones are inherited from bar
40
41	style {
42		foreground "blue"
43		background "#ff0000"
44		font "Terminus:size=12:style=Bold"
45		border-width 1
46		border-color "green"
47	}
48}
49
50module "text" {
51	command "echo 'foobar'"
52	interval 0
53
54	style {
55		foreground "#333333"
56		background "#121212"
57		border-width 0
58	}
59}
60
61module "time" {
62	command "date +'%a %R'"
63	interval 10
64
65	margins 0 8 0 0
66	padding 2 2 2 2
67}
68
69# Modules to display on the left/middle/right side of the bar
70modules-left "workspace"
71modules-middle "text"
72modules-right "time"