summaryrefslogtreecommitdiffstats
path: root/awesome
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-04-07 07:21:02 +0200
committerDavid Robillard <d@drobilla.net>2017-04-07 07:21:02 +0200
commite377720babb55531ad0419602931d12d4138fa92 (patch)
tree2dd1440460185024e4ab39e055196cfca4bc251c /awesome
parent678787151a3e770c736670e96ae8c3cf4efce362 (diff)
downloaddotfiles-e377720babb55531ad0419602931d12d4138fa92.tar.gz
dotfiles-e377720babb55531ad0419602931d12d4138fa92.tar.bz2
dotfiles-e377720babb55531ad0419602931d12d4138fa92.zip
Define palette as customizable variables
Diffstat (limited to 'awesome')
-rw-r--r--awesome/rc.lua29
-rw-r--r--awesome/theme/theme.lua6
2 files changed, 21 insertions, 14 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index fa8b7c0..9f9888a 100644
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -143,14 +143,10 @@ vicious.register(tempwidget, get_temps, '$1', 4)
--vicious.register(hddtempwidget, vicious.widgets.hddtemp, "${/dev/sda} °C", refresh_delay)
-- Network
---ethwidget = widget({ type = "textbox" })
---vicious.register(ethwidget, vicious.widgets.net,
---'Eth: <span color="#F88">${eth0 down_kb}</span>' ..
---'/<span color="#8F8">${eth0 up_kb}</span>', 3)
-ethwidget = widget({ type = "textbox" })
-vicious.register(ethwidget, vicious.widgets.net,
-'Eth <span color="#F88">${eth0 down_kb}</span>' ..
-'/<span color="#8F8">${eth0 up_kb}</span>', 4)
+-- ethwidget = widget({ type = "textbox" })
+-- vicious.register(ethwidget, vicious.widgets.net,
+-- 'Eth <span color="#F88">${eth0 down_kb}</span>' ..
+-- '/<span color="#8F8">${eth0 up_kb}</span>', 4)
wlanwidget = widget({ type = "textbox" })
vicious.register(wlanwidget, vicious.widgets.net,
'Wifi <span color="#F88">${wlan0 down_kb}</span>' ..
@@ -208,7 +204,8 @@ mytasklist.buttons = awful.util.table.join(
for s = 1, screen.count() do
-- CPU usage graph
cpuwidget = awful.widget.graph()
- cpuwidget:set_width(32)
+ cpuwidget:set_width(48)
+ cpuwidget:set_height(32)
cpuwidget:set_background_color("#494B52")
cpuwidget:set_color("#0092E6")
vicious.cache(vicious.widgets.cpu)
@@ -216,7 +213,8 @@ for s = 1, screen.count() do
-- Memory usage graph
memwidget = awful.widget.graph()
- memwidget:set_width(32)
+ memwidget:set_width(48)
+ memwidget:set_height(32)
memwidget:set_background_color("#49524B")
memwidget:set_color("#AAF5D0")
vicious.cache(vicious.widgets.mem)
@@ -250,7 +248,7 @@ for s = 1, screen.count() do
cpuwidget, separator,
memwidget, separator, bar,
tempwidget, bar,
- ethwidget, bar,
+ -- ethwidget, bar,
wlanwidget, bar,
mypromptbox[s], separator,
layout = awful.widget.layout.horizontal.leftright
@@ -303,6 +301,15 @@ globalkeys = awful.util.table.join(
end
end),
+ -- Special keys
+ awful.key({ }, "XF86MonBrightnessDown", function () awful.util.spawn("xbacklight -dec 15") end),
+ awful.key({ }, "XF86MonBrightnessUp", function () awful.util.spawn("xbacklight -inc 15") end),
+ awful.key({ }, "XF86KbdBrightnessDown", function () awful.util.spawn("/home/drobilla/bin/kbdled.sh down") end),
+ awful.key({ }, "XF86KbdBrightnessUp", function () awful.util.spawn("/home/drobilla/bin/kbdled.sh up") end),
+ awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer sset Master 5%+") end),
+ awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer sset Master 5%-") end),
+ awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer sset Master 0%") end),
+
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, }, "\\", function () awful.util.spawn("nautilus -n --no-desktop") end),
diff --git a/awesome/theme/theme.lua b/awesome/theme/theme.lua
index dce3884..860110e 100644
--- a/awesome/theme/theme.lua
+++ b/awesome/theme/theme.lua
@@ -4,7 +4,7 @@
theme = {}
-theme.font = "DejaVu Sans 10"
+theme.font = "Sans 16"
theme.bg_focus = "#3F3F3F"
theme.bg_minimize = "#444444"
@@ -40,8 +40,8 @@ theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/float
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_submenu_icon = "/home/drobilla/.config/awesome/theme/submenu.png"
-theme.menu_height = "18"
-theme.menu_width = "128"
+theme.menu_height = "24"
+theme.menu_width = "256"
-- You can add as many variables as
-- you wish and access them by using