-
Notifications
You must be signed in to change notification settings - Fork 1
/
awesome-3.5.6-delightful-sample-configuration.diff
74 lines (71 loc) · 2.37 KB
/
awesome-3.5.6-delightful-sample-configuration.diff
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
--- /etc/xdg/awesome/rc.lua 2015-09-01 14:28:43.000000000 +0300
+++ rc.lua 2016-03-08 23:21:54.879044992 +0200
@@ -166,6 +166,58 @@
if client.focus then client.focus:raise() end
end))
+-- Delightful widgets
+require('delightful.widgets.battery')
+require('delightful.widgets.cpu')
+require('delightful.widgets.datetime')
+require('delightful.widgets.imap')
+require('delightful.widgets.memory')
+require('delightful.widgets.network')
+require('delightful.widgets.pulseaudio')
+require('delightful.widgets.weather')
+
+-- Which widgets to install?
+-- This is the order the widgets appear in the wibox.
+delightful_widgets = {
+ delightful.widgets.network,
+ delightful.widgets.cpu,
+ delightful.widgets.memory,
+ delightful.widgets.weather,
+ delightful.widgets.imap,
+ delightful.widgets.battery,
+ delightful.widgets.pulseaudio,
+ delightful.widgets.datetime,
+}
+
+-- Widget configuration
+delightful_config = {
+ [delightful.widgets.cpu] = {
+ command = 'gnome-system-monitor',
+ },
+ [delightful.widgets.imap] = {
+ {
+ user = 'myuser',
+ password = 'mypassword',
+ host = 'mail.example.com',
+ ssl = true,
+ mailboxes = { 'INBOX', 'awesome' },
+ command = 'evolution -c mail',
+ },
+ },
+ [delightful.widgets.memory] = {
+ command = 'gnome-system-monitor',
+ },
+ [delightful.widgets.weather] = {
+ {
+ city = 'Helsinki',
+ command = 'gnome-www-browser http://ilmatieteenlaitos.fi/saa/Helsinki',
+ },
+ },
+ [delightful.widgets.pulseaudio] = {
+ mixer_command = 'pavucontrol',
+ },
+}
+
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()
@@ -194,8 +246,10 @@
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.horizontal()
- if s == 1 then right_layout:add(wibox.widget.systray()) end
- right_layout:add(mytextclock)
+ if s == 1 then
+ right_layout:add(wibox.widget.systray())
+ delightful.utils.fill_wibox_container(delightful_widgets, delightful_config, right_layout)
+ end
right_layout:add(mylayoutbox[s])
-- Now bring it all together (with the tasklist in the middle)