summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2010-12-02 10:47:23 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2010-12-02 10:47:23 +0100
commit20cff57f2ec98be66edc88be035ba2a5d8f7f1c7 (patch)
tree4c8b0f7e6570515bbb1bad75e93361fc048f7d11
parent24819bf8902298ccc275d8c5bd8d126bd362cac4 (diff)
downloaddotfiles-20cff57f2ec98be66edc88be035ba2a5d8f7f1c7.tar.gz
dotfiles-20cff57f2ec98be66edc88be035ba2a5d8f7f1c7.tar.bz2
dotfiles-20cff57f2ec98be66edc88be035ba2a5d8f7f1c7.zip
awesome: use modified zenburn theme (urgent = red)
-rw-r--r--.config/awesome/awesome.lua5
-rw-r--r--.local/share/awesome/themes/zenburn/theme.lua126
2 files changed, 130 insertions, 1 deletions
diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua
index f29dd91..3ce2842 100644
--- a/.config/awesome/awesome.lua
+++ b/.config/awesome/awesome.lua
@@ -11,7 +11,8 @@ require("eminent")
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
-beautiful.init(os.getenv("HOME") .. "/.local/share/awesome/themes/default/theme.lua")
+beautiful.init(os.getenv("HOME") .. "/.local/share/awesome/themes/zenburn/theme.lua")
+--beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua")
local runonce = require("runonce")
@@ -224,6 +225,8 @@ globalkeys = awful.util.table.join(
awful.key({ }, "Print", function () awful.util.spawn("scrot") end),
awful.key({ modkey, }, "Print", function () awful.util.spawn("scrot -s") end),
+ awful.key({ }, "XF86Suspend", function () awful.util.spawn("sudo pm-suspend") end),
+
awful.key({ modkey, "Shift" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
diff --git a/.local/share/awesome/themes/zenburn/theme.lua b/.local/share/awesome/themes/zenburn/theme.lua
new file mode 100644
index 0000000..cdd9303
--- /dev/null
+++ b/.local/share/awesome/themes/zenburn/theme.lua
@@ -0,0 +1,126 @@
+-------------------------------
+-- "Zenburn" awesome theme --
+-- By Adrian C. (anrxc) --
+-------------------------------
+
+-- Alternative icon sets and widget icons:
+-- * http://awesome.naquadah.org/wiki/Nice_Icons
+
+-- {{{ Main
+theme = {}
+theme.wallpaper_cmd = { "awsetbg -a /usr/share/awesome/themes/zenburn/zenburn-background.png" }
+-- }}}
+
+-- {{{ Styles
+theme.font = "sans 8"
+
+-- {{{ Colors
+theme.fg_normal = "#DCDCCC"
+theme.fg_focus = "#F0DFAF"
+theme.fg_urgent = "#CC9393"
+theme.bg_normal = "#3F3F3F"
+theme.bg_focus = "#1E2320"
+theme.bg_urgent = "#FF0000"
+-- }}}
+
+-- {{{ Borders
+theme.border_width = "2"
+theme.border_normal = "#3F3F3F"
+theme.border_focus = "#6F6F6F"
+theme.border_marked = "#CC9393"
+-- }}}
+
+-- {{{ Titlebars
+theme.titlebar_bg_focus = "#3F3F3F"
+theme.titlebar_bg_normal = "#3F3F3F"
+-- }}}
+
+-- There are other variable sets
+-- overriding the default one when
+-- defined, the sets are:
+-- [taglist|tasklist]_[bg|fg]_[focus|urgent]
+-- titlebar_[normal|focus]
+-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
+-- Example:
+--theme.taglist_bg_focus = "#CC9393"
+-- }}}
+
+-- {{{ Widgets
+-- You can add as many variables as
+-- you wish and access them by using
+-- beautiful.variable in your rc.lua
+--theme.fg_widget = "#AECF96"
+--theme.fg_center_widget = "#88A175"
+--theme.fg_end_widget = "#FF5656"
+--theme.bg_widget = "#494B4F"
+--theme.border_widget = "#3F3F3F"
+-- }}}
+
+-- {{{ Mouse finder
+theme.mouse_finder_color = "#CC9393"
+-- mouse_finder_[timeout|animate_timeout|radius|factor]
+-- }}}
+
+-- {{{ Menu
+-- Variables set for theming the menu:
+-- menu_[bg|fg]_[normal|focus]
+-- menu_[border_color|border_width]
+theme.menu_height = "15"
+theme.menu_width = "100"
+-- }}}
+
+-- {{{ Icons
+-- {{{ Taglist
+theme.taglist_squares_sel = "/usr/share/awesome/themes/zenburn/taglist/squarefz.png"
+theme.taglist_squares_unsel = "/usr/share/awesome/themes/zenburn/taglist/squarez.png"
+--theme.taglist_squares_resize = "false"
+-- }}}
+
+-- {{{ Misc
+theme.awesome_icon = "/usr/share/awesome/themes/zenburn/awesome-icon.png"
+theme.menu_submenu_icon = "/usr/share/awesome/themes/default/submenu.png"
+theme.tasklist_floating_icon = "/usr/share/awesome/themes/default/tasklist/floatingw.png"
+-- }}}
+
+-- {{{ Layout
+theme.layout_tile = "/usr/share/awesome/themes/zenburn/layouts/tile.png"
+theme.layout_tileleft = "/usr/share/awesome/themes/zenburn/layouts/tileleft.png"
+theme.layout_tilebottom = "/usr/share/awesome/themes/zenburn/layouts/tilebottom.png"
+theme.layout_tiletop = "/usr/share/awesome/themes/zenburn/layouts/tiletop.png"
+theme.layout_fairv = "/usr/share/awesome/themes/zenburn/layouts/fairv.png"
+theme.layout_fairh = "/usr/share/awesome/themes/zenburn/layouts/fairh.png"
+theme.layout_spiral = "/usr/share/awesome/themes/zenburn/layouts/spiral.png"
+theme.layout_dwindle = "/usr/share/awesome/themes/zenburn/layouts/dwindle.png"
+theme.layout_max = "/usr/share/awesome/themes/zenburn/layouts/max.png"
+theme.layout_fullscreen = "/usr/share/awesome/themes/zenburn/layouts/fullscreen.png"
+theme.layout_magnifier = "/usr/share/awesome/themes/zenburn/layouts/magnifier.png"
+theme.layout_floating = "/usr/share/awesome/themes/zenburn/layouts/floating.png"
+-- }}}
+
+-- {{{ Titlebar
+theme.titlebar_close_button_focus = "/usr/share/awesome/themes/zenburn/titlebar/close_focus.png"
+theme.titlebar_close_button_normal = "/usr/share/awesome/themes/zenburn/titlebar/close_normal.png"
+
+theme.titlebar_ontop_button_focus_active = "/usr/share/awesome/themes/zenburn/titlebar/ontop_focus_active.png"
+theme.titlebar_ontop_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/ontop_normal_active.png"
+theme.titlebar_ontop_button_focus_inactive = "/usr/share/awesome/themes/zenburn/titlebar/ontop_focus_inactive.png"
+theme.titlebar_ontop_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/ontop_normal_inactive.png"
+
+theme.titlebar_sticky_button_focus_active = "/usr/share/awesome/themes/zenburn/titlebar/sticky_focus_active.png"
+theme.titlebar_sticky_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/sticky_normal_active.png"
+theme.titlebar_sticky_button_focus_inactive = "/usr/share/awesome/themes/zenburn/titlebar/sticky_focus_inactive.png"
+theme.titlebar_sticky_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/sticky_normal_inactive.png"
+
+theme.titlebar_floating_button_focus_active = "/usr/share/awesome/themes/zenburn/titlebar/floating_focus_active.png"
+theme.titlebar_floating_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/floating_normal_active.png"
+theme.titlebar_floating_button_focus_inactive = "/usr/share/awesome/themes/zenburn/titlebar/floating_focus_inactive.png"
+theme.titlebar_floating_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/floating_normal_inactive.png"
+
+theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/zenburn/titlebar/maximized_focus_active.png"
+theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/maximized_normal_active.png"
+theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/zenburn/titlebar/maximized_focus_inactive.png"
+theme.titlebar_maximized_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/maximized_normal_inactive.png"
+-- }}}
+-- }}}
+
+return theme