From fb4e1d2cb5810be50bcc6e2b977554f1e9006a71 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sat, 30 Jan 2016 01:30:04 +0100 Subject: [PATCH] solarized awesome --- awesome/rc.lua | 18 ++++--- awesome/theme.lua | 124 ++++++++++++++++++++++++++-------------------- 2 files changed, 81 insertions(+), 61 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 08b1628..664505b 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -80,11 +80,12 @@ local layouts = -- }}} -- {{{ Wallpaper -if beautiful.wallpaper then - for s = 1, screen.count() do - gears.wallpaper.maximized(beautiful.wallpaper, s, true) - end -end +-- if beautiful.wallpaper then +-- for s = 1, screen.count() do +-- gears.wallpaper.maximized(beautiful.wallpaper, s, true) +-- end +-- end +-- awful.util.spawn("/home/yorick/builds/bitday-linux/update.sh") -- }}} -- {{{ Tags @@ -201,8 +202,7 @@ do text = text .. "\n" .. arguments[3] .. "h/min remaining" end battery = naughty.notify({ - title = "battery", - text = text, + text = "battery\n" .. text, timeout = 0, screen = mouse.screen, opacity = 0.8, @@ -426,7 +426,7 @@ globalkeys = awful.util.table.join( awful.key({ }, "XF86AudioLowerVolume", function() awful.util.spawn("/home/yorick/dotfiles/bin/vol_down.sh") end), awful.key({ }, "XF86AudioRaiseVolume", function() awful.util.spawn("/home/yorick/dotfiles/bin/vol_up.sh") end), -- awesome screenshotness - awful.key({ modkey }, "s", function() awful.util.spawn("/home/yorick/dotfiles/bin/screenshot_dropbox.sh") end) + awful.key({ modkey }, "s", function() awful.util.spawn("/home/yorick/dotfiles/bin/screenshot_public.sh") end) ) clientkeys = awful.util.table.join( @@ -519,6 +519,8 @@ awful.rules.rules = { -- Set Firefox to always map on tags number 2 of screen 1. { rule = { class = "Firefox" }, properties = { tag = tags[1][2] } }, + { rule = { class = "Skype" }, -- This one!!! + properties = { size_hints_honor = false } }, } -- }}} diff --git a/awesome/theme.lua b/awesome/theme.lua index ef8fa0f..74da4a8 100644 --- a/awesome/theme.lua +++ b/awesome/theme.lua @@ -9,41 +9,59 @@ -- orange: #C18E44 -- brown: #493227 +-- solarized +solar_base03 = "#002b36" -- background +solar_base02 = "#073642" -- bg hl +solar_base01 = "#586e75" -- comments +solar_base00 = "#657b83" -- base 0 +solar_base0 = "#839496" -- standard text +solar_base1 = "#93a1a1" -- emph +solar_base2 = "#eee8d5" -- wow +solar_base3 = "#fdf6e3" -- very white +solar_yellow = "#b58900" +solar_orange = "#cb4b16" +solar_red = "#dc322f" +solar_magenta = "#d33682" +solar_violet = "#6c71c4" +solar_blue = "#268bd2" +solar_cyan = "#2aa198" +solar_green = "#859900" +transparent = "#00000000" +-- + theme = {} -theme.font = "Termsyn 8" +theme.font = "Source Code Pro 9" -theme.bg_normal = "#202020aa" -theme.bg_focus = "#00000000" +theme.bg_normal = solar_base03 .. "d9" +theme.bg_focus = transparent theme.bg_urgent = "#b0b0b0" -theme.bg_minimize = "#00000000" +theme.bg_minimize = transparent theme.bg_systray = "#202020aa" -theme.fg_normal = "#e9e9e9" -theme.fg_focus = "#B2CF56" +theme.fg_normal = solar_base0 +theme.fg_focus = solar_base1 theme.fg_urgent = "#000000" -theme.fg_minimize = "#707070" +theme.fg_minimize = solar_base01 --- temp, stolen -theme.tooltip_fg_color = "#d0d0d0" -theme.dgrey = "#5e5e5e" -theme.lpink = "#a94952" -theme.dgreen = "#7ab87a" -theme.magenta = "#b87ab8" -theme.blue = "#7a7ab8" -theme.white = "#d9d9d9" +theme.dgrey = solar_base0 +theme.lpink = solar_orange +theme.dgreen = solar_green +theme.magenta = solar_magenta +theme.blue = solar_blue +theme.white = solar_base3 -- end temp, stolen theme.border_width = 2 -theme.border_normal = "#202020" -theme.border_focus = "#404040" -theme.border_marked = "#91231c" +theme.border_normal = solar_base03 +theme.border_focus = solar_base02 +theme.border_marked = solar_red -- theme.border_normal = theme.fg_normal -- theme.border_normal = theme.bg_normal -theme.tasklist_bg_normal = "#00000000" - +theme.tasklist_bg_normal = transparent +awesome_path = "/home/yorick/.nix-profile/share/awesome/themes/default/" -- There are other variable sets -- overriding the default one when -- defined, the sets are: @@ -63,7 +81,7 @@ theme.taglist_squares_unsel = "/home/yorick/dotfiles/awesome/icons/squarew.png" -- Variables set for theming the menu: -- menu_[bg|fg]_[normal|focus] -- menu_[border_color|border_width] -theme.menu_submenu_icon = "/usr/share/awesome/themes/default/submenu.png" +theme.menu_submenu_icon = awesome_path .. "submenu.png" theme.menu_height = 15 theme.menu_width = 100 @@ -73,46 +91,46 @@ theme.menu_width = 100 --theme.bg_widget = "#cc0000" -- Define the image to load -theme.titlebar_close_button_normal = "/usr/share/awesome/themes/default/titlebar/close_normal.png" -theme.titlebar_close_button_focus = "/usr/share/awesome/themes/default/titlebar/close_focus.png" +theme.titlebar_close_button_normal = awesome_path .. "titlebar/close_normal.png" +theme.titlebar_close_button_focus = awesome_path .. "titlebar/close_focus.png" -theme.titlebar_ontop_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_normal_inactive.png" -theme.titlebar_ontop_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_active = "/usr/share/awesome/themes/default/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_active = "/usr/share/awesome/themes/default/titlebar/ontop_focus_active.png" +theme.titlebar_ontop_button_normal_inactive = awesome_path .. "titlebar/ontop_normal_inactive.png" +theme.titlebar_ontop_button_focus_inactive = awesome_path .. "titlebar/ontop_focus_inactive.png" +theme.titlebar_ontop_button_normal_active = awesome_path .. "titlebar/ontop_normal_active.png" +theme.titlebar_ontop_button_focus_active = awesome_path .. "titlebar/ontop_focus_active.png" -theme.titlebar_sticky_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_normal_inactive.png" -theme.titlebar_sticky_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_active = "/usr/share/awesome/themes/default/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_active = "/usr/share/awesome/themes/default/titlebar/sticky_focus_active.png" +theme.titlebar_sticky_button_normal_inactive = awesome_path .. "titlebar/sticky_normal_inactive.png" +theme.titlebar_sticky_button_focus_inactive = awesome_path .. "titlebar/sticky_focus_inactive.png" +theme.titlebar_sticky_button_normal_active = awesome_path .. "titlebar/sticky_normal_active.png" +theme.titlebar_sticky_button_focus_active = awesome_path .. "titlebar/sticky_focus_active.png" -theme.titlebar_floating_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/floating_normal_inactive.png" -theme.titlebar_floating_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_active = "/usr/share/awesome/themes/default/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_active = "/usr/share/awesome/themes/default/titlebar/floating_focus_active.png" +theme.titlebar_floating_button_normal_inactive = awesome_path .. "titlebar/floating_normal_inactive.png" +theme.titlebar_floating_button_focus_inactive = awesome_path .. "titlebar/floating_focus_inactive.png" +theme.titlebar_floating_button_normal_active = awesome_path .. "titlebar/floating_normal_active.png" +theme.titlebar_floating_button_focus_active = awesome_path .. "titlebar/floating_focus_active.png" -theme.titlebar_maximized_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_normal_inactive.png" -theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png" +theme.titlebar_maximized_button_normal_inactive = awesome_path .. "titlebar/maximized_normal_inactive.png" +theme.titlebar_maximized_button_focus_inactive = awesome_path .. "titlebar/maximized_focus_inactive.png" +theme.titlebar_maximized_button_normal_active = awesome_path .. "titlebar/maximized_normal_active.png" +theme.titlebar_maximized_button_focus_active = awesome_path .. "titlebar/maximized_focus_active.png" -theme.wallpaper = "/home/yorick/dotfiles/awesome/wallpaper.jpg" +theme.wallpaper = "/home/yorick/dotfiles/awesome/wallpaper.png" -- You can use your own layout icons like this: -theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png" -theme.layout_fairv = "/usr/share/awesome/themes/default/layouts/fairvw.png" -theme.layout_floating = "/usr/share/awesome/themes/default/layouts/floatingw.png" -theme.layout_magnifier = "/usr/share/awesome/themes/default/layouts/magnifierw.png" -theme.layout_max = "/usr/share/awesome/themes/default/layouts/maxw.png" -theme.layout_fullscreen = "/usr/share/awesome/themes/default/layouts/fullscreenw.png" -theme.layout_tilebottom = "/usr/share/awesome/themes/default/layouts/tilebottomw.png" -theme.layout_tileleft = "/usr/share/awesome/themes/default/layouts/tileleftw.png" -theme.layout_tile = "/usr/share/awesome/themes/default/layouts/tilew.png" -theme.layout_tiletop = "/usr/share/awesome/themes/default/layouts/tiletopw.png" -theme.layout_spiral = "/usr/share/awesome/themes/default/layouts/spiralw.png" -theme.layout_dwindle = "/usr/share/awesome/themes/default/layouts/dwindlew.png" +theme.layout_fairh = awesome_path .. "layouts/fairhw.png" +theme.layout_fairv = awesome_path .. "layouts/fairvw.png" +theme.layout_floating = awesome_path .. "layouts/floatingw.png" +theme.layout_magnifier = awesome_path .. "layouts/magnifierw.png" +theme.layout_max = awesome_path .. "layouts/maxw.png" +theme.layout_fullscreen = awesome_path .. "layouts/fullscreenw.png" +theme.layout_tilebottom = awesome_path .. "layouts/tilebottomw.png" +theme.layout_tileleft = awesome_path .. "layouts/tileleftw.png" +theme.layout_tile = awesome_path .. "layouts/tilew.png" +theme.layout_tiletop = awesome_path .. "layouts/tiletopw.png" +theme.layout_spiral = awesome_path .. "layouts/spiralw.png" +theme.layout_dwindle = awesome_path .. "layouts/dwindlew.png" -theme.awesome_icon = "/home/yorick/dotfiles/awesome/icons/png/arch.png" +theme.awesome_icon = "/home/yorick/dotfiles/awesome/icons/lambda.png" -- Define the icon theme for application icons. If not set then the icons -- from /usr/share/icons and /usr/share/icons/hicolor will be used.