diff --git a/themes/blackburn/icons/awesome.png b/themes/blackburn/icons/awesome.png deleted file mode 100755 index 947a06d..0000000 Binary files a/themes/blackburn/icons/awesome.png and /dev/null differ diff --git a/themes/blackburn/icons/dwindle.png b/themes/blackburn/icons/dwindle.png deleted file mode 100755 index 2f4b4ac..0000000 Binary files a/themes/blackburn/icons/dwindle.png and /dev/null differ diff --git a/themes/blackburn/icons/fairh.png b/themes/blackburn/icons/fairh.png deleted file mode 100755 index b0030e7..0000000 Binary files a/themes/blackburn/icons/fairh.png and /dev/null differ diff --git a/themes/blackburn/icons/fairv.png b/themes/blackburn/icons/fairv.png deleted file mode 100755 index 2c0e157..0000000 Binary files a/themes/blackburn/icons/fairv.png and /dev/null differ diff --git a/themes/blackburn/icons/floating.png b/themes/blackburn/icons/floating.png deleted file mode 100755 index e0bdd4b..0000000 Binary files a/themes/blackburn/icons/floating.png and /dev/null differ diff --git a/themes/blackburn/icons/magnifier.png b/themes/blackburn/icons/magnifier.png deleted file mode 100755 index 3713108..0000000 Binary files a/themes/blackburn/icons/magnifier.png and /dev/null differ diff --git a/themes/blackburn/icons/max.png b/themes/blackburn/icons/max.png deleted file mode 100755 index 8828d12..0000000 Binary files a/themes/blackburn/icons/max.png and /dev/null differ diff --git a/themes/blackburn/icons/spiral.png b/themes/blackburn/icons/spiral.png deleted file mode 100755 index 54c2c5e..0000000 Binary files a/themes/blackburn/icons/spiral.png and /dev/null differ diff --git a/themes/blackburn/icons/square_sel.png b/themes/blackburn/icons/square_sel.png deleted file mode 100755 index 6938cca..0000000 Binary files a/themes/blackburn/icons/square_sel.png and /dev/null differ diff --git a/themes/blackburn/icons/square_unsel.png b/themes/blackburn/icons/square_unsel.png deleted file mode 100755 index dd8064d..0000000 Binary files a/themes/blackburn/icons/square_unsel.png and /dev/null differ diff --git a/themes/blackburn/icons/submenu.png b/themes/blackburn/icons/submenu.png deleted file mode 100755 index 10ca014..0000000 Binary files a/themes/blackburn/icons/submenu.png and /dev/null differ diff --git a/themes/blackburn/icons/tile.png b/themes/blackburn/icons/tile.png deleted file mode 100755 index 409141f..0000000 Binary files a/themes/blackburn/icons/tile.png and /dev/null differ diff --git a/themes/blackburn/icons/tilebottom.png b/themes/blackburn/icons/tilebottom.png deleted file mode 100755 index de68e9c..0000000 Binary files a/themes/blackburn/icons/tilebottom.png and /dev/null differ diff --git a/themes/blackburn/icons/tileleft.png b/themes/blackburn/icons/tileleft.png deleted file mode 100755 index c47e4ee..0000000 Binary files a/themes/blackburn/icons/tileleft.png and /dev/null differ diff --git a/themes/blackburn/icons/tiletop.png b/themes/blackburn/icons/tiletop.png deleted file mode 100755 index c50abdf..0000000 Binary files a/themes/blackburn/icons/tiletop.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/close_focus.png b/themes/blackburn/icons/titlebar/close_focus.png deleted file mode 100755 index d0bc2e8..0000000 Binary files a/themes/blackburn/icons/titlebar/close_focus.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/close_normal.png b/themes/blackburn/icons/titlebar/close_normal.png deleted file mode 100755 index f99db1a..0000000 Binary files a/themes/blackburn/icons/titlebar/close_normal.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/floating_focus_active.png b/themes/blackburn/icons/titlebar/floating_focus_active.png deleted file mode 100755 index 1a0649f..0000000 Binary files a/themes/blackburn/icons/titlebar/floating_focus_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/floating_focus_inactive.png b/themes/blackburn/icons/titlebar/floating_focus_inactive.png deleted file mode 100755 index 47f19f6..0000000 Binary files a/themes/blackburn/icons/titlebar/floating_focus_inactive.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/floating_normal_active.png b/themes/blackburn/icons/titlebar/floating_normal_active.png deleted file mode 100755 index 44b8dac..0000000 Binary files a/themes/blackburn/icons/titlebar/floating_normal_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/floating_normal_inactive.png b/themes/blackburn/icons/titlebar/floating_normal_inactive.png deleted file mode 100755 index 98f7f1d..0000000 Binary files a/themes/blackburn/icons/titlebar/floating_normal_inactive.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/maximized_focus_active.png b/themes/blackburn/icons/titlebar/maximized_focus_active.png deleted file mode 100755 index eab9b37..0000000 Binary files a/themes/blackburn/icons/titlebar/maximized_focus_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/maximized_focus_inactive.png b/themes/blackburn/icons/titlebar/maximized_focus_inactive.png deleted file mode 100755 index bce1d00..0000000 Binary files a/themes/blackburn/icons/titlebar/maximized_focus_inactive.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/maximized_normal_active.png b/themes/blackburn/icons/titlebar/maximized_normal_active.png deleted file mode 100755 index 4f03984..0000000 Binary files a/themes/blackburn/icons/titlebar/maximized_normal_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/maximized_normal_inactive.png b/themes/blackburn/icons/titlebar/maximized_normal_inactive.png deleted file mode 100755 index 2e56d32..0000000 Binary files a/themes/blackburn/icons/titlebar/maximized_normal_inactive.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/minimize_focus.png b/themes/blackburn/icons/titlebar/minimize_focus.png deleted file mode 100755 index 5a968c3..0000000 Binary files a/themes/blackburn/icons/titlebar/minimize_focus.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/minimize_normal.png b/themes/blackburn/icons/titlebar/minimize_normal.png deleted file mode 100755 index 0574ae5..0000000 Binary files a/themes/blackburn/icons/titlebar/minimize_normal.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/ontop_focus_active.png b/themes/blackburn/icons/titlebar/ontop_focus_active.png deleted file mode 100755 index 42a9770..0000000 Binary files a/themes/blackburn/icons/titlebar/ontop_focus_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/ontop_focus_inactive.png b/themes/blackburn/icons/titlebar/ontop_focus_inactive.png deleted file mode 100755 index 2f3a2be..0000000 Binary files a/themes/blackburn/icons/titlebar/ontop_focus_inactive.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/ontop_normal_active.png b/themes/blackburn/icons/titlebar/ontop_normal_active.png deleted file mode 100755 index 499dfbf..0000000 Binary files a/themes/blackburn/icons/titlebar/ontop_normal_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/ontop_normal_inactive.png b/themes/blackburn/icons/titlebar/ontop_normal_inactive.png deleted file mode 100755 index a9a3206..0000000 Binary files a/themes/blackburn/icons/titlebar/ontop_normal_inactive.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/sticky_focus_active.png b/themes/blackburn/icons/titlebar/sticky_focus_active.png deleted file mode 100755 index 72864ac..0000000 Binary files a/themes/blackburn/icons/titlebar/sticky_focus_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/sticky_focus_inactive.png b/themes/blackburn/icons/titlebar/sticky_focus_inactive.png deleted file mode 100755 index 5493d8e..0000000 Binary files a/themes/blackburn/icons/titlebar/sticky_focus_inactive.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/sticky_normal_active.png b/themes/blackburn/icons/titlebar/sticky_normal_active.png deleted file mode 100755 index a150154..0000000 Binary files a/themes/blackburn/icons/titlebar/sticky_normal_active.png and /dev/null differ diff --git a/themes/blackburn/icons/titlebar/sticky_normal_inactive.png b/themes/blackburn/icons/titlebar/sticky_normal_inactive.png deleted file mode 100755 index 7e6c99b..0000000 Binary files a/themes/blackburn/icons/titlebar/sticky_normal_inactive.png and /dev/null differ diff --git a/themes/blackburn/theme.lua b/themes/blackburn/theme.lua deleted file mode 100644 index d777d9b..0000000 --- a/themes/blackburn/theme.lua +++ /dev/null @@ -1,280 +0,0 @@ ---[[ - - Blackburn Awesome WM theme 3.0 - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local os = os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/blackburn" -theme.wallpaper = theme.dir .. "/wall.png" -theme.font = "Terminus 10.5" -theme.taglist_font = "Icons 10" -theme.fg_normal = "#D7D7D7" -theme.fg_focus = "#F6784F" -theme.bg_normal = "#060606" -theme.bg_focus = "#060606" -theme.fg_urgent = "#CC9393" -theme.bg_urgent = "#2A1F1E" -theme.border_width = dpi(1) -theme.border_normal = "#0E0E0E" -theme.border_focus = "#F79372" -theme.taglist_fg_focus = "#F6784F" -theme.taglist_bg_focus = "#060606" -theme.tasklist_fg_focus = "#F6784F" -theme.tasklist_bg_focus = "#060606" -theme.menu_height = dpi(16) -theme.menu_width = dpi(130) -theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" -theme.awesome_icon = theme.dir .."/icons/awesome.png" -theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" -theme.layout_tile = theme.dir .. "/icons/tile.png" -theme.layout_tileleft = theme.dir .. "/icons/tileleft.png" -theme.layout_tilebottom = theme.dir .. "/icons/tilebottom.png" -theme.layout_tiletop = theme.dir .. "/icons/tiletop.png" -theme.layout_fairv = theme.dir .. "/icons/fairv.png" -theme.layout_fairh = theme.dir .. "/icons/fairh.png" -theme.layout_spiral = theme.dir .. "/icons/spiral.png" -theme.layout_dwindle = theme.dir .. "/icons/dwindle.png" -theme.layout_max = theme.dir .. "/icons/max.png" -theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png" -theme.layout_magnifier = theme.dir .. "/icons/magnifier.png" -theme.layout_floating = theme.dir .. "/icons/floating.png" -theme.tasklist_plain_task_name = true -theme.tasklist_disable_icon = true -theme.useless_gap = 0 -theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png" -theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png" -theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png" -theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png" -theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png" -theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png" -theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png" -theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png" -theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png" -theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png" -theme.titlebar_minimize_button_focus = theme.dir .. "/icons/titlebar/minimize_focus.png" -theme.titlebar_minimize_button_normal = theme.dir .. "/icons/titlebar/minimize_normal.png" - -awful.util.tagnames = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" } - -local markup = lain.util.markup -local separators = lain.util.separators -local gray = "#9E9C9A" - --- Textclock -local mytextclock = wibox.widget.textclock(" %H:%M ") -mytextclock.font = theme.font - --- Calendar -theme.cal = lain.widget.cal({ - attach_to = { mytextclock }, - notification_preset = { - font = "Terminus 11", - fg = theme.fg_normal, - bg = theme.bg_normal - } -}) - --- Mail IMAP check ---[[ to be set before use -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - notification_preset = { fg = white } - settings = function() - mail = "" - count = "" - - if mailcount > 0 then - mail = "Mail " - count = mailcount .. " " - end - - widget:set_markup(markup.font(theme.font, markup(gray, mail) .. count)) - end -}) ---]] - --- MPD -theme.mpd = lain.widget.mpd({ - settings = function() - mpd_notification_preset.fg = white - artist = mpd_now.artist .. " " - title = mpd_now.title .. " " - - if mpd_now.state == "pause" then - artist = "mpd " - title = "paused " - elseif mpd_now.state == "stop" then - artist = "" - title = "" - end - - widget:set_markup(markup.font(theme.font, markup(gray, artist) .. title .. " ")) - end -}) - --- /home fs ---[[ commented because it needs Gio/Glib >= 2.54 -theme.fs = lain.widget.fs({ - notification_preset = { fg = white, bg = theme.bg_normal, font = "Terminus 10.5" }, - settings = function() - fs_header = "" - fs_p = "" - - if fs_now["/home"].percentage >= 90 then - fs_header = " Hdd " - fs_p = fs_now["/home"].percentage - end - - widget:set_markup(markup.font(theme.font, markup(gray, fs_header) .. fs_p)) - end -}) ---]] - --- Battery -local bat = lain.widget.bat({ - settings = function() - bat_header = " Bat " - bat_p = bat_now.perc .. " " - widget:set_markup(markup.font(theme.font, markup(gray, bat_header) .. bat_p)) - end -}) - --- ALSA volume -theme.volume = lain.widget.alsa({ - --togglechannel = "IEC958,3", - settings = function() - header = " Vol " - vlevel = volume_now.level - - if volume_now.status == "off" then - vlevel = vlevel .. "M " - else - vlevel = vlevel .. " " - end - - widget:set_markup(markup.font(theme.font, markup(gray, header) .. vlevel)) - end -}) - --- Weather ---[[ to be set before use -theme.weather = lain.widget.weather({ - --APPID = - city_id = 2643743, -- placeholder (London) - settings = function() - units = math.floor(weather_now["main"]["temp"]) - widget:set_markup(" " .. units .. " ") - end -}) ---]] - --- Separators -local first = wibox.widget.textbox(' ') -local arrl_pre = separators.arrow_right("alpha", "#1A1A1A") -local arrl_post = separators.arrow_right("#1A1A1A", "alpha") - -local barheight = dpi(18) -local barcolor = gears.color({ - type = "linear", - from = { barheight, 0 }, - to = { barheight, barheight }, - stops = { {0, theme.bg_focus }, {0.8, theme.border_normal}, {1, "#1A1A1A"} } -}) -theme.titlebar_bg = barcolor - -theme.titlebar_bg_focus = gears.color({ - type = "linear", - from = { barheight, 0 }, - to = { barheight, barheight }, - stops = { {0, theme.bg_normal}, {0.5, theme.border_normal}, {1, "#492417"} } -}) - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contains an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(my_table.join( - awful.button({}, 1, function () awful.layout.inc( 1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function () awful.layout.inc(-1) end), - awful.button({}, 4, function () awful.layout.inc( 1) end), - awful.button({}, 5, function () awful.layout.inc(-1) end))) - - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons, { bg_normal = barcolor, bg_focus = barcolor }) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(18), bg = barcolor }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - first, - s.mytaglist, - arrl_pre, - s.mylayoutbox, - arrl_post, - s.mypromptbox, - first, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - first, - theme.mpd.widget, - --theme.mail.widget, - --theme.weather.icon, - --theme.weather.widget, - --theme.fs.widget, - bat, - theme.volume.widget, - mytextclock, - }, - } -end - -return theme diff --git a/themes/blackburn/wall.png b/themes/blackburn/wall.png deleted file mode 100755 index 6774d91..0000000 Binary files a/themes/blackburn/wall.png and /dev/null differ diff --git a/themes/copland/icons/ac.png b/themes/copland/icons/ac.png deleted file mode 100755 index 4b00cd1..0000000 Binary files a/themes/copland/icons/ac.png and /dev/null differ diff --git a/themes/copland/icons/awesome.png b/themes/copland/icons/awesome.png deleted file mode 100755 index b24e00d..0000000 Binary files a/themes/copland/icons/awesome.png and /dev/null differ diff --git a/themes/copland/icons/bat.png b/themes/copland/icons/bat.png deleted file mode 100755 index 4ea9b2b..0000000 Binary files a/themes/copland/icons/bat.png and /dev/null differ diff --git a/themes/copland/icons/bat_low.png b/themes/copland/icons/bat_low.png deleted file mode 100755 index c198675..0000000 Binary files a/themes/copland/icons/bat_low.png and /dev/null differ diff --git a/themes/copland/icons/bat_no.png b/themes/copland/icons/bat_no.png deleted file mode 100755 index 5cf536f..0000000 Binary files a/themes/copland/icons/bat_no.png and /dev/null differ diff --git a/themes/copland/icons/centerfair.png b/themes/copland/icons/centerfair.png deleted file mode 100755 index 185d5e1..0000000 Binary files a/themes/copland/icons/centerfair.png and /dev/null differ diff --git a/themes/copland/icons/centerwork.png b/themes/copland/icons/centerwork.png deleted file mode 100755 index 49d5a11..0000000 Binary files a/themes/copland/icons/centerwork.png and /dev/null differ diff --git a/themes/copland/icons/disk.png b/themes/copland/icons/disk.png deleted file mode 100755 index 3ccd728..0000000 Binary files a/themes/copland/icons/disk.png and /dev/null differ diff --git a/themes/copland/icons/dwindle.png b/themes/copland/icons/dwindle.png deleted file mode 100755 index 55b61b0..0000000 Binary files a/themes/copland/icons/dwindle.png and /dev/null differ diff --git a/themes/copland/icons/fairh.png b/themes/copland/icons/fairh.png deleted file mode 100755 index 848f5a8..0000000 Binary files a/themes/copland/icons/fairh.png and /dev/null differ diff --git a/themes/copland/icons/fairv.png b/themes/copland/icons/fairv.png deleted file mode 100755 index 610eb7b..0000000 Binary files a/themes/copland/icons/fairv.png and /dev/null differ diff --git a/themes/copland/icons/floating.png b/themes/copland/icons/floating.png deleted file mode 100755 index d8ce00a..0000000 Binary files a/themes/copland/icons/floating.png and /dev/null differ diff --git a/themes/copland/icons/fullscreen.png b/themes/copland/icons/fullscreen.png deleted file mode 100755 index feb44d1..0000000 Binary files a/themes/copland/icons/fullscreen.png and /dev/null differ diff --git a/themes/copland/icons/magnifier.png b/themes/copland/icons/magnifier.png deleted file mode 100755 index 49616bc..0000000 Binary files a/themes/copland/icons/magnifier.png and /dev/null differ diff --git a/themes/copland/icons/max.png b/themes/copland/icons/max.png deleted file mode 100755 index 3f4bdec..0000000 Binary files a/themes/copland/icons/max.png and /dev/null differ diff --git a/themes/copland/icons/pause.png b/themes/copland/icons/pause.png deleted file mode 100755 index 381e532..0000000 Binary files a/themes/copland/icons/pause.png and /dev/null differ diff --git a/themes/copland/icons/play.png b/themes/copland/icons/play.png deleted file mode 100755 index 05ad253..0000000 Binary files a/themes/copland/icons/play.png and /dev/null differ diff --git a/themes/copland/icons/spiral.png b/themes/copland/icons/spiral.png deleted file mode 100755 index 664afb4..0000000 Binary files a/themes/copland/icons/spiral.png and /dev/null differ diff --git a/themes/copland/icons/square_sel.png b/themes/copland/icons/square_sel.png deleted file mode 100755 index 58b58f2..0000000 Binary files a/themes/copland/icons/square_sel.png and /dev/null differ diff --git a/themes/copland/icons/square_unsel.png b/themes/copland/icons/square_unsel.png deleted file mode 100755 index 40411f4..0000000 Binary files a/themes/copland/icons/square_unsel.png and /dev/null differ diff --git a/themes/copland/icons/stop.png b/themes/copland/icons/stop.png deleted file mode 100755 index b01b75e..0000000 Binary files a/themes/copland/icons/stop.png and /dev/null differ diff --git a/themes/copland/icons/submenu.png b/themes/copland/icons/submenu.png deleted file mode 100755 index 10ed739..0000000 Binary files a/themes/copland/icons/submenu.png and /dev/null differ diff --git a/themes/copland/icons/termfair.png b/themes/copland/icons/termfair.png deleted file mode 100755 index 9cfb636..0000000 Binary files a/themes/copland/icons/termfair.png and /dev/null differ diff --git a/themes/copland/icons/tile.png b/themes/copland/icons/tile.png deleted file mode 100755 index 890e354..0000000 Binary files a/themes/copland/icons/tile.png and /dev/null differ diff --git a/themes/copland/icons/tilebottom.png b/themes/copland/icons/tilebottom.png deleted file mode 100755 index aac4302..0000000 Binary files a/themes/copland/icons/tilebottom.png and /dev/null differ diff --git a/themes/copland/icons/tileleft.png b/themes/copland/icons/tileleft.png deleted file mode 100755 index c87a32f..0000000 Binary files a/themes/copland/icons/tileleft.png and /dev/null differ diff --git a/themes/copland/icons/tiletop.png b/themes/copland/icons/tiletop.png deleted file mode 100755 index 89f7f8d..0000000 Binary files a/themes/copland/icons/tiletop.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/close_focus.png b/themes/copland/icons/titlebar/close_focus.png deleted file mode 100755 index c1fa3ad..0000000 Binary files a/themes/copland/icons/titlebar/close_focus.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/close_normal.png b/themes/copland/icons/titlebar/close_normal.png deleted file mode 100755 index 77cd8eb..0000000 Binary files a/themes/copland/icons/titlebar/close_normal.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/floating_focus_active.png b/themes/copland/icons/titlebar/floating_focus_active.png deleted file mode 100755 index 8fcf336..0000000 Binary files a/themes/copland/icons/titlebar/floating_focus_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/floating_focus_inactive.png b/themes/copland/icons/titlebar/floating_focus_inactive.png deleted file mode 100755 index 47f19f6..0000000 Binary files a/themes/copland/icons/titlebar/floating_focus_inactive.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/floating_normal_active.png b/themes/copland/icons/titlebar/floating_normal_active.png deleted file mode 100755 index df17970..0000000 Binary files a/themes/copland/icons/titlebar/floating_normal_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/floating_normal_inactive.png b/themes/copland/icons/titlebar/floating_normal_inactive.png deleted file mode 100755 index 98f7f1d..0000000 Binary files a/themes/copland/icons/titlebar/floating_normal_inactive.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/maximized_focus_active.png b/themes/copland/icons/titlebar/maximized_focus_active.png deleted file mode 100755 index 96e8937..0000000 Binary files a/themes/copland/icons/titlebar/maximized_focus_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/maximized_focus_inactive.png b/themes/copland/icons/titlebar/maximized_focus_inactive.png deleted file mode 100755 index bce1d00..0000000 Binary files a/themes/copland/icons/titlebar/maximized_focus_inactive.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/maximized_normal_active.png b/themes/copland/icons/titlebar/maximized_normal_active.png deleted file mode 100755 index 6ce0b10..0000000 Binary files a/themes/copland/icons/titlebar/maximized_normal_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/maximized_normal_inactive.png b/themes/copland/icons/titlebar/maximized_normal_inactive.png deleted file mode 100755 index 2e56d32..0000000 Binary files a/themes/copland/icons/titlebar/maximized_normal_inactive.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/ontop_focus_active.png b/themes/copland/icons/titlebar/ontop_focus_active.png deleted file mode 100755 index d206ea4..0000000 Binary files a/themes/copland/icons/titlebar/ontop_focus_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/ontop_focus_inactive.png b/themes/copland/icons/titlebar/ontop_focus_inactive.png deleted file mode 100755 index 2f3a2be..0000000 Binary files a/themes/copland/icons/titlebar/ontop_focus_inactive.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/ontop_normal_active.png b/themes/copland/icons/titlebar/ontop_normal_active.png deleted file mode 100755 index 9a26d34..0000000 Binary files a/themes/copland/icons/titlebar/ontop_normal_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/ontop_normal_inactive.png b/themes/copland/icons/titlebar/ontop_normal_inactive.png deleted file mode 100755 index a9a3206..0000000 Binary files a/themes/copland/icons/titlebar/ontop_normal_inactive.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/sticky_focus_active.png b/themes/copland/icons/titlebar/sticky_focus_active.png deleted file mode 100755 index 7e360db..0000000 Binary files a/themes/copland/icons/titlebar/sticky_focus_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/sticky_focus_inactive.png b/themes/copland/icons/titlebar/sticky_focus_inactive.png deleted file mode 100755 index 5493d8e..0000000 Binary files a/themes/copland/icons/titlebar/sticky_focus_inactive.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/sticky_normal_active.png b/themes/copland/icons/titlebar/sticky_normal_active.png deleted file mode 100755 index a06138d..0000000 Binary files a/themes/copland/icons/titlebar/sticky_normal_active.png and /dev/null differ diff --git a/themes/copland/icons/titlebar/sticky_normal_inactive.png b/themes/copland/icons/titlebar/sticky_normal_inactive.png deleted file mode 100755 index 7e6c99b..0000000 Binary files a/themes/copland/icons/titlebar/sticky_normal_inactive.png and /dev/null differ diff --git a/themes/copland/icons/vol.png b/themes/copland/icons/vol.png deleted file mode 100755 index 847d575..0000000 Binary files a/themes/copland/icons/vol.png and /dev/null differ diff --git a/themes/copland/icons/vol_low.png b/themes/copland/icons/vol_low.png deleted file mode 100755 index 54d653e..0000000 Binary files a/themes/copland/icons/vol_low.png and /dev/null differ diff --git a/themes/copland/icons/vol_mute.png b/themes/copland/icons/vol_mute.png deleted file mode 100755 index 361412d..0000000 Binary files a/themes/copland/icons/vol_mute.png and /dev/null differ diff --git a/themes/copland/icons/vol_no.png b/themes/copland/icons/vol_no.png deleted file mode 100755 index 06d1a97..0000000 Binary files a/themes/copland/icons/vol_no.png and /dev/null differ diff --git a/themes/copland/theme.lua b/themes/copland/theme.lua deleted file mode 100644 index 56a25d6..0000000 --- a/themes/copland/theme.lua +++ /dev/null @@ -1,375 +0,0 @@ ---[[ - - Copland Awesome WM theme 2.0 - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local awesome, client, os = awesome, client, os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/copland" -theme.wallpaper = theme.dir .. "/wall.png" -theme.font = "Terminus 10.5" -theme.fg_normal = "#BBBBBB" -theme.fg_focus = "#78A4FF" -theme.bg_normal = "#111111" -theme.bg_focus = "#111111" -theme.fg_urgent = "#000000" -theme.bg_urgent = "#FFFFFF" -theme.border_width = dpi(1) -theme.border_normal = "#141414" -theme.border_focus = "#93B6FF" -theme.taglist_fg_focus = "#FFFFFF" -theme.taglist_bg_focus = "#111111" -theme.taglist_bg_normal = "#111111" -theme.titlebar_bg_normal = "#191919" -theme.titlebar_bg_focus = "#262626" -theme.menu_height = dpi(16) -theme.menu_width = dpi(130) -theme.tasklist_disable_icon = true -theme.awesome_icon = theme.dir .."/icons/awesome.png" -theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" -theme.taglist_squares_sel = theme.dir .. "/icons/square_unsel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" -theme.vol = theme.dir .. "/icons/vol.png" -theme.vol_low = theme.dir .. "/icons/vol_low.png" -theme.vol_no = theme.dir .. "/icons/vol_no.png" -theme.vol_mute = theme.dir .. "/icons/vol_mute.png" -theme.disk = theme.dir .. "/icons/disk.png" -theme.ac = theme.dir .. "/icons/ac.png" -theme.bat = theme.dir .. "/icons/bat.png" -theme.bat_low = theme.dir .. "/icons/bat_low.png" -theme.bat_no = theme.dir .. "/icons/bat_no.png" -theme.play = theme.dir .. "/icons/play.png" -theme.pause = theme.dir .. "/icons/pause.png" -theme.stop = theme.dir .. "/icons/stop.png" -theme.layout_tile = theme.dir .. "/icons/tile.png" -theme.layout_tileleft = theme.dir .. "/icons/tileleft.png" -theme.layout_tilebottom = theme.dir .. "/icons/tilebottom.png" -theme.layout_tiletop = theme.dir .. "/icons/tiletop.png" -theme.layout_fairv = theme.dir .. "/icons/fairv.png" -theme.layout_fairh = theme.dir .. "/icons/fairh.png" -theme.layout_spiral = theme.dir .. "/icons/spiral.png" -theme.layout_dwindle = theme.dir .. "/icons/dwindle.png" -theme.layout_max = theme.dir .. "/icons/max.png" -theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png" -theme.layout_magnifier = theme.dir .. "/icons/magnifier.png" -theme.layout_floating = theme.dir .. "/icons/floating.png" -theme.useless_gap = 0 -theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png" -theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png" -theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png" -theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png" -theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png" -theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png" -theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png" -theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png" -theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png" -theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png" - --- lain related -theme.layout_centerfair = theme.dir .. "/icons/centerfair.png" -theme.layout_termfair = theme.dir .. "/icons/termfair.png" -theme.layout_centerwork = theme.dir .. "/icons/centerwork.png" - -local markup = lain.util.markup -local blue = theme.fg_focus -local red = "#EB8F8F" -local green = "#8FEB8F" - --- Textclock ---os.setlocale(os.getenv("LANG")) -- to localize the clock -local mytextclock = wibox.widget.textclock(" %H:%M ") -mytextclock.font = theme.font - --- Calendar -theme.cal = lain.widget.cal({ - attach_to = { mytextclock }, - notification_preset = { - font = "Terminus 11", - fg = theme.fg_normal, - bg = theme.bg_normal - } -}) - --- Mail IMAP check ---[[ to be set before use -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - settings = function() - mail = "" - count = "" - - if mailcount > 0 then - mail = " Mail " - count = mailcount .. " " - end - - widget:set_markup(markup(blue, mail) .. count) - end -}) ---]] - --- MPD -local mpdicon = wibox.widget.imagebox() -theme.mpd = lain.widget.mpd({ - settings = function() - if mpd_now.state == "play" then - title = mpd_now.title - artist = " " .. mpd_now.artist .. markup("#777777", " | ") - mpdicon:set_image(theme.play) - elseif mpd_now.state == "pause" then - title = "mpd " - artist = "paused" .. markup("#777777", " | ") - mpdicon:set_image(theme.pause) - else - title = "" - artist = "" - mpdicon._private.image = nil - mpdicon:emit_signal("widget::redraw_needed") - mpdicon:emit_signal("widget::layout_changed") - end - - widget:set_markup(markup.font(theme.font, markup(blue, title) .. artist)) - end -}) - --- Battery -local baticon = wibox.widget.imagebox(theme.bat) -local batbar = wibox.widget { - forced_height = dpi(1), - forced_width = dpi(59), - color = theme.fg_normal, - background_color = theme.bg_normal, - margins = 1, - paddings = 1, - ticks = true, - ticks_size = dpi(6), - widget = wibox.widget.progressbar, -} -local batupd = lain.widget.bat({ - settings = function() - if (not bat_now.status) or bat_now.status == "N/A" or type(bat_now.perc) ~= "number" then return end - - if bat_now.status == "Charging" then - baticon:set_image(theme.ac) - if bat_now.perc >= 98 then - batbar:set_color(green) - elseif bat_now.perc > 50 then - batbar:set_color(theme.fg_normal) - elseif bat_now.perc > 15 then - batbar:set_color(theme.fg_normal) - else - batbar:set_color(red) - end - else - if bat_now.perc >= 98 then - batbar:set_color(green) - elseif bat_now.perc > 50 then - batbar:set_color(theme.fg_normal) - baticon:set_image(theme.bat) - elseif bat_now.perc > 15 then - batbar:set_color(theme.fg_normal) - baticon:set_image(theme.bat_low) - else - batbar:set_color(red) - baticon:set_image(theme.bat_no) - end - end - batbar:set_value(bat_now.perc / 100) - end -}) -local batbg = wibox.container.background(batbar, "#474747", gears.shape.rectangle) -local batwidget = wibox.container.margin(batbg, dpi(2), dpi(7), dpi(4), dpi(4)) - --- /home fs ---[[ commented because it needs Gio/Glib >= 2.54 -local fsicon = wibox.widget.imagebox(theme.disk) -local fsbar = wibox.widget { - forced_height = dpi(1), - forced_width = dpi(59), - color = theme.fg_normal, - background_color = theme.bg_normal, - margins = 1, - paddings = 1, - ticks = true, - ticks_size = dpi(6), - widget = wibox.widget.progressbar, -} -theme.fs = lain.widget.fs { - notification_preset = { fg = theme.fg_normal, bg = theme.bg_normal, font = "Terminus 10.5" }, - settings = function() - if fs_now["/home"].percentage < 90 then - fsbar:set_color(theme.fg_normal) - else - fsbar:set_color("#EB8F8F") - end - fsbar:set_value(fs_now["/home"].percentage / 100) - end -} -local fsbg = wibox.container.background(fsbar, "#474747", gears.shape.rectangle) -local fswidget = wibox.container.margin(fsbg, dpi(2), dpi(7), dpi(4), dpi(4)) ---]] - --- ALSA volume bar -local volicon = wibox.widget.imagebox(theme.vol) -theme.volume = lain.widget.alsabar { - width = dpi(59), border_width = 0, ticks = true, ticks_size = dpi(6), - notification_preset = { font = theme.font }, - --togglechannel = "IEC958,3", - settings = function() - if volume_now.status == "off" then - volicon:set_image(theme.vol_mute) - elseif volume_now.level == 0 then - volicon:set_image(theme.vol_no) - elseif volume_now.level <= 50 then - volicon:set_image(theme.vol_low) - else - volicon:set_image(theme.vol) - end - end, - colors = { - background = theme.bg_normal, - mute = red, - unmute = theme.fg_normal - } -} -theme.volume.tooltip.wibox.fg = theme.fg_focus -theme.volume.bar:buttons(my_table.join ( - awful.button({}, 1, function() - awful.spawn(string.format("%s -e alsamixer", awful.util.terminal)) - end), - awful.button({}, 2, function() - os.execute(string.format("%s set %s 100%%", theme.volume.cmd, theme.volume.channel)) - theme.volume.update() - end), - awful.button({}, 3, function() - os.execute(string.format("%s set %s toggle", theme.volume.cmd, theme.volume.togglechannel or theme.volume.channel)) - theme.volume.update() - end), - awful.button({}, 4, function() - os.execute(string.format("%s set %s 1%%+", theme.volume.cmd, theme.volume.channel)) - theme.volume.update() - end), - awful.button({}, 5, function() - os.execute(string.format("%s set %s 1%%-", theme.volume.cmd, theme.volume.channel)) - theme.volume.update() - end) -)) -local volumebg = wibox.container.background(theme.volume.bar, "#474747", gears.shape.rectangle) -local volumewidget = wibox.container.margin(volumebg, dpi(2), dpi(7), dpi(4), dpi(4)) - --- Weather ---[[ to be set before use -theme.weather = lain.widget.weather({ - --APPID = - city_id = 2643743, -- placeholder (London) -}) ---]] - --- Separators -local first = wibox.widget.textbox(markup.font("Terminus 3", " ")) -local spr = wibox.widget.textbox(' ') -local small_spr = wibox.widget.textbox(markup.font("Terminus 4", " ")) -local bar_spr = wibox.widget.textbox(markup.font("Terminus 3", " ") .. markup.fontfg(theme.font, "#777777", "|") .. markup.font("Terminus 5", " ")) - --- Eminent-like task filtering -local orig_filter = awful.widget.taglist.filter.all - --- Taglist label functions -awful.widget.taglist.filter.all = function (t, args) - if t.selected or #t:clients() > 0 then - return orig_filter(t, args) - end -end - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contains an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(my_table.join( - awful.button({}, 1, function () awful.layout.inc( 1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function () awful.layout.inc(-1) end), - awful.button({}, 4, function () awful.layout.inc( 1) end), - awful.button({}, 5, function () awful.layout.inc(-1) end))) - - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(18), bg = theme.bg_normal, fg = theme.fg_normal }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - small_spr, - s.mylayoutbox, - first, - bar_spr, - s.mytaglist, - first, - s.mypromptbox, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - small_spr, - --theme.mail.widget, - mpdicon, - theme.mpd.widget, - baticon, - batwidget, - bar_spr, - --fsicon, - --fswidget, - bar_spr, - volicon, - volumewidget, - bar_spr, - mytextclock, - }, - } -end - -return theme diff --git a/themes/copland/wall.png b/themes/copland/wall.png deleted file mode 100644 index ea9e4cc..0000000 Binary files a/themes/copland/wall.png and /dev/null differ diff --git a/themes/dremora/icons/awesome.png b/themes/dremora/icons/awesome.png deleted file mode 100755 index ffb105e..0000000 Binary files a/themes/dremora/icons/awesome.png and /dev/null differ diff --git a/themes/dremora/icons/dwindle.png b/themes/dremora/icons/dwindle.png deleted file mode 100755 index 04f3918..0000000 Binary files a/themes/dremora/icons/dwindle.png and /dev/null differ diff --git a/themes/dremora/icons/fairh.png b/themes/dremora/icons/fairh.png deleted file mode 100755 index 0bb6dab..0000000 Binary files a/themes/dremora/icons/fairh.png and /dev/null differ diff --git a/themes/dremora/icons/fairv.png b/themes/dremora/icons/fairv.png deleted file mode 100755 index aff6c26..0000000 Binary files a/themes/dremora/icons/fairv.png and /dev/null differ diff --git a/themes/dremora/icons/floating.png b/themes/dremora/icons/floating.png deleted file mode 100755 index 5d021b1..0000000 Binary files a/themes/dremora/icons/floating.png and /dev/null differ diff --git a/themes/dremora/icons/magnifier.png b/themes/dremora/icons/magnifier.png deleted file mode 100755 index dd4dec3..0000000 Binary files a/themes/dremora/icons/magnifier.png and /dev/null differ diff --git a/themes/dremora/icons/max.png b/themes/dremora/icons/max.png deleted file mode 100755 index 7334f8b..0000000 Binary files a/themes/dremora/icons/max.png and /dev/null differ diff --git a/themes/dremora/icons/spiral.png b/themes/dremora/icons/spiral.png deleted file mode 100755 index 31cbbd0..0000000 Binary files a/themes/dremora/icons/spiral.png and /dev/null differ diff --git a/themes/dremora/icons/square_sel.png b/themes/dremora/icons/square_sel.png deleted file mode 100755 index 85cc605..0000000 Binary files a/themes/dremora/icons/square_sel.png and /dev/null differ diff --git a/themes/dremora/icons/square_unsel.png b/themes/dremora/icons/square_unsel.png deleted file mode 100755 index 1c58e4b..0000000 Binary files a/themes/dremora/icons/square_unsel.png and /dev/null differ diff --git a/themes/dremora/icons/submenu.png b/themes/dremora/icons/submenu.png deleted file mode 100755 index 988ef9e..0000000 Binary files a/themes/dremora/icons/submenu.png and /dev/null differ diff --git a/themes/dremora/icons/tile.png b/themes/dremora/icons/tile.png deleted file mode 100755 index 72cbd6c..0000000 Binary files a/themes/dremora/icons/tile.png and /dev/null differ diff --git a/themes/dremora/icons/tilebottom.png b/themes/dremora/icons/tilebottom.png deleted file mode 100755 index a927128..0000000 Binary files a/themes/dremora/icons/tilebottom.png and /dev/null differ diff --git a/themes/dremora/icons/tileleft.png b/themes/dremora/icons/tileleft.png deleted file mode 100755 index c54d1f5..0000000 Binary files a/themes/dremora/icons/tileleft.png and /dev/null differ diff --git a/themes/dremora/icons/tiletop.png b/themes/dremora/icons/tiletop.png deleted file mode 100755 index db74cf3..0000000 Binary files a/themes/dremora/icons/tiletop.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/close_focus.png b/themes/dremora/icons/titlebar/close_focus.png deleted file mode 100755 index 221bca0..0000000 Binary files a/themes/dremora/icons/titlebar/close_focus.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/close_normal.png b/themes/dremora/icons/titlebar/close_normal.png deleted file mode 100755 index f923983..0000000 Binary files a/themes/dremora/icons/titlebar/close_normal.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/floating_focus_active.png b/themes/dremora/icons/titlebar/floating_focus_active.png deleted file mode 100755 index d83bd00..0000000 Binary files a/themes/dremora/icons/titlebar/floating_focus_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/floating_focus_inactive.png b/themes/dremora/icons/titlebar/floating_focus_inactive.png deleted file mode 100755 index 47f19f6..0000000 Binary files a/themes/dremora/icons/titlebar/floating_focus_inactive.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/floating_normal_active.png b/themes/dremora/icons/titlebar/floating_normal_active.png deleted file mode 100755 index b788552..0000000 Binary files a/themes/dremora/icons/titlebar/floating_normal_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/floating_normal_inactive.png b/themes/dremora/icons/titlebar/floating_normal_inactive.png deleted file mode 100755 index 4adc5e9..0000000 Binary files a/themes/dremora/icons/titlebar/floating_normal_inactive.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/maximized_focus_active.png b/themes/dremora/icons/titlebar/maximized_focus_active.png deleted file mode 100755 index 2599cd5..0000000 Binary files a/themes/dremora/icons/titlebar/maximized_focus_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/maximized_focus_inactive.png b/themes/dremora/icons/titlebar/maximized_focus_inactive.png deleted file mode 100755 index bce1d00..0000000 Binary files a/themes/dremora/icons/titlebar/maximized_focus_inactive.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/maximized_normal_active.png b/themes/dremora/icons/titlebar/maximized_normal_active.png deleted file mode 100755 index a5b1d76..0000000 Binary files a/themes/dremora/icons/titlebar/maximized_normal_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/maximized_normal_inactive.png b/themes/dremora/icons/titlebar/maximized_normal_inactive.png deleted file mode 100755 index 2e56d32..0000000 Binary files a/themes/dremora/icons/titlebar/maximized_normal_inactive.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/ontop_focus_active.png b/themes/dremora/icons/titlebar/ontop_focus_active.png deleted file mode 100755 index ade12fe..0000000 Binary files a/themes/dremora/icons/titlebar/ontop_focus_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/ontop_focus_inactive.png b/themes/dremora/icons/titlebar/ontop_focus_inactive.png deleted file mode 100755 index 2f3a2be..0000000 Binary files a/themes/dremora/icons/titlebar/ontop_focus_inactive.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/ontop_normal_active.png b/themes/dremora/icons/titlebar/ontop_normal_active.png deleted file mode 100755 index 02facc4..0000000 Binary files a/themes/dremora/icons/titlebar/ontop_normal_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/ontop_normal_inactive.png b/themes/dremora/icons/titlebar/ontop_normal_inactive.png deleted file mode 100755 index a9a3206..0000000 Binary files a/themes/dremora/icons/titlebar/ontop_normal_inactive.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/sticky_focus_active.png b/themes/dremora/icons/titlebar/sticky_focus_active.png deleted file mode 100755 index ebd45a1..0000000 Binary files a/themes/dremora/icons/titlebar/sticky_focus_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/sticky_focus_inactive.png b/themes/dremora/icons/titlebar/sticky_focus_inactive.png deleted file mode 100755 index 5493d8e..0000000 Binary files a/themes/dremora/icons/titlebar/sticky_focus_inactive.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/sticky_normal_active.png b/themes/dremora/icons/titlebar/sticky_normal_active.png deleted file mode 100755 index 15f0bc4..0000000 Binary files a/themes/dremora/icons/titlebar/sticky_normal_active.png and /dev/null differ diff --git a/themes/dremora/icons/titlebar/sticky_normal_inactive.png b/themes/dremora/icons/titlebar/sticky_normal_inactive.png deleted file mode 100755 index 7e6c99b..0000000 Binary files a/themes/dremora/icons/titlebar/sticky_normal_inactive.png and /dev/null differ diff --git a/themes/dremora/theme.lua b/themes/dremora/theme.lua deleted file mode 100644 index 5b84554..0000000 --- a/themes/dremora/theme.lua +++ /dev/null @@ -1,256 +0,0 @@ ---[[ - - Dremora Awesome WM theme 2.0 - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local os = os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/dremora" -theme.wallpaper = theme.dir .. "/wall.png" -theme.font = "Terminus 10.5" -theme.taglist_font = "Icons 10" -theme.fg_normal = "#747474" -theme.fg_focus = "#DDDCFF" -theme.bg_normal = "#121212" -theme.bg_focus = "#121212" -theme.fg_urgent = "#CC9393" -theme.bg_urgent = "#2A1F1E" -theme.border_width = dpi(0) -theme.border_normal = "#121212" -theme.border_focus = "#292929" -theme.titlebar_bg_focus = "#292929" -theme.taglist_fg_focus = "#dddcff" -theme.taglist_bg_focus = "#121212" -theme.menu_height = dpi(16) -theme.menu_width = dpi(130) -theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" -theme.awesome_icon = theme.dir .."/icons/awesome.png" -theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" -theme.layout_tile = theme.dir .. "/icons/tile.png" -theme.layout_tileleft = theme.dir .. "/icons/tileleft.png" -theme.layout_tilebottom = theme.dir .. "/icons/tilebottom.png" -theme.layout_tiletop = theme.dir .. "/icons/tiletop.png" -theme.layout_fairv = theme.dir .. "/icons/fairv.png" -theme.layout_fairh = theme.dir .. "/icons/fairh.png" -theme.layout_spiral = theme.dir .. "/icons/spiral.png" -theme.layout_dwindle = theme.dir .. "/icons/dwindle.png" -theme.layout_max = theme.dir .. "/icons/max.png" -theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png" -theme.layout_magnifier = theme.dir .. "/icons/magnifier.png" -theme.layout_floating = theme.dir .. "/icons/floating.png" -theme.tasklist_plain_task_name = true -theme.tasklist_disable_icon = true -theme.useless_gap = dpi(10) -theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png" -theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png" -theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png" -theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png" -theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png" -theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png" -theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png" -theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png" -theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png" -theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png" - -awful.util.tagnames = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" } - -local markup = lain.util.markup -local separators = lain.util.separators -local white = theme.fg_focus -local gray = "#858585" - --- Textclock -local mytextclock = wibox.widget.textclock(markup(gray, " %a") -.. markup(white, " %d ") .. markup(gray, "%b ") .. markup(white, "%H:%M ")) -mytextclock.font = theme.font - --- Calendar -theme.cal = lain.widget.cal({ - attach_to = { mytextclock }, - notification_preset = { - font = "Terminus 11", - fg = white, - bg = theme.bg_normal -}}) - --- Mail IMAP check ---[[ to be set before use -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - notification_preset = { fg = white } - settings = function() - mail = "" - count = "" - - if mailcount > 0 then - mail = "Mail " - count = mailcount .. " " - end - - widget:set_markup(markup.font(theme.font, markup(gray, mail) .. markup(white, count))) - end -}) ---]] - --- MPD -theme.mpd = lain.widget.mpd({ - settings = function() - mpd_notification_preset.fg = white - artist = mpd_now.artist .. " " - title = mpd_now.title .. " " - - if mpd_now.state == "pause" then - artist = "mpd " - title = "paused " - elseif mpd_now.state == "stop" then - artist = "" - title = "" - end - - widget:set_markup(markup.font(theme.font, markup(gray, artist) .. markup(white, title))) - end -}) - --- /home fs ---[[ commented because it needs Gio/Glib >= 2.54 -theme.fs = lain.widget.fs({ - notification_preset = { fg = white, bg = theme.bg_normal, font = "Terminus 10.5" }, - settings = function() - fs_header = "" - fs_p = "" - - if fs_now["/home"].percentage >= 90 then - fs_header = " Hdd " - fs_p = fs_now["/home"].percentage - end - - widget:set_markup(markup.font(theme.font, markup(gray, fs_header) .. markup(white, fs_p))) - end -}) ---]] - --- Battery -local bat = lain.widget.bat({ - settings = function() - bat_header = " Bat " - bat_p = bat_now.perc .. " " - widget:set_markup(markup.font(theme.font, markup(gray, bat_header) .. markup(white, bat_p))) - end -}) - --- ALSA volume -theme.volume = lain.widget.alsa({ - --togglechannel = "IEC958,3", - settings = function() - header = " Vol " - vlevel = volume_now.level - - if volume_now.status == "off" then - vlevel = vlevel .. "M " - else - vlevel = vlevel .. " " - end - - widget:set_markup(markup.font(theme.font, markup(gray, header) .. markup(white, vlevel))) - end -}) - --- Weather ---[[ to be set before use -theme.weather = lain.widget.weather({ - --APPID = - city_id = 2643743, -- placeholder (London) - notification_preset = { fg = white } -}) ---]] - --- Separators -local first = wibox.widget.textbox(' ') -local arrl_pre = separators.arrow_right("alpha", "#1A1A1A") -local arrl_post = separators.arrow_right("#1A1A1A", "alpha") - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contains an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(my_table.join( - awful.button({}, 1, function () awful.layout.inc( 1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function () awful.layout.inc(-1) end), - awful.button({}, 4, function () awful.layout.inc( 1) end), - awful.button({}, 5, function () awful.layout.inc(-1) end))) - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(18), bg = theme.bg_normal, fg = theme.fg_normal }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - first, - s.mytaglist, - arrl_pre, - s.mylayoutbox, - arrl_post, - s.mypromptbox, - first, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - first, - theme.mpd.widget, - --theme.mail.widget, - --theme.fs.widget, - bat.widget, - theme.volume.widget, - mytextclock, - }, - } -end - -return theme diff --git a/themes/dremora/wall.png b/themes/dremora/wall.png deleted file mode 100755 index 4501b60..0000000 Binary files a/themes/dremora/wall.png and /dev/null differ diff --git a/themes/holo/icons/awesome_icon.png b/themes/holo/icons/awesome_icon.png deleted file mode 100755 index ae13162..0000000 Binary files a/themes/holo/icons/awesome_icon.png and /dev/null differ diff --git a/themes/holo/icons/awesome_icon_white.png b/themes/holo/icons/awesome_icon_white.png deleted file mode 100755 index 1b0de6e..0000000 Binary files a/themes/holo/icons/awesome_icon_white.png and /dev/null differ diff --git a/themes/holo/icons/bar.png b/themes/holo/icons/bar.png deleted file mode 100755 index 767885c..0000000 Binary files a/themes/holo/icons/bar.png and /dev/null differ diff --git a/themes/holo/icons/bottom_bar.png b/themes/holo/icons/bottom_bar.png deleted file mode 100755 index 076ad3b..0000000 Binary files a/themes/holo/icons/bottom_bar.png and /dev/null differ diff --git a/themes/holo/icons/cal.png b/themes/holo/icons/cal.png deleted file mode 100755 index 1b023ec..0000000 Binary files a/themes/holo/icons/cal.png and /dev/null differ diff --git a/themes/holo/icons/clock.png b/themes/holo/icons/clock.png deleted file mode 100755 index 6b2c4e5..0000000 Binary files a/themes/holo/icons/clock.png and /dev/null differ diff --git a/themes/holo/icons/cpu.png b/themes/holo/icons/cpu.png deleted file mode 100755 index 1ce87eb..0000000 Binary files a/themes/holo/icons/cpu.png and /dev/null differ diff --git a/themes/holo/icons/dwindle.png b/themes/holo/icons/dwindle.png deleted file mode 100755 index f68b484..0000000 Binary files a/themes/holo/icons/dwindle.png and /dev/null differ diff --git a/themes/holo/icons/fairh.png b/themes/holo/icons/fairh.png deleted file mode 100755 index c7e5e6d..0000000 Binary files a/themes/holo/icons/fairh.png and /dev/null differ diff --git a/themes/holo/icons/fairv.png b/themes/holo/icons/fairv.png deleted file mode 100755 index d416b9d..0000000 Binary files a/themes/holo/icons/fairv.png and /dev/null differ diff --git a/themes/holo/icons/floating.png b/themes/holo/icons/floating.png deleted file mode 100755 index b91cd07..0000000 Binary files a/themes/holo/icons/floating.png and /dev/null differ diff --git a/themes/holo/icons/magnifier.png b/themes/holo/icons/magnifier.png deleted file mode 100755 index e1f744e..0000000 Binary files a/themes/holo/icons/magnifier.png and /dev/null differ diff --git a/themes/holo/icons/max.png b/themes/holo/icons/max.png deleted file mode 100755 index 50d3994..0000000 Binary files a/themes/holo/icons/max.png and /dev/null differ diff --git a/themes/holo/icons/mpd.png b/themes/holo/icons/mpd.png deleted file mode 100755 index efa8ec3..0000000 Binary files a/themes/holo/icons/mpd.png and /dev/null differ diff --git a/themes/holo/icons/net_down.png b/themes/holo/icons/net_down.png deleted file mode 100755 index d5075a1..0000000 Binary files a/themes/holo/icons/net_down.png and /dev/null differ diff --git a/themes/holo/icons/net_up.png b/themes/holo/icons/net_up.png deleted file mode 100755 index 66dfb54..0000000 Binary files a/themes/holo/icons/net_up.png and /dev/null differ diff --git a/themes/holo/icons/next.png b/themes/holo/icons/next.png deleted file mode 100755 index 148ce90..0000000 Binary files a/themes/holo/icons/next.png and /dev/null differ diff --git a/themes/holo/icons/pause.png b/themes/holo/icons/pause.png deleted file mode 100755 index 9e9bc3f..0000000 Binary files a/themes/holo/icons/pause.png and /dev/null differ diff --git a/themes/holo/icons/play.png b/themes/holo/icons/play.png deleted file mode 100755 index 1949983..0000000 Binary files a/themes/holo/icons/play.png and /dev/null differ diff --git a/themes/holo/icons/prev.png b/themes/holo/icons/prev.png deleted file mode 100755 index d913bba..0000000 Binary files a/themes/holo/icons/prev.png and /dev/null differ diff --git a/themes/holo/icons/spiral.png b/themes/holo/icons/spiral.png deleted file mode 100755 index ebb7bb3..0000000 Binary files a/themes/holo/icons/spiral.png and /dev/null differ diff --git a/themes/holo/icons/spr_bottom_right.png b/themes/holo/icons/spr_bottom_right.png deleted file mode 100755 index d702f98..0000000 Binary files a/themes/holo/icons/spr_bottom_right.png and /dev/null differ diff --git a/themes/holo/icons/spr_left.png b/themes/holo/icons/spr_left.png deleted file mode 100755 index 44822ed..0000000 Binary files a/themes/holo/icons/spr_left.png and /dev/null differ diff --git a/themes/holo/icons/spr_right.png b/themes/holo/icons/spr_right.png deleted file mode 100755 index 5cca795..0000000 Binary files a/themes/holo/icons/spr_right.png and /dev/null differ diff --git a/themes/holo/icons/spr_small.png b/themes/holo/icons/spr_small.png deleted file mode 100755 index 16492a8..0000000 Binary files a/themes/holo/icons/spr_small.png and /dev/null differ diff --git a/themes/holo/icons/spr_very_small.png b/themes/holo/icons/spr_very_small.png deleted file mode 100755 index 8b9a227..0000000 Binary files a/themes/holo/icons/spr_very_small.png and /dev/null differ diff --git a/themes/holo/icons/square_sel.png b/themes/holo/icons/square_sel.png deleted file mode 100755 index 73fb845..0000000 Binary files a/themes/holo/icons/square_sel.png and /dev/null differ diff --git a/themes/holo/icons/square_unsel.png b/themes/holo/icons/square_unsel.png deleted file mode 100755 index 07dd9f0..0000000 Binary files a/themes/holo/icons/square_unsel.png and /dev/null differ diff --git a/themes/holo/icons/stop.png b/themes/holo/icons/stop.png deleted file mode 100755 index bfc819c..0000000 Binary files a/themes/holo/icons/stop.png and /dev/null differ diff --git a/themes/holo/icons/tile.png b/themes/holo/icons/tile.png deleted file mode 100755 index e2e52bb..0000000 Binary files a/themes/holo/icons/tile.png and /dev/null differ diff --git a/themes/holo/icons/tilebottom.png b/themes/holo/icons/tilebottom.png deleted file mode 100755 index 439f528..0000000 Binary files a/themes/holo/icons/tilebottom.png and /dev/null differ diff --git a/themes/holo/icons/tileleft.png b/themes/holo/icons/tileleft.png deleted file mode 100755 index 827e0d1..0000000 Binary files a/themes/holo/icons/tileleft.png and /dev/null differ diff --git a/themes/holo/icons/tiletop.png b/themes/holo/icons/tiletop.png deleted file mode 100755 index 7139846..0000000 Binary files a/themes/holo/icons/tiletop.png and /dev/null differ diff --git a/themes/holo/theme.lua b/themes/holo/theme.lua deleted file mode 100644 index 75a7b48..0000000 --- a/themes/holo/theme.lua +++ /dev/null @@ -1,393 +0,0 @@ ---[[ - - Holo Awesome WM theme 3.0 - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local string, os = string, os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.default_dir = require("awful.util").get_themes_dir() .. "default" -theme.icon_dir = os.getenv("HOME") .. "/.config/awesome/themes/holo/icons" -theme.wallpaper = os.getenv("HOME") .. "/.config/awesome/themes/holo/wall.png" -theme.font = "Roboto Bold 10" -theme.taglist_font = "Roboto Condensed Regular 8" -theme.fg_normal = "#FFFFFF" -theme.fg_focus = "#0099CC" -theme.bg_focus = "#303030" -theme.bg_normal = "#242424" -theme.fg_urgent = "#CC9393" -theme.bg_urgent = "#006B8E" -theme.border_width = dpi(3) -theme.border_normal = "#252525" -theme.border_focus = "#0099CC" -theme.taglist_fg_focus = "#FFFFFF" -theme.tasklist_bg_normal = "#222222" -theme.tasklist_fg_focus = "#4CB7DB" -theme.menu_height = dpi(20) -theme.menu_width = dpi(160) -theme.menu_icon_size = dpi(32) -theme.awesome_icon = theme.icon_dir .. "/awesome_icon_white.png" -theme.awesome_icon_launcher = theme.icon_dir .. "/awesome_icon.png" -theme.taglist_squares_sel = theme.icon_dir .. "/square_sel.png" -theme.taglist_squares_unsel = theme.icon_dir .. "/square_unsel.png" -theme.spr_small = theme.icon_dir .. "/spr_small.png" -theme.spr_very_small = theme.icon_dir .. "/spr_very_small.png" -theme.spr_right = theme.icon_dir .. "/spr_right.png" -theme.spr_bottom_right = theme.icon_dir .. "/spr_bottom_right.png" -theme.spr_left = theme.icon_dir .. "/spr_left.png" -theme.bar = theme.icon_dir .. "/bar.png" -theme.bottom_bar = theme.icon_dir .. "/bottom_bar.png" -theme.mpdl = theme.icon_dir .. "/mpd.png" -theme.mpd_on = theme.icon_dir .. "/mpd_on.png" -theme.prev = theme.icon_dir .. "/prev.png" -theme.nex = theme.icon_dir .. "/next.png" -theme.stop = theme.icon_dir .. "/stop.png" -theme.pause = theme.icon_dir .. "/pause.png" -theme.play = theme.icon_dir .. "/play.png" -theme.clock = theme.icon_dir .. "/clock.png" -theme.calendar = theme.icon_dir .. "/cal.png" -theme.cpu = theme.icon_dir .. "/cpu.png" -theme.net_up = theme.icon_dir .. "/net_up.png" -theme.net_down = theme.icon_dir .. "/net_down.png" -theme.layout_tile = theme.icon_dir .. "/tile.png" -theme.layout_tileleft = theme.icon_dir .. "/tileleft.png" -theme.layout_tilebottom = theme.icon_dir .. "/tilebottom.png" -theme.layout_tiletop = theme.icon_dir .. "/tiletop.png" -theme.layout_fairv = theme.icon_dir .. "/fairv.png" -theme.layout_fairh = theme.icon_dir .. "/fairh.png" -theme.layout_spiral = theme.icon_dir .. "/spiral.png" -theme.layout_dwindle = theme.icon_dir .. "/dwindle.png" -theme.layout_max = theme.icon_dir .. "/max.png" -theme.layout_fullscreen = theme.icon_dir .. "/fullscreen.png" -theme.layout_magnifier = theme.icon_dir .. "/magnifier.png" -theme.layout_floating = theme.icon_dir .. "/floating.png" -theme.tasklist_plain_task_name = true -theme.tasklist_disable_icon = true -theme.useless_gap = dpi(4) -theme.titlebar_close_button_normal = theme.default_dir.."/titlebar/close_normal.png" -theme.titlebar_close_button_focus = theme.default_dir.."/titlebar/close_focus.png" -theme.titlebar_minimize_button_normal = theme.default_dir.."/titlebar/minimize_normal.png" -theme.titlebar_minimize_button_focus = theme.default_dir.."/titlebar/minimize_focus.png" -theme.titlebar_ontop_button_normal_inactive = theme.default_dir.."/titlebar/ontop_normal_inactive.png" -theme.titlebar_ontop_button_focus_inactive = theme.default_dir.."/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_active = theme.default_dir.."/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_active = theme.default_dir.."/titlebar/ontop_focus_active.png" -theme.titlebar_sticky_button_normal_inactive = theme.default_dir.."/titlebar/sticky_normal_inactive.png" -theme.titlebar_sticky_button_focus_inactive = theme.default_dir.."/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_active = theme.default_dir.."/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_active = theme.default_dir.."/titlebar/sticky_focus_active.png" -theme.titlebar_floating_button_normal_inactive = theme.default_dir.."/titlebar/floating_normal_inactive.png" -theme.titlebar_floating_button_focus_inactive = theme.default_dir.."/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_active = theme.default_dir.."/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_active = theme.default_dir.."/titlebar/floating_focus_active.png" -theme.titlebar_maximized_button_normal_inactive = theme.default_dir.."/titlebar/maximized_normal_inactive.png" -theme.titlebar_maximized_button_focus_inactive = theme.default_dir.."/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_active = theme.default_dir.."/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_active = theme.default_dir.."/titlebar/maximized_focus_active.png" - -theme.musicplr = string.format("%s -e ncmpcpp", awful.util.terminal) - -local markup = lain.util.markup -local blue = "#80CCE6" -local space3 = markup.font("Roboto 3", " ") - --- Clock -local mytextclock = wibox.widget.textclock(markup("#FFFFFF", space3 .. "%H:%M " .. markup.font("Roboto 4", " "))) -mytextclock.font = theme.font -local clock_icon = wibox.widget.imagebox(theme.clock) -local clockbg = wibox.container.background(mytextclock, theme.bg_focus, gears.shape.rectangle) -local clockwidget = wibox.container.margin(clockbg, dpi(0), dpi(3), dpi(5), dpi(5)) - --- Calendar -local mytextcalendar = wibox.widget.textclock(markup.fontfg(theme.font, "#FFFFFF", space3 .. "%d %b " .. markup.font("Roboto 5", " "))) -local calendar_icon = wibox.widget.imagebox(theme.calendar) -local calbg = wibox.container.background(mytextcalendar, theme.bg_focus, gears.shape.rectangle) -local calendarwidget = wibox.container.margin(calbg, dpi(0), dpi(0), dpi(5), dpi(5)) -theme.cal = lain.widget.cal({ - attach_to = { mytextclock, mytextcalendar }, - notification_preset = { - fg = "#FFFFFF", - bg = theme.bg_normal, - position = "bottom_right", - font = "Monospace 10" - } -}) - --- Mail IMAP check ---[[ to be set before use -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - settings = function() - mail_notification_preset.fg = "#FFFFFF" - mail = "" - count = "" - - if mailcount > 0 then - mail = "Mail " - count = mailcount .. " " - end - - widget:set_markup(markup.font(theme.font, markup(blue, mail) .. markup("#FFFFFF", count))) - end -}) ---]] - --- MPD -local mpd_icon = awful.widget.launcher({ image = theme.mpdl, command = theme.musicplr }) -local prev_icon = wibox.widget.imagebox(theme.prev) -local next_icon = wibox.widget.imagebox(theme.nex) -local stop_icon = wibox.widget.imagebox(theme.stop) -local pause_icon = wibox.widget.imagebox(theme.pause) -local play_pause_icon = wibox.widget.imagebox(theme.play) -theme.mpd = lain.widget.mpd({ - settings = function () - if mpd_now.state == "play" then - mpd_now.artist = mpd_now.artist:upper():gsub("&.-;", string.lower) - mpd_now.title = mpd_now.title:upper():gsub("&.-;", string.lower) - widget:set_markup(markup.font("Roboto 4", " ") - .. markup.font(theme.taglist_font, - " " .. mpd_now.artist - .. " - " .. - mpd_now.title .. " ") .. markup.font("Roboto 5", " ")) - play_pause_icon:set_image(theme.pause) - elseif mpd_now.state == "pause" then - widget:set_markup(markup.font("Roboto 4", " ") .. - markup.font(theme.taglist_font, " MPD PAUSED ") .. - markup.font("Roboto 5", " ")) - play_pause_icon:set_image(theme.play) - else - widget:set_markup("") - play_pause_icon:set_image(theme.play) - end - end -}) -local musicbg = wibox.container.background(theme.mpd.widget, theme.bg_focus, gears.shape.rectangle) -local musicwidget = wibox.container.margin(musicbg, dpi(0), dpi(0), dpi(5), dpi(5)) - -musicwidget:buttons(my_table.join(awful.button({ }, 1, -function () awful.spawn(theme.musicplr) end))) -prev_icon:buttons(my_table.join(awful.button({}, 1, -function () - os.execute("mpc prev") - theme.mpd.update() -end))) -next_icon:buttons(my_table.join(awful.button({}, 1, -function () - os.execute("mpc next") - theme.mpd.update() -end))) -stop_icon:buttons(my_table.join(awful.button({}, 1, -function () - play_pause_icon:set_image(theme.play) - os.execute("mpc stop") - theme.mpd.update() -end))) -play_pause_icon:buttons(my_table.join(awful.button({}, 1, -function () - os.execute("mpc toggle") - theme.mpd.update() -end))) - --- Battery -local bat = lain.widget.bat({ - settings = function() - bat_header = " Bat " - bat_p = bat_now.perc .. " " - if bat_now.ac_status == 1 then - bat_p = bat_p .. "Plugged " - end - widget:set_markup(markup.font(theme.font, markup(blue, bat_header) .. bat_p)) - end -}) - --- / fs ---[[ commented because it needs Gio/Glib >= 2.54 -theme.fs = lain.widget.fs({ - notification_preset = { bg = theme.bg_normal, font = "Monospace 9" }, -}) ---]] - --- ALSA volume bar -theme.volume = lain.widget.alsabar({ - notification_preset = { font = "Monospace 9"}, - --togglechannel = "IEC958,3", - width = dpi(80), height = dpi(10), border_width = dpi(0), - colors = { - background = "#383838", - unmute = "#80CCE6", - mute = "#FF9F9F" - }, -}) -theme.volume.bar.paddings = dpi(0) -theme.volume.bar.margins = dpi(5) -local volumewidget = wibox.container.background(theme.volume.bar, theme.bg_focus, gears.shape.rectangle) -volumewidget = wibox.container.margin(volumewidget, dpi(0), dpi(0), dpi(5), dpi(5)) - --- CPU -local cpu_icon = wibox.widget.imagebox(theme.cpu) -local cpu = lain.widget.cpu({ - settings = function() - widget:set_markup(space3 .. markup.font(theme.font, "CPU " .. cpu_now.usage - .. "% ") .. markup.font("Roboto 5", " ")) - end -}) -local cpubg = wibox.container.background(cpu.widget, theme.bg_focus, gears.shape.rectangle) -local cpuwidget = wibox.container.margin(cpubg, dpi(0), dpi(0), dpi(5), dpi(5)) - --- Net -local netdown_icon = wibox.widget.imagebox(theme.net_down) -local netup_icon = wibox.widget.imagebox(theme.net_up) -local net = lain.widget.net({ - settings = function() - widget:set_markup(markup.font("Roboto 1", " ") .. markup.font(theme.font, net_now.received .. " - " - .. net_now.sent) .. markup.font("Roboto 2", " ")) - end -}) -local netbg = wibox.container.background(net.widget, theme.bg_focus, gears.shape.rectangle) -local networkwidget = wibox.container.margin(netbg, dpi(0), dpi(0), dpi(5), dpi(5)) - --- Weather ---[[ to be set before use -theme.weather = lain.widget.weather({ - --APPID = - city_id = 2643743, -- placeholder (London) - notification_preset = { font = "Monospace 9", position = "bottom_right" }, -}) ---]] - --- Launcher -local mylauncher = awful.widget.button({ image = theme.awesome_icon_launcher }) -mylauncher:connect_signal("button::press", function() awful.util.mymainmenu:toggle() end) - --- Separators -local first = wibox.widget.textbox(' ') -local spr_small = wibox.widget.imagebox(theme.spr_small) -local spr_very_small = wibox.widget.imagebox(theme.spr_very_small) -local spr_right = wibox.widget.imagebox(theme.spr_right) -local spr_bottom_right = wibox.widget.imagebox(theme.spr_bottom_right) -local spr_left = wibox.widget.imagebox(theme.spr_left) -local bar = wibox.widget.imagebox(theme.bar) -local bottom_bar = wibox.widget.imagebox(theme.bottom_bar) - -local barcolor = gears.color({ - type = "linear", - from = { dpi(32), 0 }, - to = { dpi(32), dpi(32) }, - stops = { {0, theme.bg_focus}, {0.25, "#505050"}, {1, theme.bg_focus} } -}) - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contains an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(my_table.join( - awful.button({}, 1, function () awful.layout.inc( 1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function () awful.layout.inc(-1) end), - awful.button({}, 4, function () awful.layout.inc( 1) end), - awful.button({}, 5, function () awful.layout.inc(-1) end))) - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons, { bg_focus = barcolor }) - - mytaglistcont = wibox.container.background(s.mytaglist, theme.bg_focus, gears.shape.rectangle) - s.mytag = wibox.container.margin(mytaglistcont, dpi(0), dpi(0), dpi(5), dpi(5)) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons, { bg_focus = theme.bg_focus, shape = gears.shape.rectangle, shape_border_width = 5, shape_border_color = theme.tasklist_bg_normal, align = "center" }) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(32) }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - first, - s.mytag, - spr_small, - s.mylayoutbox, - spr_small, - s.mypromptbox, - }, - nil, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - --theme.mail.widget, - --bat.widget, - spr_right, - musicwidget, - bar, - prev_icon, - next_icon, - stop_icon, - play_pause_icon, - bar, - mpd_icon, - bar, - spr_very_small, - volumewidget, - spr_left, - }, - } - - -- Create the bottom wibox - s.mybottomwibox = awful.wibar({ position = "bottom", screen = s, border_width = dpi(0), height = dpi(32) }) - s.borderwibox = awful.wibar({ position = "bottom", screen = s, height = dpi(1), bg = theme.fg_focus, x = dpi(0), y = dpi(33)}) - - -- Add widgets to the bottom wibox - s.mybottomwibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - mylauncher, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - spr_bottom_right, - netdown_icon, - networkwidget, - netup_icon, - bottom_bar, - cpu_icon, - cpuwidget, - bottom_bar, - calendar_icon, - calendarwidget, - bottom_bar, - clock_icon, - clockwidget, - }, - } -end - -return theme diff --git a/themes/holo/wall.png b/themes/holo/wall.png deleted file mode 100755 index 7ec8009..0000000 Binary files a/themes/holo/wall.png and /dev/null differ diff --git a/themes/multicolor/icons/ac.png b/themes/multicolor/icons/ac.png deleted file mode 100755 index 272b832..0000000 Binary files a/themes/multicolor/icons/ac.png and /dev/null differ diff --git a/themes/multicolor/icons/bat.png b/themes/multicolor/icons/bat.png deleted file mode 100755 index bd63927..0000000 Binary files a/themes/multicolor/icons/bat.png and /dev/null differ diff --git a/themes/multicolor/icons/clock.png b/themes/multicolor/icons/clock.png deleted file mode 100755 index 22aef71..0000000 Binary files a/themes/multicolor/icons/clock.png and /dev/null differ diff --git a/themes/multicolor/icons/cpu.png b/themes/multicolor/icons/cpu.png deleted file mode 100755 index e3794ca..0000000 Binary files a/themes/multicolor/icons/cpu.png and /dev/null differ diff --git a/themes/multicolor/icons/dish.png b/themes/multicolor/icons/dish.png deleted file mode 100755 index c71499b..0000000 Binary files a/themes/multicolor/icons/dish.png and /dev/null differ diff --git a/themes/multicolor/icons/dwindle.png b/themes/multicolor/icons/dwindle.png deleted file mode 100755 index 94d8382..0000000 Binary files a/themes/multicolor/icons/dwindle.png and /dev/null differ diff --git a/themes/multicolor/icons/fairh.png b/themes/multicolor/icons/fairh.png deleted file mode 100755 index 4468efc..0000000 Binary files a/themes/multicolor/icons/fairh.png and /dev/null differ diff --git a/themes/multicolor/icons/fairv.png b/themes/multicolor/icons/fairv.png deleted file mode 100755 index 7c8728e..0000000 Binary files a/themes/multicolor/icons/fairv.png and /dev/null differ diff --git a/themes/multicolor/icons/floating.png b/themes/multicolor/icons/floating.png deleted file mode 100755 index 7593a2a..0000000 Binary files a/themes/multicolor/icons/floating.png and /dev/null differ diff --git a/themes/multicolor/icons/fs.png b/themes/multicolor/icons/fs.png deleted file mode 100755 index 1c1b13e..0000000 Binary files a/themes/multicolor/icons/fs.png and /dev/null differ diff --git a/themes/multicolor/icons/fullscreen.png b/themes/multicolor/icons/fullscreen.png deleted file mode 100755 index f63a69c..0000000 Binary files a/themes/multicolor/icons/fullscreen.png and /dev/null differ diff --git a/themes/multicolor/icons/magnifier.png b/themes/multicolor/icons/magnifier.png deleted file mode 100755 index 8819554..0000000 Binary files a/themes/multicolor/icons/magnifier.png and /dev/null differ diff --git a/themes/multicolor/icons/mail.png b/themes/multicolor/icons/mail.png deleted file mode 100755 index 25021f5..0000000 Binary files a/themes/multicolor/icons/mail.png and /dev/null differ diff --git a/themes/multicolor/icons/max.png b/themes/multicolor/icons/max.png deleted file mode 100755 index 4b6a8c3..0000000 Binary files a/themes/multicolor/icons/max.png and /dev/null differ diff --git a/themes/multicolor/icons/mem.png b/themes/multicolor/icons/mem.png deleted file mode 100755 index d04ee11..0000000 Binary files a/themes/multicolor/icons/mem.png and /dev/null differ diff --git a/themes/multicolor/icons/net_down.png b/themes/multicolor/icons/net_down.png deleted file mode 100755 index 09433b1..0000000 Binary files a/themes/multicolor/icons/net_down.png and /dev/null differ diff --git a/themes/multicolor/icons/net_up.png b/themes/multicolor/icons/net_up.png deleted file mode 100755 index 395d014..0000000 Binary files a/themes/multicolor/icons/net_up.png and /dev/null differ diff --git a/themes/multicolor/icons/note.png b/themes/multicolor/icons/note.png deleted file mode 100755 index 2f41eb3..0000000 Binary files a/themes/multicolor/icons/note.png and /dev/null differ diff --git a/themes/multicolor/icons/note_on.png b/themes/multicolor/icons/note_on.png deleted file mode 100755 index 264d2c8..0000000 Binary files a/themes/multicolor/icons/note_on.png and /dev/null differ diff --git a/themes/multicolor/icons/spiral.png b/themes/multicolor/icons/spiral.png deleted file mode 100755 index 6a1ebf1..0000000 Binary files a/themes/multicolor/icons/spiral.png and /dev/null differ diff --git a/themes/multicolor/icons/spkr.png b/themes/multicolor/icons/spkr.png deleted file mode 100755 index 80c20b0..0000000 Binary files a/themes/multicolor/icons/spkr.png and /dev/null differ diff --git a/themes/multicolor/icons/square_a.png b/themes/multicolor/icons/square_a.png deleted file mode 100755 index 1774d95..0000000 Binary files a/themes/multicolor/icons/square_a.png and /dev/null differ diff --git a/themes/multicolor/icons/square_b.png b/themes/multicolor/icons/square_b.png deleted file mode 100755 index b47e9f3..0000000 Binary files a/themes/multicolor/icons/square_b.png and /dev/null differ diff --git a/themes/multicolor/icons/submenu.png b/themes/multicolor/icons/submenu.png deleted file mode 100755 index 7c81cab..0000000 Binary files a/themes/multicolor/icons/submenu.png and /dev/null differ diff --git a/themes/multicolor/icons/temp.png b/themes/multicolor/icons/temp.png deleted file mode 100755 index 6c8f8bd..0000000 Binary files a/themes/multicolor/icons/temp.png and /dev/null differ diff --git a/themes/multicolor/icons/tile.png b/themes/multicolor/icons/tile.png deleted file mode 100755 index 64103d9..0000000 Binary files a/themes/multicolor/icons/tile.png and /dev/null differ diff --git a/themes/multicolor/icons/tilebottom.png b/themes/multicolor/icons/tilebottom.png deleted file mode 100755 index 9363636..0000000 Binary files a/themes/multicolor/icons/tilebottom.png and /dev/null differ diff --git a/themes/multicolor/icons/tileleft.png b/themes/multicolor/icons/tileleft.png deleted file mode 100755 index 9331898..0000000 Binary files a/themes/multicolor/icons/tileleft.png and /dev/null differ diff --git a/themes/multicolor/icons/tiletop.png b/themes/multicolor/icons/tiletop.png deleted file mode 100755 index 1cef886..0000000 Binary files a/themes/multicolor/icons/tiletop.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/close_focus.png b/themes/multicolor/icons/titlebar/close_focus.png deleted file mode 100755 index cd297db..0000000 Binary files a/themes/multicolor/icons/titlebar/close_focus.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/close_normal.png b/themes/multicolor/icons/titlebar/close_normal.png deleted file mode 100755 index 5448ed8..0000000 Binary files a/themes/multicolor/icons/titlebar/close_normal.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/floating_focus_active.png b/themes/multicolor/icons/titlebar/floating_focus_active.png deleted file mode 100755 index ae5a8e2..0000000 Binary files a/themes/multicolor/icons/titlebar/floating_focus_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/floating_focus_inactive.png b/themes/multicolor/icons/titlebar/floating_focus_inactive.png deleted file mode 100755 index c54eb0c..0000000 Binary files a/themes/multicolor/icons/titlebar/floating_focus_inactive.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/floating_normal_active.png b/themes/multicolor/icons/titlebar/floating_normal_active.png deleted file mode 100755 index 62342d1..0000000 Binary files a/themes/multicolor/icons/titlebar/floating_normal_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/floating_normal_inactive.png b/themes/multicolor/icons/titlebar/floating_normal_inactive.png deleted file mode 100755 index e2bbdfa..0000000 Binary files a/themes/multicolor/icons/titlebar/floating_normal_inactive.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/maximized_focus_active.png b/themes/multicolor/icons/titlebar/maximized_focus_active.png deleted file mode 100755 index 957298b..0000000 Binary files a/themes/multicolor/icons/titlebar/maximized_focus_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/maximized_focus_inactive.png b/themes/multicolor/icons/titlebar/maximized_focus_inactive.png deleted file mode 100755 index 1187229..0000000 Binary files a/themes/multicolor/icons/titlebar/maximized_focus_inactive.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/maximized_normal_active.png b/themes/multicolor/icons/titlebar/maximized_normal_active.png deleted file mode 100755 index a705f81..0000000 Binary files a/themes/multicolor/icons/titlebar/maximized_normal_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/maximized_normal_inactive.png b/themes/multicolor/icons/titlebar/maximized_normal_inactive.png deleted file mode 100755 index 4c1ab1f..0000000 Binary files a/themes/multicolor/icons/titlebar/maximized_normal_inactive.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/minimize_focus.png b/themes/multicolor/icons/titlebar/minimize_focus.png deleted file mode 100755 index bbe8cff..0000000 Binary files a/themes/multicolor/icons/titlebar/minimize_focus.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/minimize_normal.png b/themes/multicolor/icons/titlebar/minimize_normal.png deleted file mode 100755 index 36621d0..0000000 Binary files a/themes/multicolor/icons/titlebar/minimize_normal.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/ontop_focus_active.png b/themes/multicolor/icons/titlebar/ontop_focus_active.png deleted file mode 100755 index 25a3080..0000000 Binary files a/themes/multicolor/icons/titlebar/ontop_focus_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/ontop_focus_inactive.png b/themes/multicolor/icons/titlebar/ontop_focus_inactive.png deleted file mode 100755 index d3c077a..0000000 Binary files a/themes/multicolor/icons/titlebar/ontop_focus_inactive.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/ontop_normal_active.png b/themes/multicolor/icons/titlebar/ontop_normal_active.png deleted file mode 100755 index 117a203..0000000 Binary files a/themes/multicolor/icons/titlebar/ontop_normal_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/ontop_normal_inactive.png b/themes/multicolor/icons/titlebar/ontop_normal_inactive.png deleted file mode 100755 index d3a10c8..0000000 Binary files a/themes/multicolor/icons/titlebar/ontop_normal_inactive.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/sticky_focus_active.png b/themes/multicolor/icons/titlebar/sticky_focus_active.png deleted file mode 100755 index 147ce6a..0000000 Binary files a/themes/multicolor/icons/titlebar/sticky_focus_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/sticky_focus_inactive.png b/themes/multicolor/icons/titlebar/sticky_focus_inactive.png deleted file mode 100755 index 396628a..0000000 Binary files a/themes/multicolor/icons/titlebar/sticky_focus_inactive.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/sticky_normal_active.png b/themes/multicolor/icons/titlebar/sticky_normal_active.png deleted file mode 100755 index bdb5595..0000000 Binary files a/themes/multicolor/icons/titlebar/sticky_normal_active.png and /dev/null differ diff --git a/themes/multicolor/icons/titlebar/sticky_normal_inactive.png b/themes/multicolor/icons/titlebar/sticky_normal_inactive.png deleted file mode 100755 index a96b9b1..0000000 Binary files a/themes/multicolor/icons/titlebar/sticky_normal_inactive.png and /dev/null differ diff --git a/themes/multicolor/theme.lua b/themes/multicolor/theme.lua deleted file mode 100644 index e7cbbce..0000000 --- a/themes/multicolor/theme.lua +++ /dev/null @@ -1,350 +0,0 @@ ---[[ - - Multicolor Awesome WM theme 2.0 - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local os = os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.confdir = os.getenv("HOME") .. "/.config/awesome/themes/multicolor" -theme.wallpaper = theme.confdir .. "/wall.png" -theme.font = "Terminus 8" -theme.menu_bg_normal = "#000000" -theme.menu_bg_focus = "#000000" -theme.bg_normal = "#000000" -theme.bg_focus = "#000000" -theme.bg_urgent = "#000000" -theme.fg_normal = "#aaaaaa" -theme.fg_focus = "#ff8c00" -theme.fg_urgent = "#af1d18" -theme.fg_minimize = "#ffffff" -theme.border_width = dpi(1) -theme.border_normal = "#1c2022" -theme.border_focus = "#606060" -theme.border_marked = "#3ca4d8" -theme.menu_border_width = 0 -theme.menu_width = dpi(130) -theme.menu_submenu_icon = theme.confdir .. "/icons/submenu.png" -theme.menu_fg_normal = "#aaaaaa" -theme.menu_fg_focus = "#ff8c00" -theme.menu_bg_normal = "#050505dd" -theme.menu_bg_focus = "#050505dd" -theme.widget_temp = theme.confdir .. "/icons/temp.png" -theme.widget_uptime = theme.confdir .. "/icons/ac.png" -theme.widget_cpu = theme.confdir .. "/icons/cpu.png" -theme.widget_weather = theme.confdir .. "/icons/dish.png" -theme.widget_fs = theme.confdir .. "/icons/fs.png" -theme.widget_mem = theme.confdir .. "/icons/mem.png" -theme.widget_note = theme.confdir .. "/icons/note.png" -theme.widget_note_on = theme.confdir .. "/icons/note_on.png" -theme.widget_netdown = theme.confdir .. "/icons/net_down.png" -theme.widget_netup = theme.confdir .. "/icons/net_up.png" -theme.widget_mail = theme.confdir .. "/icons/mail.png" -theme.widget_batt = theme.confdir .. "/icons/bat.png" -theme.widget_clock = theme.confdir .. "/icons/clock.png" -theme.widget_vol = theme.confdir .. "/icons/spkr.png" -theme.taglist_squares_sel = theme.confdir .. "/icons/square_a.png" -theme.taglist_squares_unsel = theme.confdir .. "/icons/square_b.png" -theme.tasklist_plain_task_name = true -theme.tasklist_disable_icon = true -theme.useless_gap = 0 -theme.layout_tile = theme.confdir .. "/icons/tile.png" -theme.layout_tilegaps = theme.confdir .. "/icons/tilegaps.png" -theme.layout_tileleft = theme.confdir .. "/icons/tileleft.png" -theme.layout_tilebottom = theme.confdir .. "/icons/tilebottom.png" -theme.layout_tiletop = theme.confdir .. "/icons/tiletop.png" -theme.layout_fairv = theme.confdir .. "/icons/fairv.png" -theme.layout_fairh = theme.confdir .. "/icons/fairh.png" -theme.layout_spiral = theme.confdir .. "/icons/spiral.png" -theme.layout_dwindle = theme.confdir .. "/icons/dwindle.png" -theme.layout_max = theme.confdir .. "/icons/max.png" -theme.layout_fullscreen = theme.confdir .. "/icons/fullscreen.png" -theme.layout_magnifier = theme.confdir .. "/icons/magnifier.png" -theme.layout_floating = theme.confdir .. "/icons/floating.png" -theme.titlebar_close_button_normal = theme.confdir .. "/icons/titlebar/close_normal.png" -theme.titlebar_close_button_focus = theme.confdir .. "/icons/titlebar/close_focus.png" -theme.titlebar_minimize_button_normal = theme.confdir .. "/icons/titlebar/minimize_normal.png" -theme.titlebar_minimize_button_focus = theme.confdir .. "/icons/titlebar/minimize_focus.png" -theme.titlebar_ontop_button_normal_inactive = theme.confdir .. "/icons/titlebar/ontop_normal_inactive.png" -theme.titlebar_ontop_button_focus_inactive = theme.confdir .. "/icons/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_active = theme.confdir .. "/icons/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_active = theme.confdir .. "/icons/titlebar/ontop_focus_active.png" -theme.titlebar_sticky_button_normal_inactive = theme.confdir .. "/icons/titlebar/sticky_normal_inactive.png" -theme.titlebar_sticky_button_focus_inactive = theme.confdir .. "/icons/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_active = theme.confdir .. "/icons/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_active = theme.confdir .. "/icons/titlebar/sticky_focus_active.png" -theme.titlebar_floating_button_normal_inactive = theme.confdir .. "/icons/titlebar/floating_normal_inactive.png" -theme.titlebar_floating_button_focus_inactive = theme.confdir .. "/icons/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_active = theme.confdir .. "/icons/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_active = theme.confdir .. "/icons/titlebar/floating_focus_active.png" -theme.titlebar_maximized_button_normal_inactive = theme.confdir .. "/icons/titlebar/maximized_normal_inactive.png" -theme.titlebar_maximized_button_focus_inactive = theme.confdir .. "/icons/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_active = theme.confdir .. "/icons/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_active = theme.confdir .. "/icons/titlebar/maximized_focus_active.png" - -local markup = lain.util.markup - --- Textclock -os.setlocale(os.getenv("LANG")) -- to localize the clock -local clockicon = wibox.widget.imagebox(theme.widget_clock) -local mytextclock = wibox.widget.textclock(markup("#7788af", "%A %d %B ") .. markup("#ab7367", ">") .. markup("#de5e1e", " %H:%M ")) -mytextclock.font = theme.font - --- Calendar -theme.cal = lain.widget.cal({ - attach_to = { mytextclock }, - notification_preset = { - font = "Terminus 10", - fg = theme.fg_normal, - bg = theme.bg_normal - } -}) - --- Weather ---[[ to be set before use -local weathericon = wibox.widget.imagebox(theme.widget_weather) -theme.weather = lain.widget.weather({ - city_id = 2643743, -- placeholder (London) - notification_preset = { font = "Terminus 10", fg = theme.fg_normal }, - weather_na_markup = markup.fontfg(theme.font, "#eca4c4", "N/A "), - settings = function() - descr = weather_now["weather"][1]["description"]:lower() - units = math.floor(weather_now["main"]["temp"]) - widget:set_markup(markup.fontfg(theme.font, "#eca4c4", descr .. " @ " .. units .. "°C ")) - end -}) ---]] - --- / fs ---[[ commented because it needs Gio/Glib >= 2.54 -local fsicon = wibox.widget.imagebox(theme.widget_fs) -theme.fs = lain.widget.fs({ - notification_preset = { font = "Terminus 10", fg = theme.fg_normal }, - settings = function() - widget:set_markup(markup.fontfg(theme.font, "#80d9d8", string.format("%.1f", fs_now["/"].used) .. "% ")) - end -}) ---]] - --- Mail IMAP check ---[[ to be set before use -local mailicon = wibox.widget.imagebox() -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - settings = function() - if mailcount > 0 then - mailicon:set_image(theme.widget_mail) - widget:set_markup(markup.fontfg(theme.font, "#cccccc", mailcount .. " ")) - else - widget:set_text("") - --mailicon:set_image() -- not working in 4.0 - mailicon._private.image = nil - mailicon:emit_signal("widget::redraw_needed") - mailicon:emit_signal("widget::layout_changed") - end - end -}) ---]] - --- CPU -local cpuicon = wibox.widget.imagebox(theme.widget_cpu) -local cpu = lain.widget.cpu({ - settings = function() - widget:set_markup(markup.fontfg(theme.font, "#e33a6e", cpu_now.usage .. "% ")) - end -}) - --- Coretemp -local tempicon = wibox.widget.imagebox(theme.widget_temp) -local temp = lain.widget.temp({ - settings = function() - widget:set_markup(markup.fontfg(theme.font, "#f1af5f", coretemp_now .. "°C ")) - end -}) - --- Battery -local baticon = wibox.widget.imagebox(theme.widget_batt) -local bat = lain.widget.bat({ - settings = function() - local perc = bat_now.perc ~= "N/A" and bat_now.perc .. "%" or bat_now.perc - - if bat_now.ac_status == 1 then - perc = perc .. " plug" - end - - widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, perc .. " ")) - end -}) - --- ALSA volume -local volicon = wibox.widget.imagebox(theme.widget_vol) -theme.volume = lain.widget.alsa({ - settings = function() - if volume_now.status == "off" then - volume_now.level = volume_now.level .. "M" - end - - widget:set_markup(markup.fontfg(theme.font, "#7493d2", volume_now.level .. "% ")) - end -}) - --- Net -local netdownicon = wibox.widget.imagebox(theme.widget_netdown) -local netdowninfo = wibox.widget.textbox() -local netupicon = wibox.widget.imagebox(theme.widget_netup) -local netupinfo = lain.widget.net({ - settings = function() - --[[ uncomment if using the weather widget - if iface ~= "network off" and - string.match(theme.weather.widget.text, "N/A") - then - theme.weather.update() - end - --]] - - widget:set_markup(markup.fontfg(theme.font, "#e54c62", net_now.sent .. " ")) - netdowninfo:set_markup(markup.fontfg(theme.font, "#87af5f", net_now.received .. " ")) - end -}) - --- MEM -local memicon = wibox.widget.imagebox(theme.widget_mem) -local memory = lain.widget.mem({ - settings = function() - widget:set_markup(markup.fontfg(theme.font, "#e0da37", mem_now.used .. "M ")) - end -}) - --- MPD -local mpdicon = wibox.widget.imagebox() -theme.mpd = lain.widget.mpd({ - settings = function() - mpd_notification_preset = { - text = string.format("%s [%s] - %s\n%s", mpd_now.artist, - mpd_now.album, mpd_now.date, mpd_now.title) - } - - if mpd_now.state == "play" then - artist = mpd_now.artist .. " > " - title = mpd_now.title .. " " - mpdicon:set_image(theme.widget_note_on) - elseif mpd_now.state == "pause" then - artist = "mpd " - title = "paused " - else - artist = "" - title = "" - --mpdicon:set_image() -- not working in 4.0 - mpdicon._private.image = nil - mpdicon:emit_signal("widget::redraw_needed") - mpdicon:emit_signal("widget::layout_changed") - end - widget:set_markup(markup.fontfg(theme.font, "#e54c62", artist) .. markup.fontfg(theme.font, "#b2b2b2", title)) - end -}) - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contains an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(my_table.join( - awful.button({}, 1, function () awful.layout.inc( 1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function () awful.layout.inc(-1) end), - awful.button({}, 4, function () awful.layout.inc( 1) end), - awful.button({}, 5, function () awful.layout.inc(-1) end))) - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(19), bg = theme.bg_normal, fg = theme.fg_normal }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - --s.mylayoutbox, - s.mytaglist, - s.mypromptbox, - mpdicon, - theme.mpd.widget, - }, - --s.mytasklist, -- Middle widget - nil, - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - --mailicon, - --theme.mail.widget, - netdownicon, - netdowninfo, - netupicon, - netupinfo.widget, - volicon, - theme.volume.widget, - memicon, - memory.widget, - cpuicon, - cpu.widget, - --fsicon, - --theme.fs.widget, - --weathericon, - --theme.weather.widget, - tempicon, - temp.widget, - baticon, - bat.widget, - clockicon, - mytextclock, - }, - } - - -- Create the bottom wibox - s.mybottomwibox = awful.wibar({ position = "bottom", screen = s, border_width = 0, height = dpi(20), bg = theme.bg_normal, fg = theme.fg_normal }) - - -- Add widgets to the bottom wibox - s.mybottomwibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - s.mylayoutbox, - }, - } -end - -return theme diff --git a/themes/multicolor/wall.png b/themes/multicolor/wall.png deleted file mode 100755 index a3188d0..0000000 Binary files a/themes/multicolor/wall.png and /dev/null differ diff --git a/themes/powerarrow/binclock.lua b/themes/powerarrow/binclock.lua deleted file mode 100644 index 68668ea..0000000 --- a/themes/powerarrow/binclock.lua +++ /dev/null @@ -1,96 +0,0 @@ ---[[ - - Licensed under GNU General Public License v2 - * (c) 2017, Luca CPZ - * (c) 2013, romockee - ---]] - -local gears = require("gears") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi -local date = os.date -local ipairs = ipairs -local math = math -local select = select -local string = string - -local binclock = {} - -function binclock.dec2bin(num, bits) - local bits, t = bits or select(2, math.frexp(num)), {} - for b = bits, 1, -1 do - t[b] = math.fmod(num, 2) - num = (num - t[b]) / 2 - end - return t -end - -function binclock.paintdot(cr, val, shift) - local height = 0 - for _, bit in ipairs(binclock.dec2bin(val, 4)) do - if bit >= 1 then - cr:set_source(gears.color(binclock.color_active)) - else - cr:set_source(gears.color(binclock.color_inactive)) - end - cr:rectangle(shift, height, binclock.dotsize, binclock.dotsize) - cr:fill() - height = height + binclock.dotsize + binclock.step - end -end - -local function factory(args) - local args = args or {} - - binclock.width = args.width or dpi(42) - binclock.height = args.height or dpi(18) - binclock.show_seconds = args.show_seconds or false - binclock.color_active = args.color_active or "#CCCCCC" - binclock.color_inactive = args.color_inactive or "#444444" - binclock.dotsize = math.floor(binclock.height / 5) - binclock.step = math.floor(binclock.dotsize / 3) - - binclock.widget = wibox.widget { - fit = function(self, context, width, height) - return binclock.width, binclock.height - end, - draw = function(self, context, cr, width, height) - local t = date("*t") - - local hour = string.format("%02d", t.hour) - local min = string.format("%02d", t.min) - local sec = string.format("%02d", t.sec) - - local col_count = 4 - if binclock.show_seconds then - col_count = 6 - end - local step = math.floor((binclock.width - col_count * binclock.dotsize) / 8) - - binclock.paintdot(cr, string.sub(hour, 1, 1), step, 2) - binclock.paintdot(cr, string.sub(hour, 2, 2), binclock.dotsize + 2 * step) - - binclock.paintdot(cr, string.sub(min, 1, 1), binclock.dotsize * 2 + 4 * step) - binclock.paintdot(cr, string.sub(min, 2, 2), binclock.dotsize * 3 + 5 * step) - - if binclock.show_seconds then - binclock.paintdot(cr, string.sub(sec, 1, 1), binclock.dotsize * 4 + 7 * step) - binclock.paintdot(cr, string.sub(sec, 2, 2), binclock.dotsize * 5 + 8 * step) - end - end, - layout = wibox.widget.base.make_widget - } - - binclock.timer = gears.timer { - autostart = true, - timeout = binclock.show_seconds and 1 or 60, - callback = function() - binclock.widget:emit_signal("widget::redraw_needed") - end - } - - return binclock -end - -return factory diff --git a/themes/powerarrow/icons/ac.png b/themes/powerarrow/icons/ac.png deleted file mode 100755 index 453af4e..0000000 Binary files a/themes/powerarrow/icons/ac.png and /dev/null differ diff --git a/themes/powerarrow/icons/awesome.png b/themes/powerarrow/icons/awesome.png deleted file mode 100755 index 4cabb6c..0000000 Binary files a/themes/powerarrow/icons/awesome.png and /dev/null differ diff --git a/themes/powerarrow/icons/battery.png b/themes/powerarrow/icons/battery.png deleted file mode 100755 index 7dd78a5..0000000 Binary files a/themes/powerarrow/icons/battery.png and /dev/null differ diff --git a/themes/powerarrow/icons/battery_empty.png b/themes/powerarrow/icons/battery_empty.png deleted file mode 100755 index 763aa93..0000000 Binary files a/themes/powerarrow/icons/battery_empty.png and /dev/null differ diff --git a/themes/powerarrow/icons/battery_low.png b/themes/powerarrow/icons/battery_low.png deleted file mode 100755 index 626222f..0000000 Binary files a/themes/powerarrow/icons/battery_low.png and /dev/null differ diff --git a/themes/powerarrow/icons/brightness.png b/themes/powerarrow/icons/brightness.png deleted file mode 100755 index 030d524..0000000 Binary files a/themes/powerarrow/icons/brightness.png and /dev/null differ diff --git a/themes/powerarrow/icons/cpu.png b/themes/powerarrow/icons/cpu.png deleted file mode 100755 index c28a787..0000000 Binary files a/themes/powerarrow/icons/cpu.png and /dev/null differ diff --git a/themes/powerarrow/icons/floating.png b/themes/powerarrow/icons/floating.png deleted file mode 100755 index 079fea4..0000000 Binary files a/themes/powerarrow/icons/floating.png and /dev/null differ diff --git a/themes/powerarrow/icons/fwd.png b/themes/powerarrow/icons/fwd.png deleted file mode 100755 index e9b875e..0000000 Binary files a/themes/powerarrow/icons/fwd.png and /dev/null differ diff --git a/themes/powerarrow/icons/hdd.png b/themes/powerarrow/icons/hdd.png deleted file mode 100755 index 8922eaa..0000000 Binary files a/themes/powerarrow/icons/hdd.png and /dev/null differ diff --git a/themes/powerarrow/icons/mail.png b/themes/powerarrow/icons/mail.png deleted file mode 100755 index be656ed..0000000 Binary files a/themes/powerarrow/icons/mail.png and /dev/null differ diff --git a/themes/powerarrow/icons/mail_on.png b/themes/powerarrow/icons/mail_on.png deleted file mode 100755 index ce8984f..0000000 Binary files a/themes/powerarrow/icons/mail_on.png and /dev/null differ diff --git a/themes/powerarrow/icons/mem.png b/themes/powerarrow/icons/mem.png deleted file mode 100755 index ee6d480..0000000 Binary files a/themes/powerarrow/icons/mem.png and /dev/null differ diff --git a/themes/powerarrow/icons/net.png b/themes/powerarrow/icons/net.png deleted file mode 100755 index 769bfec..0000000 Binary files a/themes/powerarrow/icons/net.png and /dev/null differ diff --git a/themes/powerarrow/icons/next.png b/themes/powerarrow/icons/next.png deleted file mode 100755 index 9a62593..0000000 Binary files a/themes/powerarrow/icons/next.png and /dev/null differ diff --git a/themes/powerarrow/icons/note.png b/themes/powerarrow/icons/note.png deleted file mode 100755 index 19866aa..0000000 Binary files a/themes/powerarrow/icons/note.png and /dev/null differ diff --git a/themes/powerarrow/icons/note_on.png b/themes/powerarrow/icons/note_on.png deleted file mode 100755 index aae5ca3..0000000 Binary files a/themes/powerarrow/icons/note_on.png and /dev/null differ diff --git a/themes/powerarrow/icons/pacman.png b/themes/powerarrow/icons/pacman.png deleted file mode 100755 index 575144a..0000000 Binary files a/themes/powerarrow/icons/pacman.png and /dev/null differ diff --git a/themes/powerarrow/icons/pause.png b/themes/powerarrow/icons/pause.png deleted file mode 100755 index d4546e6..0000000 Binary files a/themes/powerarrow/icons/pause.png and /dev/null differ diff --git a/themes/powerarrow/icons/phones.png b/themes/powerarrow/icons/phones.png deleted file mode 100755 index bec0e57..0000000 Binary files a/themes/powerarrow/icons/phones.png and /dev/null differ diff --git a/themes/powerarrow/icons/play.png b/themes/powerarrow/icons/play.png deleted file mode 100755 index b228f74..0000000 Binary files a/themes/powerarrow/icons/play.png and /dev/null differ diff --git a/themes/powerarrow/icons/prev.png b/themes/powerarrow/icons/prev.png deleted file mode 100755 index 4c4ca40..0000000 Binary files a/themes/powerarrow/icons/prev.png and /dev/null differ diff --git a/themes/powerarrow/icons/rwd.png b/themes/powerarrow/icons/rwd.png deleted file mode 100755 index ac3d6f4..0000000 Binary files a/themes/powerarrow/icons/rwd.png and /dev/null differ diff --git a/themes/powerarrow/icons/scissors.png b/themes/powerarrow/icons/scissors.png deleted file mode 100755 index 30f867d..0000000 Binary files a/themes/powerarrow/icons/scissors.png and /dev/null differ diff --git a/themes/powerarrow/icons/square_sel.png b/themes/powerarrow/icons/square_sel.png deleted file mode 100755 index 874a3a5..0000000 Binary files a/themes/powerarrow/icons/square_sel.png and /dev/null differ diff --git a/themes/powerarrow/icons/square_unsel.png b/themes/powerarrow/icons/square_unsel.png deleted file mode 100755 index 979642f..0000000 Binary files a/themes/powerarrow/icons/square_unsel.png and /dev/null differ diff --git a/themes/powerarrow/icons/stop.png b/themes/powerarrow/icons/stop.png deleted file mode 100755 index 207915b..0000000 Binary files a/themes/powerarrow/icons/stop.png and /dev/null differ diff --git a/themes/powerarrow/icons/submenu.png b/themes/powerarrow/icons/submenu.png deleted file mode 100755 index e9a6b7c..0000000 Binary files a/themes/powerarrow/icons/submenu.png and /dev/null differ diff --git a/themes/powerarrow/icons/task.png b/themes/powerarrow/icons/task.png deleted file mode 100755 index 962b51a..0000000 Binary files a/themes/powerarrow/icons/task.png and /dev/null differ diff --git a/themes/powerarrow/icons/temp.png b/themes/powerarrow/icons/temp.png deleted file mode 100755 index 7952de8..0000000 Binary files a/themes/powerarrow/icons/temp.png and /dev/null differ diff --git a/themes/powerarrow/icons/tile.png b/themes/powerarrow/icons/tile.png deleted file mode 100755 index 01fd1b5..0000000 Binary files a/themes/powerarrow/icons/tile.png and /dev/null differ diff --git a/themes/powerarrow/icons/tilebottom.png b/themes/powerarrow/icons/tilebottom.png deleted file mode 100755 index bff1f42..0000000 Binary files a/themes/powerarrow/icons/tilebottom.png and /dev/null differ diff --git a/themes/powerarrow/icons/tileleft.png b/themes/powerarrow/icons/tileleft.png deleted file mode 100755 index 205140a..0000000 Binary files a/themes/powerarrow/icons/tileleft.png and /dev/null differ diff --git a/themes/powerarrow/icons/tiletop.png b/themes/powerarrow/icons/tiletop.png deleted file mode 100755 index 148cb9b..0000000 Binary files a/themes/powerarrow/icons/tiletop.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/close_focus.png b/themes/powerarrow/icons/titlebar/close_focus.png deleted file mode 100755 index cccbadc..0000000 Binary files a/themes/powerarrow/icons/titlebar/close_focus.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/close_normal.png b/themes/powerarrow/icons/titlebar/close_normal.png deleted file mode 100755 index cb0c3fa..0000000 Binary files a/themes/powerarrow/icons/titlebar/close_normal.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/floating_focus_active.png b/themes/powerarrow/icons/titlebar/floating_focus_active.png deleted file mode 100755 index 77ea127..0000000 Binary files a/themes/powerarrow/icons/titlebar/floating_focus_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/floating_focus_inactive.png b/themes/powerarrow/icons/titlebar/floating_focus_inactive.png deleted file mode 100755 index d254a73..0000000 Binary files a/themes/powerarrow/icons/titlebar/floating_focus_inactive.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/floating_normal_active.png b/themes/powerarrow/icons/titlebar/floating_normal_active.png deleted file mode 100755 index c5ce3de..0000000 Binary files a/themes/powerarrow/icons/titlebar/floating_normal_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/floating_normal_inactive.png b/themes/powerarrow/icons/titlebar/floating_normal_inactive.png deleted file mode 100755 index 850b602..0000000 Binary files a/themes/powerarrow/icons/titlebar/floating_normal_inactive.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/maximized_focus_active.png b/themes/powerarrow/icons/titlebar/maximized_focus_active.png deleted file mode 100755 index 9fc0483..0000000 Binary files a/themes/powerarrow/icons/titlebar/maximized_focus_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/maximized_focus_inactive.png b/themes/powerarrow/icons/titlebar/maximized_focus_inactive.png deleted file mode 100755 index f684470..0000000 Binary files a/themes/powerarrow/icons/titlebar/maximized_focus_inactive.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/maximized_normal_active.png b/themes/powerarrow/icons/titlebar/maximized_normal_active.png deleted file mode 100755 index 4aa4196..0000000 Binary files a/themes/powerarrow/icons/titlebar/maximized_normal_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/maximized_normal_inactive.png b/themes/powerarrow/icons/titlebar/maximized_normal_inactive.png deleted file mode 100755 index bfe01a3..0000000 Binary files a/themes/powerarrow/icons/titlebar/maximized_normal_inactive.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/ontop_focus_active.png b/themes/powerarrow/icons/titlebar/ontop_focus_active.png deleted file mode 100755 index 86e61b7..0000000 Binary files a/themes/powerarrow/icons/titlebar/ontop_focus_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/ontop_focus_inactive.png b/themes/powerarrow/icons/titlebar/ontop_focus_inactive.png deleted file mode 100755 index 286d439..0000000 Binary files a/themes/powerarrow/icons/titlebar/ontop_focus_inactive.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/ontop_normal_active.png b/themes/powerarrow/icons/titlebar/ontop_normal_active.png deleted file mode 100755 index fcee772..0000000 Binary files a/themes/powerarrow/icons/titlebar/ontop_normal_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/ontop_normal_inactive.png b/themes/powerarrow/icons/titlebar/ontop_normal_inactive.png deleted file mode 100755 index a628626..0000000 Binary files a/themes/powerarrow/icons/titlebar/ontop_normal_inactive.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/sticky_focus_active.png b/themes/powerarrow/icons/titlebar/sticky_focus_active.png deleted file mode 100755 index 5af45c1..0000000 Binary files a/themes/powerarrow/icons/titlebar/sticky_focus_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/sticky_focus_inactive.png b/themes/powerarrow/icons/titlebar/sticky_focus_inactive.png deleted file mode 100755 index 22d7453..0000000 Binary files a/themes/powerarrow/icons/titlebar/sticky_focus_inactive.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/sticky_normal_active.png b/themes/powerarrow/icons/titlebar/sticky_normal_active.png deleted file mode 100755 index aad079e..0000000 Binary files a/themes/powerarrow/icons/titlebar/sticky_normal_active.png and /dev/null differ diff --git a/themes/powerarrow/icons/titlebar/sticky_normal_inactive.png b/themes/powerarrow/icons/titlebar/sticky_normal_inactive.png deleted file mode 100755 index 5f3e655..0000000 Binary files a/themes/powerarrow/icons/titlebar/sticky_normal_inactive.png and /dev/null differ diff --git a/themes/powerarrow/theme.lua b/themes/powerarrow/theme.lua deleted file mode 100644 index 984c9a8..0000000 --- a/themes/powerarrow/theme.lua +++ /dev/null @@ -1,400 +0,0 @@ ---[[ - - Powerarrow Awesome WM theme - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local math, string, os = math, string, os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow" -theme.wallpaper = theme.dir .. "/wall.png" -theme.font = "Terminus 9" -theme.fg_normal = "#FEFEFE" -theme.fg_focus = "#32D6FF" -theme.fg_urgent = "#C83F11" -theme.bg_normal = "#222222" -theme.bg_focus = "#1E2320" -theme.bg_urgent = "#3F3F3F" -theme.taglist_fg_focus = "#00CCFF" -theme.tasklist_bg_focus = "#222222" -theme.tasklist_fg_focus = "#00CCFF" -theme.border_width = dpi(2) -theme.border_normal = "#3F3F3F" -theme.border_focus = "#6F6F6F" -theme.border_marked = "#CC9393" -theme.titlebar_bg_focus = "#3F3F3F" -theme.titlebar_bg_normal = "#3F3F3F" -theme.titlebar_bg_focus = theme.bg_focus -theme.titlebar_bg_normal = theme.bg_normal -theme.titlebar_fg_focus = theme.fg_focus -theme.menu_height = dpi(16) -theme.menu_width = dpi(140) -theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" -theme.awesome_icon = theme.dir .. "/icons/awesome.png" -theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" -theme.layout_tile = theme.dir .. "/icons/tile.png" -theme.layout_tileleft = theme.dir .. "/icons/tileleft.png" -theme.layout_tilebottom = theme.dir .. "/icons/tilebottom.png" -theme.layout_tiletop = theme.dir .. "/icons/tiletop.png" -theme.layout_fairv = theme.dir .. "/icons/fairv.png" -theme.layout_fairh = theme.dir .. "/icons/fairh.png" -theme.layout_spiral = theme.dir .. "/icons/spiral.png" -theme.layout_dwindle = theme.dir .. "/icons/dwindle.png" -theme.layout_max = theme.dir .. "/icons/max.png" -theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png" -theme.layout_magnifier = theme.dir .. "/icons/magnifier.png" -theme.layout_floating = theme.dir .. "/icons/floating.png" -theme.widget_ac = theme.dir .. "/icons/ac.png" -theme.widget_battery = theme.dir .. "/icons/battery.png" -theme.widget_battery_low = theme.dir .. "/icons/battery_low.png" -theme.widget_battery_empty = theme.dir .. "/icons/battery_empty.png" -theme.widget_brightness = theme.dir .. "/icons/brightness.png" -theme.widget_mem = theme.dir .. "/icons/mem.png" -theme.widget_cpu = theme.dir .. "/icons/cpu.png" -theme.widget_temp = theme.dir .. "/icons/temp.png" -theme.widget_net = theme.dir .. "/icons/net.png" -theme.widget_hdd = theme.dir .. "/icons/hdd.png" -theme.widget_music = theme.dir .. "/icons/note.png" -theme.widget_music_on = theme.dir .. "/icons/note_on.png" -theme.widget_music_pause = theme.dir .. "/icons/pause.png" -theme.widget_music_stop = theme.dir .. "/icons/stop.png" -theme.widget_vol = theme.dir .. "/icons/vol.png" -theme.widget_vol_low = theme.dir .. "/icons/vol_low.png" -theme.widget_vol_no = theme.dir .. "/icons/vol_no.png" -theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png" -theme.widget_mail = theme.dir .. "/icons/mail.png" -theme.widget_mail_on = theme.dir .. "/icons/mail_on.png" -theme.widget_task = theme.dir .. "/icons/task.png" -theme.widget_scissors = theme.dir .. "/icons/scissors.png" -theme.tasklist_plain_task_name = true -theme.tasklist_disable_icon = true -theme.useless_gap = 0 -theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png" -theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png" -theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png" -theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png" -theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png" -theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png" -theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png" -theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png" -theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png" -theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png" - -local markup = lain.util.markup -local separators = lain.util.separators - --- Binary clock -local binclock = require("themes.powerarrow.binclock"){ - height = dpi(32), - show_seconds = true, - color_active = theme.fg_normal, - color_inactive = theme.bg_focus -} - --- Calendar -theme.cal = lain.widget.cal({ - --cal = "cal --color=always", - attach_to = { binclock.widget }, - notification_preset = { - font = "Terminus 10", - fg = theme.fg_normal, - bg = theme.bg_normal - } -}) - --- Taskwarrior -local task = wibox.widget.imagebox(theme.widget_task) -lain.widget.contrib.task.attach(task, { - -- do not colorize output - show_cmd = "task | sed -r 's/\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g'" -}) -task:buttons(my_table.join(awful.button({}, 1, lain.widget.contrib.task.prompt))) - --- Scissors (xsel copy and paste) -local scissors = wibox.widget.imagebox(theme.widget_scissors) -scissors:buttons(my_table.join(awful.button({}, 1, function() awful.spawn.with_shell("xsel | xsel -i -b") end))) - --- Mail IMAP check ---[[ commented because it needs to be set before use -local mailicon = wibox.widget.imagebox(theme.widget_mail) -mailicon:buttons(my_table.join(awful.button({ }, 1, function () awful.spawn(mail) end))) -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - settings = function() - if mailcount > 0 then - widget:set_text(" " .. mailcount .. " ") - mailicon:set_image(theme.widget_mail_on) - else - widget:set_text("") - mailicon:set_image(theme.widget_mail) - end - end -}) ---]] - --- ALSA volume -theme.volume = lain.widget.alsabar({ - --togglechannel = "IEC958,3", - notification_preset = { font = "Terminus 10", fg = theme.fg_normal }, -}) - --- MPD -local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp" -local mpdicon = wibox.widget.imagebox(theme.widget_music) -mpdicon:buttons(my_table.join( - awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end), - awful.button({ }, 1, function () - os.execute("mpc prev") - theme.mpd.update() - end), - awful.button({ }, 2, function () - os.execute("mpc toggle") - theme.mpd.update() - end), - awful.button({ }, 3, function () - os.execute("mpc next") - theme.mpd.update() - end))) -theme.mpd = lain.widget.mpd({ - settings = function() - if mpd_now.state == "play" then - artist = " " .. mpd_now.artist .. " " - title = mpd_now.title .. " " - mpdicon:set_image(theme.widget_music_on) - widget:set_markup(markup.font(theme.font, markup("#FF8466", artist) .. " " .. title)) - elseif mpd_now.state == "pause" then - widget:set_markup(markup.font(theme.font, " mpd paused ")) - mpdicon:set_image(theme.widget_music_pause) - else - widget:set_text("") - mpdicon:set_image(theme.widget_music) - end - end -}) - --- MEM -local memicon = wibox.widget.imagebox(theme.widget_mem) -local mem = lain.widget.mem({ - settings = function() - widget:set_markup(markup.font(theme.font, " " .. mem_now.used .. "MB ")) - end -}) - --- CPU -local cpuicon = wibox.widget.imagebox(theme.widget_cpu) -local cpu = lain.widget.cpu({ - settings = function() - widget:set_markup(markup.font(theme.font, " " .. cpu_now.usage .. "% ")) - end -}) - ---[[ Coretemp (lm_sensors, per core) -local tempwidget = awful.widget.watch({awful.util.shell, '-c', 'sensors | grep Core'}, 30, -function(widget, stdout) - local temps = "" - for line in stdout:gmatch("[^\r\n]+") do - temps = temps .. line:match("+(%d+).*°C") .. "° " -- in Celsius - end - widget:set_markup(markup.font(theme.font, " " .. temps)) -end) ---]] --- Coretemp (lain, average) -local temp = lain.widget.temp({ - settings = function() - widget:set_markup(markup.font(theme.font, " " .. coretemp_now .. "°C ")) - end -}) ---]] -local tempicon = wibox.widget.imagebox(theme.widget_temp) - --- / fs -local fsicon = wibox.widget.imagebox(theme.widget_hdd) ---[[ commented because it needs Gio/Glib >= 2.54 -theme.fs = lain.widget.fs({ - notification_preset = { fg = theme.fg_normal, bg = theme.bg_normal, font = "Terminus 10" }, - settings = function() - local fsp = string.format(" %3.2f %s ", fs_now["/"].free, fs_now["/"].units) - widget:set_markup(markup.font(theme.font, fsp)) - end -}) ---]] - --- Battery -local baticon = wibox.widget.imagebox(theme.widget_battery) -local bat = lain.widget.bat({ - settings = function() - if bat_now.status and bat_now.status ~= "N/A" then - if bat_now.ac_status == 1 then - widget:set_markup(markup.font(theme.font, " AC ")) - baticon:set_image(theme.widget_ac) - return - elseif not bat_now.perc and tonumber(bat_now.perc) <= 5 then - baticon:set_image(theme.widget_battery_empty) - elseif not bat_now.perc and tonumber(bat_now.perc) <= 15 then - baticon:set_image(theme.widget_battery_low) - else - baticon:set_image(theme.widget_battery) - end - widget:set_markup(markup.font(theme.font, " " .. bat_now.perc .. "% ")) - else - widget:set_markup() - baticon:set_image(theme.widget_ac) - end - end -}) - --- Net -local neticon = wibox.widget.imagebox(theme.widget_net) -local net = lain.widget.net({ - settings = function() - widget:set_markup(markup.fontfg(theme.font, "#FEFEFE", " " .. net_now.received .. " ↓↑ " .. net_now.sent .. " ")) - end -}) - --- Brigtness -local brighticon = wibox.widget.imagebox(theme.widget_brightness) --- If you use xbacklight, comment the line with "light -G" and uncomment the line bellow --- local brightwidget = awful.widget.watch('xbacklight -get', 0.1, -local brightwidget = awful.widget.watch('light -G', 0.1, - function(widget, stdout, stderr, exitreason, exitcode) - local brightness_level = tonumber(string.format("%.0f", stdout)) - widget:set_markup(markup.font(theme.font, " " .. brightness_level .. "%")) -end) - --- Separators -local arrow = separators.arrow_left - -function theme.powerline_rl(cr, width, height) - local arrow_depth, offset = height/2, 0 - - -- Avoid going out of the (potential) clip area - if arrow_depth < 0 then - width = width + 2*arrow_depth - offset = -arrow_depth - end - - cr:move_to(offset + arrow_depth , 0 ) - cr:line_to(offset + width , 0 ) - cr:line_to(offset + width - arrow_depth , height/2 ) - cr:line_to(offset + width , height ) - cr:line_to(offset + arrow_depth , height ) - cr:line_to(offset , height/2 ) - - cr:close_path() -end - -local function pl(widget, bgcolor, padding) - return wibox.container.background(wibox.container.margin(widget, dpi(16), dpi(16)), bgcolor, theme.powerline_rl) -end - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - -- Create an imagebox widget which will contains an icon indicating which layout we're using. - -- We need one layoutbox per screen. - s.mylayoutbox = awful.widget.layoutbox(s) - s.mylayoutbox:buttons(my_table.join( - awful.button({}, 1, function () awful.layout.inc( 1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function () awful.layout.inc(-1) end), - awful.button({}, 4, function () awful.layout.inc( 1) end), - awful.button({}, 5, function () awful.layout.inc(-1) end))) - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(16), bg = theme.bg_normal, fg = theme.fg_normal }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - --spr, - s.mytaglist, - s.mypromptbox, - spr, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - wibox.container.margin(scissors, dpi(4), dpi(8)), - --[[ using shapes - pl(wibox.widget { mpdicon, theme.mpd.widget, layout = wibox.layout.align.horizontal }, "#343434"), - pl(task, "#343434"), - --pl(wibox.widget { mailicon, mail and theme.mail.widget, layout = wibox.layout.align.horizontal }, "#343434"), - pl(wibox.widget { memicon, mem.widget, layout = wibox.layout.align.horizontal }, "#777E76"), - pl(wibox.widget { cpuicon, cpu.widget, layout = wibox.layout.align.horizontal }, "#4B696D"), - pl(wibox.widget { tempicon, temp.widget, layout = wibox.layout.align.horizontal }, "#4B3B51"), - --pl(wibox.widget { fsicon, theme.fs and theme.fs.widget, layout = wibox.layout.align.horizontal }, "#CB755B"), - pl(wibox.widget { baticon, bat.widget, layout = wibox.layout.align.horizontal }, "#8DAA9A"), - pl(wibox.widget { neticon, net.widget, layout = wibox.layout.align.horizontal }, "#C0C0A2"), - pl(binclock.widget, "#777E76"), - --]] - -- using separators - arrow(theme.bg_normal, "#343434"), - wibox.container.background(wibox.container.margin(wibox.widget { mailicon, theme.mail and theme.mail.widget, layout = wibox.layout.align.horizontal }, dpi(4), dpi(7)), "#343434"), - arrow("#343434", theme.bg_normal), - wibox.container.background(wibox.container.margin(wibox.widget { mpdicon, theme.mpd.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(6)), theme.bg_focus), - arrow(theme.bg_normal, "#343434"), - wibox.container.background(wibox.container.margin(task, dpi(3), dpi(7)), "#343434"), - arrow("#343434", "#777E76"), - wibox.container.background(wibox.container.margin(wibox.widget { memicon, mem.widget, layout = wibox.layout.align.horizontal }, dpi(2), dpi(3)), "#777E76"), - arrow("#777E76", "#4B696D"), - wibox.container.background(wibox.container.margin(wibox.widget { cpuicon, cpu.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(4)), "#4B696D"), - arrow("#4B696D", "#4B3B51"), - wibox.container.background(wibox.container.margin(wibox.widget { tempicon, temp.widget, layout = wibox.layout.align.horizontal }, dpi(4), dpi(4)), "#4B3B51"), - arrow("#4B3B51", "#CB755B"), - wibox.container.background(wibox.container.margin(wibox.widget { fsicon, theme.fs and theme.fs.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(3)), "#CB755B"), - arrow("#CB755B", "#8DAA9A"), - wibox.container.background(wibox.container.margin(wibox.widget { baticon, bat.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(3)), "#8DAA9A"), - arrow("#8DAA9A", "#C0C0A2"), - wibox.container.background(wibox.container.margin(wibox.widget { nil, neticon, net.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(3)), "#C0C0A2"), - arrow("#C0C0A2", "#777E76"), - wibox.container.background(wibox.container.margin(binclock.widget, dpi(4), dpi(8)), "#777E76"), - arrow("#777E76", "alpha"), - --]] - s.mylayoutbox, - }, - } -end - -return theme diff --git a/themes/powerarrow/wall.png b/themes/powerarrow/wall.png deleted file mode 100755 index 0989db9..0000000 Binary files a/themes/powerarrow/wall.png and /dev/null differ diff --git a/themes/rainbow/icons/awesome.png b/themes/rainbow/icons/awesome.png deleted file mode 100755 index d99fd37..0000000 Binary files a/themes/rainbow/icons/awesome.png and /dev/null differ diff --git a/themes/rainbow/icons/square_sel.png b/themes/rainbow/icons/square_sel.png deleted file mode 100755 index 532719f..0000000 Binary files a/themes/rainbow/icons/square_sel.png and /dev/null differ diff --git a/themes/rainbow/icons/square_unsel.png b/themes/rainbow/icons/square_unsel.png deleted file mode 100755 index 72dea5b..0000000 Binary files a/themes/rainbow/icons/square_unsel.png and /dev/null differ diff --git a/themes/rainbow/icons/submenu.png b/themes/rainbow/icons/submenu.png deleted file mode 100755 index 26ab82a..0000000 Binary files a/themes/rainbow/icons/submenu.png and /dev/null differ diff --git a/themes/rainbow/theme.lua b/themes/rainbow/theme.lua deleted file mode 100644 index 7837b93..0000000 --- a/themes/rainbow/theme.lua +++ /dev/null @@ -1,279 +0,0 @@ ---[[ - - Rainbow Awesome WM theme 2.0 - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local os = os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.default_dir = require("awful.util").get_themes_dir() .. "default" -theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/rainbow" -theme.wallpaper = theme.dir .. "/wall.png" -theme.font = "Terminus 10.5" -theme.fg_normal = "#9E9E9E" -theme.fg_focus = "#EBEBFF" -theme.bg_normal = "#242424" -theme.bg_focus = "#242424" -theme.fg_urgent = "#000000" -theme.bg_urgent = "#FFFFFF" -theme.border_width = dpi(1) -theme.border_normal = "#242424" -theme.border_focus = "#EBEBFF" -theme.taglist_fg_focus = "#EDEFFF" -theme.taglist_bg_focus = "#242424" -theme.menu_height = dpi(16) -theme.menu_width = dpi(140) -theme.ocol = "" -theme.tasklist_sticky = theme.ocol .. "[S]" -theme.tasklist_ontop = theme.ocol .. "[T]" -theme.tasklist_floating = theme.ocol .. "[F]" -theme.tasklist_maximized_horizontal = theme.ocol .. "[M] " -theme.tasklist_maximized_vertical = "" -theme.tasklist_disable_icon = true -theme.awesome_icon = theme.dir .."/icons/awesome.png" -theme.menu_submenu_icon = theme.dir .."/icons/submenu.png" -theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" -theme.useless_gap = dpi(8) -theme.layout_txt_tile = "[t]" -theme.layout_txt_tileleft = "[l]" -theme.layout_txt_tilebottom = "[b]" -theme.layout_txt_tiletop = "[tt]" -theme.layout_txt_fairv = "[fv]" -theme.layout_txt_fairh = "[fh]" -theme.layout_txt_spiral = "[s]" -theme.layout_txt_dwindle = "[d]" -theme.layout_txt_max = "[m]" -theme.layout_txt_fullscreen = "[F]" -theme.layout_txt_magnifier = "[M]" -theme.layout_txt_floating = "[*]" -theme.titlebar_close_button_normal = theme.default_dir.."/titlebar/close_normal.png" -theme.titlebar_close_button_focus = theme.default_dir.."/titlebar/close_focus.png" -theme.titlebar_minimize_button_normal = theme.default_dir.."/titlebar/minimize_normal.png" -theme.titlebar_minimize_button_focus = theme.default_dir.."/titlebar/minimize_focus.png" -theme.titlebar_ontop_button_normal_inactive = theme.default_dir.."/titlebar/ontop_normal_inactive.png" -theme.titlebar_ontop_button_focus_inactive = theme.default_dir.."/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_active = theme.default_dir.."/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_active = theme.default_dir.."/titlebar/ontop_focus_active.png" -theme.titlebar_sticky_button_normal_inactive = theme.default_dir.."/titlebar/sticky_normal_inactive.png" -theme.titlebar_sticky_button_focus_inactive = theme.default_dir.."/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_active = theme.default_dir.."/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_active = theme.default_dir.."/titlebar/sticky_focus_active.png" -theme.titlebar_floating_button_normal_inactive = theme.default_dir.."/titlebar/floating_normal_inactive.png" -theme.titlebar_floating_button_focus_inactive = theme.default_dir.."/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_active = theme.default_dir.."/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_active = theme.default_dir.."/titlebar/floating_focus_active.png" -theme.titlebar_maximized_button_normal_inactive = theme.default_dir.."/titlebar/maximized_normal_inactive.png" -theme.titlebar_maximized_button_focus_inactive = theme.default_dir.."/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_active = theme.default_dir.."/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_active = theme.default_dir.."/titlebar/maximized_focus_active.png" - --- lain related -theme.layout_txt_cascade = "[cascade]" -theme.layout_txt_cascadetile = "[cascadetile]" -theme.layout_txt_centerwork = "[centerwork]" -theme.layout_txt_termfair = "[termfair]" -theme.layout_txt_centerfair = "[centerfair]" - -local markup = lain.util.markup -local white = theme.fg_focus -local gray = theme.fg_normal - --- Textclock -local mytextclock = wibox.widget.textclock(markup(white, " %H:%M ")) -mytextclock.font = theme.font - --- Calendar -theme.cal = lain.widget.cal({ - attach_to = { mytextclock }, - notification_preset = { - font = "Terminus 11", - fg = white, - bg = theme.bg_normal - } -}) - --- Mail IMAP check ---[[ commented because it needs to be set before use -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - settings = function() - mail_notification_preset.fg = white - - mail = "" - count = "" - - if mailcount > 0 then - mail = "Mail " - count = mailcount .. " " - end - - widget:set_markup(markup.font(theme.font, markup(gray, mail) .. markup(white, count))) - end -}) ---]] - --- MPD -theme.mpd = lain.widget.mpd({ - settings = function() - mpd_notification_preset.fg = white - - artist = mpd_now.artist .. " " - title = mpd_now.title .. " " - - if mpd_now.state == "pause" then - artist = "mpd " - title = "paused " - elseif mpd_now.state == "stop" then - artist = "" - title = "" - end - - widget:set_markup(markup.font(theme.font, markup(gray, artist) .. markup(white, title))) - end -}) - --- /home fs ---[[ commented because it needs Gio/Glib >= 2.54 -theme.fs = lain.widget.fs({ - notification_preset = { fg = white, bg = theme.bg_normal, font = "Terminus 10.5" }, - settings = function() - local fs_header, fs_p = "", "" - - if fs_now["/home"].percentage >= 90 then - fs_header = " Hdd " - fs_p = fs_now["/home"].percentage - end - - widget:set_markup(markup.font(theme.font, markup(gray, fs_header) .. markup(white, fs_p))) - end -}) ---]] - --- ALSA volume bar -theme.volume = lain.widget.alsabar({ - ticks = true, width = dpi(67), - notification_preset = { font = theme.font } -}) -theme.volume.tooltip.wibox.fg = theme.fg_focus -theme.volume.tooltip.wibox.font = theme.font -theme.volume.bar:buttons(my_table.join ( - awful.button({}, 1, function() - awful.spawn(string.format("%s -e alsamixer", terminal)) - end), - awful.button({}, 2, function() - os.execute(string.format("%s set %s 100%%", theme.volume.cmd, theme.volume.channel)) - theme.volume.update() - end), - awful.button({}, 3, function() - os.execute(string.format("%s set %s toggle", theme.volume.cmd, theme.volume.togglechannel or theme.volume.channel)) - theme.volume.update() - end), - awful.button({}, 4, function() - os.execute(string.format("%s set %s 1%%+", theme.volume.cmd, theme.volume.channel)) - theme.volume.update() - end), - awful.button({}, 5, function() - os.execute(string.format("%s set %s 1%%-", theme.volume.cmd, theme.volume.channel)) - theme.volume.update() - end) -)) -local volumebg = wibox.container.background(theme.volume.bar, "#585858", gears.shape.rectangle) -local volumewidget = wibox.container.margin(volumebg, dpi(7), dpi(7), dpi(5), dpi(5)) - --- Weather ---[[ to be set before use -theme.weather = lain.widget.weather({ - --APPID = - city_id = 2643743, -- placeholder (London) - notification_preset = { font = theme.font, fg = white } -}) ---]] - --- Separators -local first = wibox.widget.textbox(markup.font("Terminus 4", " ")) -local spr = wibox.widget.textbox(' ') - -local function update_txt_layoutbox(s) - -- Writes a string representation of the current layout in a textbox widget - local txt_l = theme["layout_txt_" .. awful.layout.getname(awful.layout.get(s))] or "" - s.mytxtlayoutbox:set_text(txt_l) -end - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - - -- Textual layoutbox - s.mytxtlayoutbox = wibox.widget.textbox(theme["layout_txt_" .. awful.layout.getname(awful.layout.get(s))]) - awful.tag.attached_connect_signal(s, "property::selected", function () update_txt_layoutbox(s) end) - awful.tag.attached_connect_signal(s, "property::layout", function () update_txt_layoutbox(s) end) - s.mytxtlayoutbox:buttons(my_table.join( - awful.button({}, 1, function() awful.layout.inc(1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function() awful.layout.inc(-1) end), - awful.button({}, 4, function() awful.layout.inc(1) end), - awful.button({}, 5, function() awful.layout.inc(-1) end))) - - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(18), bg = theme.bg_normal, fg = theme.fg_normal }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - first, - s.mytaglist, - spr, - s.mytxtlayoutbox, - --spr, - s.mypromptbox, - spr, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - spr, - theme.mpd.widget, - --theme.mail.widget, - --theme.fs.widget, - volumewidget, - mytextclock, - }, - } -end - -return theme diff --git a/themes/rainbow/wall.png b/themes/rainbow/wall.png deleted file mode 100755 index 6bed238..0000000 Binary files a/themes/rainbow/wall.png and /dev/null differ diff --git a/themes/steamburn/icons/awesome.png b/themes/steamburn/icons/awesome.png deleted file mode 100755 index 0306bdf..0000000 Binary files a/themes/steamburn/icons/awesome.png and /dev/null differ diff --git a/themes/steamburn/icons/square_sel.png b/themes/steamburn/icons/square_sel.png deleted file mode 100755 index 2bcabb8..0000000 Binary files a/themes/steamburn/icons/square_sel.png and /dev/null differ diff --git a/themes/steamburn/icons/square_unsel.png b/themes/steamburn/icons/square_unsel.png deleted file mode 100755 index 14c4fe4..0000000 Binary files a/themes/steamburn/icons/square_unsel.png and /dev/null differ diff --git a/themes/steamburn/icons/submenu.png b/themes/steamburn/icons/submenu.png deleted file mode 100755 index 12b97c6..0000000 Binary files a/themes/steamburn/icons/submenu.png and /dev/null differ diff --git a/themes/steamburn/theme.lua b/themes/steamburn/theme.lua deleted file mode 100644 index a6631a3..0000000 --- a/themes/steamburn/theme.lua +++ /dev/null @@ -1,278 +0,0 @@ ---[[ - - Steamburn Awesome WM theme 3.0 - github.com/lcpz - ---]] - -local gears = require("gears") -local lain = require("lain") -local awful = require("awful") -local wibox = require("wibox") -local dpi = require("beautiful.xresources").apply_dpi - -local os = os -local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility - -local theme = {} -theme.zenburn_dir = require("awful.util").get_themes_dir() .. "zenburn" -theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/steamburn" -theme.wallpaper = theme.dir .. "/wall.png" -theme.font = "Terminus 10.5" -theme.fg_normal = "#e2ccb0" -theme.fg_focus = "#d88166" -theme.fg_urgent = "#CC9393" -theme.bg_normal = "#140c0b" -theme.bg_focus = "#140c0b" -theme.bg_urgent = "#2a1f1e" -theme.border_width = dpi(1) -theme.border_normal = "#302627" -theme.border_focus = "#c2745b" -theme.border_marked = "#CC9393" -theme.taglist_fg_focus = "#d88166" -theme.tasklist_bg_focus = "#140c0b" -theme.tasklist_fg_focus = "#d88166" -theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" -theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" -theme.menu_height = dpi(16) -theme.menu_width = dpi(140) -theme.awesome_icon = theme.dir .."/icons/awesome.png" -theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" -theme.layout_txt_tile = "[t]" -theme.layout_txt_tileleft = "[l]" -theme.layout_txt_tilebottom = "[b]" -theme.layout_txt_tiletop = "[tt]" -theme.layout_txt_fairv = "[fv]" -theme.layout_txt_fairh = "[fh]" -theme.layout_txt_spiral = "[s]" -theme.layout_txt_dwindle = "[d]" -theme.layout_txt_max = "[m]" -theme.layout_txt_fullscreen = "[F]" -theme.layout_txt_magnifier = "[M]" -theme.layout_txt_floating = "[|]" -theme.tasklist_plain_task_name = true -theme.tasklist_disable_icon = true -theme.useless_gap = dpi(0) -theme.titlebar_close_button_normal = theme.zenburn_dir.."/titlebar/close_normal.png" -theme.titlebar_close_button_focus = theme.zenburn_dir.."/titlebar/close_focus.png" -theme.titlebar_minimize_button_normal = theme.zenburn_dir.."/titlebar/minimize_normal.png" -theme.titlebar_minimize_button_focus = theme.zenburn_dir.."/titlebar/minimize_focus.png" -theme.titlebar_ontop_button_normal_inactive = theme.zenburn_dir.."/titlebar/ontop_normal_inactive.png" -theme.titlebar_ontop_button_focus_inactive = theme.zenburn_dir.."/titlebar/ontop_focus_inactive.png" -theme.titlebar_ontop_button_normal_active = theme.zenburn_dir.."/titlebar/ontop_normal_active.png" -theme.titlebar_ontop_button_focus_active = theme.zenburn_dir.."/titlebar/ontop_focus_active.png" -theme.titlebar_sticky_button_normal_inactive = theme.zenburn_dir.."/titlebar/sticky_normal_inactive.png" -theme.titlebar_sticky_button_focus_inactive = theme.zenburn_dir.."/titlebar/sticky_focus_inactive.png" -theme.titlebar_sticky_button_normal_active = theme.zenburn_dir.."/titlebar/sticky_normal_active.png" -theme.titlebar_sticky_button_focus_active = theme.zenburn_dir.."/titlebar/sticky_focus_active.png" -theme.titlebar_floating_button_normal_inactive = theme.zenburn_dir.."/titlebar/floating_normal_inactive.png" -theme.titlebar_floating_button_focus_inactive = theme.zenburn_dir.."/titlebar/floating_focus_inactive.png" -theme.titlebar_floating_button_normal_active = theme.zenburn_dir.."/titlebar/floating_normal_active.png" -theme.titlebar_floating_button_focus_active = theme.zenburn_dir.."/titlebar/floating_focus_active.png" -theme.titlebar_maximized_button_normal_inactive = theme.zenburn_dir.."/titlebar/maximized_normal_inactive.png" -theme.titlebar_maximized_button_focus_inactive = theme.zenburn_dir.."/titlebar/maximized_focus_inactive.png" -theme.titlebar_maximized_button_normal_active = theme.zenburn_dir.."/titlebar/maximized_normal_active.png" -theme.titlebar_maximized_button_focus_active = theme.zenburn_dir.."/titlebar/maximized_focus_active.png" - --- lain related -theme.layout_txt_termfair = "[termfair]" -theme.layout_txt_centerfair = "[centerfair]" - -local markup = lain.util.markup -local gray = "#94928F" - --- Textclock -local mytextclock = wibox.widget.textclock(" %H:%M ") -mytextclock.font = theme.font - --- Calendar -theme.cal = lain.widget.cal({ - attach_to = { mytextclock }, - notification_preset = { - font = "Terminus 11", - fg = theme.fg_normal, - bg = theme.bg_normal - } -}) - --- Mail IMAP check ---[[ to be set before use -theme.mail = lain.widget.imap({ - timeout = 180, - server = "server", - mail = "mail", - password = "keyring get mail", - settings = function() - mail = "" - count = "" - - if mailcount > 0 then - mail = "Mail " - count = mailcount .. " " - end - - widget:set_markup(markup(gray, mail) .. count) - end -}) ---]] - --- MPD -theme.mpd = lain.widget.mpd({ - settings = function() - artist = mpd_now.artist .. " " - title = mpd_now.title .. " " - - if mpd_now.state == "pause" then - artist = "mpd " - title = "paused " - elseif mpd_now.state == "stop" then - artist = "" - title = "" - end - - widget:set_markup(markup.font(theme.font, markup(gray, artist) .. title)) - end -}) - --- CPU -local cpu = lain.widget.sysload({ - settings = function() - widget:set_markup(markup.font(theme.font, markup(gray, " Cpu ") .. load_1 .. " ")) - end -}) - --- MEM -local mem = lain.widget.mem({ - settings = function() - widget:set_markup(markup.font(theme.font, markup(gray, " Mem ") .. mem_now.used .. " ")) - end -}) - --- /home fs ---[[ commented because it needs Gio/Glib >= 2.54 -theme.fs = lain.widget.fs({ - partition = "/home", - notification_preset = { fg = theme.fg_normal, bg = theme.bg_normal, font = "Terminus 10.5" }, -}) ---]] - --- Battery -local bat = lain.widget.bat({ - settings = function() - local perc = bat_now.perc - if bat_now.ac_status == 1 then perc = perc .. " Plug" end - widget:set_markup(markup.font(theme.font, markup(gray, " Bat ") .. perc .. " ")) - end -}) - --- Net checker -local net = lain.widget.net({ - settings = function() - if net_now.state == "up" then net_state = "On" - else net_state = "Off" end - widget:set_markup(markup.font(theme.font, markup(gray, " Net ") .. net_state .. " ")) - end -}) - --- ALSA volume -theme.volume = lain.widget.alsa({ - settings = function() - header = " Vol " - vlevel = volume_now.level - - if volume_now.status == "off" then - vlevel = vlevel .. "M " - else - vlevel = vlevel .. " " - end - - widget:set_markup(markup.font(theme.font, markup(gray, header) .. vlevel)) - end -}) - --- Weather ---[[ to be set before use -theme.weather = lain.widget.weather({ - --APPID = - city_id = 2643743, -- placeholder (London) -}) ---]] - --- Separators -local first = wibox.widget.textbox(markup.font("Terminus 4", " ")) -local spr = wibox.widget.textbox(' ') - -local function update_txt_layoutbox(s) - -- Writes a string representation of the current layout in a textbox widget - local txt_l = theme["layout_txt_" .. awful.layout.getname(awful.layout.get(s))] or "" - s.mytxtlayoutbox:set_text(txt_l) -end - -function theme.at_screen_connect(s) - -- Quake application - s.quake = lain.util.quake({ app = awful.util.terminal }) - - -- If wallpaper is a function, call it with the screen - local wallpaper = theme.wallpaper - if type(wallpaper) == "function" then - wallpaper = wallpaper(s) - end - gears.wallpaper.maximized(wallpaper, s, true) - - -- Tags - awful.tag(awful.util.tagnames, s, awful.layout.layouts[1]) - - -- Create a promptbox for each screen - s.mypromptbox = awful.widget.prompt() - - -- Textual layoutbox - s.mytxtlayoutbox = wibox.widget.textbox(theme["layout_txt_" .. awful.layout.getname(awful.layout.get(s))]) - awful.tag.attached_connect_signal(s, "property::selected", function () update_txt_layoutbox(s) end) - awful.tag.attached_connect_signal(s, "property::layout", function () update_txt_layoutbox(s) end) - s.mytxtlayoutbox:buttons(my_table.join( - awful.button({}, 1, function() awful.layout.inc(1) end), - awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), - awful.button({}, 3, function() awful.layout.inc(-1) end), - awful.button({}, 4, function() awful.layout.inc(1) end), - awful.button({}, 5, function() awful.layout.inc(-1) end))) - - -- Create a taglist widget - s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) - - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) - - -- Create the wibox - s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(18) }) - - -- Add widgets to the wibox - s.mywibox:setup { - layout = wibox.layout.align.horizontal, - { -- Left widgets - layout = wibox.layout.fixed.horizontal, - first, - s.mytaglist, - spr, - s.mytxtlayoutbox, - --spr, - s.mypromptbox, - spr, - }, - s.mytasklist, -- Middle widget - { -- Right widgets - layout = wibox.layout.fixed.horizontal, - wibox.widget.systray(), - spr, - theme.mpd.widget, - --theme.mail.widget, - cpu.widget, - mem.widget, - bat.widget, - net.widget, - theme.volume.widget, - mytextclock - }, - } -end - -return theme diff --git a/themes/steamburn/wall.png b/themes/steamburn/wall.png deleted file mode 100755 index 57359d1..0000000 Binary files a/themes/steamburn/wall.png and /dev/null differ diff --git a/themes/vertex/rc.lua.custom b/themes/vertex/rc.lua.custom deleted file mode 100644 index 78a9989..0000000 --- a/themes/vertex/rc.lua.custom +++ /dev/null @@ -1,1005 +0,0 @@ ---[[ - - Awesome WM configuration template - github.com/lcpz - ---]] -- {{{ Required libraries --- If LuaRocks is installed, make sure that packages installed through it are --- found (e.g. lgi). If LuaRocks is not installed, do nothing. -pcall(require, "luarocks.loader") - -local gears = require("gears") -local awful = require("awful") -require("awful.autofocus") -local wibox = require("wibox") -local beautiful = require("beautiful") -local naughty = require("naughty") -local lain = require("lain") --- local menubar = require("menubar") -local freedesktop = require("freedesktop") -local hotkeys_popup = require("awful.hotkeys_popup") -require("awful.hotkeys_popup.keys") -local mytable = awful.util.table or gears.table -- 4.{0,1} compatibility --- collision --- require("collision")() - --- }}} - --- {{{ Error handling - --- Check if awesome encountered an error during startup and fell back to --- another config (This code will only ever execute for the fallback config) -if awesome.startup_errors then - naughty.notify { - preset = naughty.config.presets.critical, - title = "Oops, there were errors during startup!", - text = awesome.startup_errors - } -end - --- Handle runtime errors after startup -do - local in_error = false - - awesome.connect_signal("debug::error", function(err) - if in_error then - return - end - - in_error = true - - naughty.notify { - preset = naughty.config.presets.critical, - title = "Oops, an error happened!", - text = tostring(err) - } - - in_error = false - end) -end - --- }}} - --- {{{ Autostart windowless processes - --- This function will run once every time Awesome is started -local function run_once(cmd_arr) - for _, cmd in ipairs(cmd_arr) do - awful.spawn.with_shell(string.format("pgrep -u $USER -fx '%s' > /dev/null || (%s)", cmd, cmd)) - end -end - -run_once({"urxvtd", "unclutter -root"}) -- comma-separated entries - --- This function implements the XDG autostart specification ---[[ -awful.spawn.with_shell( - 'if (xrdb -query | grep -q "^awesome\\.started:\\s*true$"); then exit; fi;' .. - 'xrdb -merge <<< "awesome.started:true";' .. - -- list each of your autostart commands, followed by ; inside single quotes, followed by .. - 'dex --environment Awesome --autostart --search-paths "$XDG_CONFIG_DIRS/autostart:$XDG_CONFIG_HOME/autostart"' -- https://github.com/jceb/dex -) ---]] - --- }}} - --- {{{ Variable definitions - -local themes = {"blackburn", -- 1 -"copland", -- 2 -"dremora", -- 3 -"holo", -- 4 -"multicolor", -- 5 -"powerarrow", -- 6 -"powerarrow-dark", -- 7 DEFAULT -"rainbow", -- 8 -"steamburn", -- 9 -"vertex" -- 10 -} - -local chosen_theme = themes[10] -local modkey = "Mod4" -local altkey = "Mod1" -local terminal = "alacritty" -local vi_focus = false -- vi-like client focus https://github.com/lcpz/awesome-copycats/issues/275 -local cycle_prev = true -- cycle with only the previously focused client or all https://github.com/lcpz/awesome-copycats/issues/274 -local editor = os.getenv("EDITOR") or "nano" --- Pref browser -local browser = "librewolf" - --- Bluetooth -os.execute("rfkill block bluetooth") -local BLUESTATUS = false - --- IBus for keyboard layout switch --- os.execute("ibus-daemon -d") - -awful.util.terminal = terminal -awful.util.tagnames = {"1", "2"} -awful.layout.layouts = {awful.layout.suit.tile, awful.layout.suit.tile.left, awful.layout.suit.tile.bottom, - awful.layout.suit.tile.top, awful.layout.suit.fair, awful.layout.suit.fair.horizontal, - awful.layout.suit.spiral, awful.layout.suit.spiral.dwindle -- awful.layout.suit.floating --- awful.layout.suit.max, --- awful.layout.suit.max.fullscreen, --- awful.layout.suit.magnifier, --- awful.layout.suit.corner.nw, --- awful.layout.suit.corner.ne, --- awful.layout.suit.corner.sw, --- awful.layout.suit.corner.se, --- lain.layout.cascade, --- lain.layout.cascade.tile, --- lain.layout.centerwork, --- lain.layout.centerwork.horizontal, --- lain.layout.termfair, --- lain.layout.termfair.center -} - -lain.layout.termfair.nmaster = 3 -lain.layout.termfair.ncol = 1 -lain.layout.termfair.center.nmaster = 3 -lain.layout.termfair.center.ncol = 1 -lain.layout.cascade.tile.offset_x = 2 -lain.layout.cascade.tile.offset_y = 32 -lain.layout.cascade.tile.extra_padding = 5 -lain.layout.cascade.tile.nmaster = 5 -lain.layout.cascade.tile.ncol = 2 - -awful.util.taglist_buttons = mytable.join(awful.button({}, 1, function(t) - t:view_only() -end), awful.button({modkey}, 1, function(t) - if client.focus then - client.focus:move_to_tag(t) - end -end), awful.button({}, 3, awful.tag.viewtoggle), awful.button({modkey}, 3, function(t) - if client.focus then - client.focus:toggle_tag(t) - end -end), awful.button({}, 4, function(t) - awful.tag.viewnext(t.screen) -end), awful.button({}, 5, function(t) - awful.tag.viewprev(t.screen) -end)) - -awful.util.tasklist_buttons = mytable.join(awful.button({}, 1, function(c) - if c == client.focus then - c.minimized = true - else - c:emit_signal("request::activate", "tasklist", { - raise = true - }) - end -end), awful.button({}, 3, function() - awful.menu.client_list({ - theme = { - width = 250 - } - }) -end), awful.button({}, 4, function() - awful.client.focus.byidx(1) -end), awful.button({}, 5, function() - awful.client.focus.byidx(-1) -end)) - -beautiful.init(string.format("%s/.config/awesome/themes/%s/theme.lua", os.getenv("HOME"), chosen_theme)) - --- }}} - --- {{{ Menu - --- Create a launcher widget and a main menu -local myawesomemenu = {{"Hotkeys", function() - hotkeys_popup.show_help(nil, awful.screen.focused()) -end}, {"Manual", string.format("%s -e man awesome", terminal)}, - {"Edit config", string.format("%s -e %s %s", terminal, editor, awesome.conffile)}, - {"Restart", awesome.restart}, {"Quit", function() - awesome.quit() -end}} - -awful.util.mymainmenu = freedesktop.menu.build { - before = {{"Awesome", myawesomemenu, beautiful.awesome_icon} -- other triads can be put here - }, - after = {{"Open terminal", terminal} -- other triads can be put here - } -} - --- Hide the menu when the mouse leaves it - -awful.util.mymainmenu.wibox:connect_signal("mouse::leave", function() - if not awful.util.mymainmenu.active_child or - (awful.util.mymainmenu.wibox ~= mouse.current_wibox and awful.util.mymainmenu.active_child.wibox ~= - mouse.current_wibox) then - awful.util.mymainmenu:hide() - else - awful.util.mymainmenu.active_child.wibox:connect_signal("mouse::leave", function() - if awful.util.mymainmenu.wibox ~= mouse.current_wibox then - awful.util.mymainmenu:hide() - end - end) - end -end) - --- Set the Menubar terminal for applications that require it --- menubar.utils.terminal = terminal - --- }}} - --- {{{ Screen - --- Re-set wallpaper when a screen's geometry changes (e.g. different resolution) --- screen.connect_signal("property::geometry", function(s) --- -- Wallpaper --- if beautiful.wallpaper then --- local wallpaper = beautiful.wallpaper --- -- If wallpaper is a function, call it with the screen --- if type(wallpaper) == "function" then --- wallpaper = wallpaper(s) --- end --- gears.wallpaper.maximized(wallpaper, s, true) --- end --- end) - --- No borders when rearranging only 1 non-floating or maximized client -screen.connect_signal("arrange", function(s) - local only_one = #s.tiled_clients == 1 - for _, c in pairs(s.clients) do - if only_one and not c.floating or c.maximized or c.fullscreen then - c.border_width = 0 - else - c.border_width = beautiful.border_width - end - end -end) - --- Create a wibox for each screen and add it -awful.screen.connect_for_each_screen(function(s) - beautiful.at_screen_connect(s) -end) - --- }}} - --- {{{ Mouse bindings - -root.buttons(mytable.join(awful.button({}, 3, function() - awful.util.mymainmenu:toggle() -end), awful.button({}, 4, awful.tag.viewnext), awful.button({}, 5, awful.tag.viewprev))) - --- }}} - --- {{{ Key bindings - -globalkeys = mytable.join( -- Destroy all notifications -awful.key({"Control", "Shift"}, "Escape", function() - naughty.destroy_all_notifications() -end, { - description = "destroy all notifications", - group = "hotkeys" -}), -- Take a screenshot --- https://github.com/lcpz/dots/blob/master/bin/screenshot -awful.key({altkey}, "p", function() - os.execute("screenshot") -end, { - description = "take a screenshot", - group = "hotkeys" -}), -- xlock screen locker -awful.key({altkey, "Control", "Shift"}, "l", function() - os.execute("xlock") -end, { - description = "lock screen", - group = "hotkeys" -}), -- Show help -awful.key({modkey}, "s", hotkeys_popup.show_help, { - description = "show help", - group = "awesome" -}), -- Tag browsing -awful.key({modkey, "Ctrl"}, "Left", awful.tag.viewprev, { - description = "view previous", - group = "tag" -}), awful.key({modkey, "Ctrl"}, "Right", awful.tag.viewnext, { - description = "view next", - group = "tag" -}), awful.key({modkey}, "Escape", awful.tag.history.restore, { - description = "go back", - group = "tag" -}), -- Non-empty tag browsing -awful.key({altkey}, "Left", function() - lain.util.tag_view_nonempty(-1) -end, { - description = "view previous nonempty", - group = "tag" -}), awful.key({altkey}, "Right", function() - lain.util.tag_view_nonempty(1) -end, { - description = "view previous nonempty", - group = "tag" -}), -- Default client focus -awful.key({altkey}, "j", function() - awful.client.focus.byidx(1) -end, { - description = "focus next by index", - group = "client" -}), awful.key({altkey}, "k", function() - awful.client.focus.byidx(-1) -end, { - description = "focus previous by index", - group = "client" -}), -- By-direction client focus -awful.key({modkey}, "j", function() - awful.client.focus.global_bydirection("down") - if client.focus then - client.focus:raise() - end -end, { - description = "focus down", - group = "client" -}), awful.key({modkey}, "k", function() - awful.client.focus.global_bydirection("up") - if client.focus then - client.focus:raise() - end -end, { - description = "focus up", - group = "client" -}), awful.key({modkey}, "h", function() - awful.client.focus.global_bydirection("left") - if client.focus then - client.focus:raise() - end -end, { - description = "focus left", - group = "client" -}), awful.key({modkey}, "l", function() - awful.client.focus.global_bydirection("right") - if client.focus then - client.focus:raise() - end -end, { - description = "focus right", - group = "client" -}), -- Menu --- awful.key({modkey}, "w", function() --- awful.util.mymainmenu:show() --- end, { --- description = "show main menu", --- group = "awesome" --- }), -- Layout manipulation -awful.key({modkey, "Shift"}, "j", function() - awful.client.swap.byidx(1) -end, { - description = "swap with next client by index", - group = "client" -}), awful.key({modkey, "Shift"}, "k", function() - awful.client.swap.byidx(-1) -end, { - description = "swap with previous client by index", - group = "client" -}), awful.key({modkey, "Control"}, "j", function() - awful.screen.focus_relative(1) -end, { - description = "focus the next screen", - group = "screen" -}), awful.key({modkey, "Control"}, "k", function() - awful.screen.focus_relative(-1) -end, { - description = "focus the previous screen", - group = "screen" -}), awful.key({modkey}, "u", awful.client.urgent.jumpto, { - description = "jump to urgent client", - group = "client" -}), awful.key({modkey}, "Tab", function() - if cycle_prev then - awful.client.focus.history.previous() - else - awful.client.focus.byidx(-1) - end - if client.focus then - client.focus:raise() - end -end, { - description = "cycle with previous/go back", - group = "client" -}), -- Show/hide wibox -awful.key({modkey}, "b", function() - for s in screen do - s.mywibox.visible = not s.mywibox.visible - if s.mybottomwibox then - s.mybottomwibox.visible = not s.mybottomwibox.visible - end - end -end, { - description = "toggle wibox", - group = "awesome" -}), -- On-the-fly useless gaps change --- awful.key({ altkey, "Control" }, "+", function() --- lain.util.useless_gaps_resize(1) --- end, { --- description = "increment useless gaps", --- group = "tag" --- }), awful.key({ altkey, "Control" }, "-", function() --- lain.util.useless_gaps_resize(-1) --- end, { --- description = "decrement useless gaps", --- group = "tag" --- }), --- Dynamic tagging --- awful.key({modkey, "Shift"}, "n", function() --- lain.util.add_tag() --- end, { --- description = "add new tag", --- group = "tag" --- }), --- awful.key({modkey, "Shift"}, "r", function() --- lain.util.rename_tag() --- end, { --- description = "rename tag", --- group = "tag" --- }), -awful.key({modkey, "Shift"}, "Left", function() - lain.util.move_tag(-1) -end, { - description = "move tag to the left", - group = "tag" -}), awful.key({modkey, "Shift"}, "Right", function() - lain.util.move_tag(1) -end, { - description = "move tag to the right", - group = "tag" -}), -- awful.key({modkey, "Shift"}, "d", function() --- lain.util.delete_tag() --- end, { --- description = "delete tag", --- group = "tag" --- }), --- Standard program -awful.key({modkey}, "Return", function() - awful.spawn(terminal) -end, { - description = "open a terminal", - group = "launcher" -}), awful.key({modkey, "Control"}, "r", awesome.restart, { - description = "reload awesome", - group = "awesome" -}), awful.key({modkey, "Shift"}, "q", awesome.quit, { - description = "quit awesome", - group = "awesome" -}), awful.key({modkey, altkey}, "l", function() - awful.tag.incmwfact(0.05) -end, { - description = "increase master width factor", - group = "layout" -}), awful.key({modkey, altkey}, "h", function() - awful.tag.incmwfact(-0.05) -end, { - description = "decrease master width factor", - group = "layout" -}), awful.key({modkey, "Shift"}, "h", function() - awful.tag.incnmaster(1, nil, true) -end, { - description = "increase the number of master clients", - group = "layout" -}), awful.key({modkey, "Shift"}, "l", function() - awful.tag.incnmaster(-1, nil, true) -end, { - description = "decrease the number of master clients", - group = "layout" -}), awful.key({modkey, "Control"}, "h", function() - awful.tag.incncol(1, nil, true) -end, { - description = "increase the number of columns", - group = "layout" -}), awful.key({modkey, "Control"}, "l", function() - awful.tag.incncol(-1, nil, true) -end, { - description = "decrease the number of columns", - group = "layout" -}), awful.key({modkey}, "space", function() - awful.layout.inc(1) -end, { - description = "select next", - group = "layout" -}), awful.key({modkey, "Shift"}, "space", function() - awful.layout.inc(-1) -end, { - description = "select previous", - group = "layout" -}), awful.key({modkey, "Control"}, "n", function() - local c = awful.client.restore() - -- Focus restored client - if c then - c:emit_signal("request::activate", "key.unminimize", { - raise = true - }) - end -end, { - description = "restore minimized", - group = "client" -}), -- Dropdown application -awful.key({modkey}, "z", function() - awful.screen.focused().quake:toggle() -end, { - description = "dropdown application", - group = "launcher" -}), -- Widgets popups --- awful.key({ altkey }, "c", function() --- if beautiful.cal then --- beautiful.cal.show(7) --- end --- end, { --- description = "show calendar", --- group = "widgets" --- }), awful.key({ altkey }, "h", function() --- if beautiful.fs then --- beautiful.fs.show(7) --- end --- end, { --- description = "show filesystem", --- group = "widgets" --- }), awful.key({ altkey }, "w", function() --- if beautiful.weather then --- beautiful.weather.show(7) --- end --- end, { --- description = "show weather", --- group = "widgets" --- }), --- User programs -awful.key({modkey}, "w", function() - awful.spawn(browser) -end, { - description = "run browser", - group = "launcher" -}), -- Screen brightness -awful.key({}, "#233", function() - os.execute("light -A 10") -end, { - description = "Fn + f6 --- brightness +10%", - group = "hotkeys" -}), awful.key({}, "#232", function() - os.execute("light -U 10") -end, { - description = "Fn + f5 --- brightness -10%", - group = "hotkeys" -}), -- Max/Min Brightness -awful.key({altkey, "Control", "Shift"}, "0", function() - os.execute("light -S 0") -end, { - description = "Min screen brightness", - group = "hotkeys" -}), awful.key({altkey, "Control", "Shift"}, "9", function() - os.execute("light -S 100") -end, { - description = "Max screen brightness", - group = "hotkeys" -}), awful.key({altkey, "Control", "Shift"}, "m", function() - os.execute("light -S 50") -end, { - description = "Mid screen brightness", - group = "hotkeys" -}), -- Bluetooth toggle -awful.key({altkey, "Control", "Shift"}, "b", function() - os.execute("rfkill toggle bluetooth") - if BLUESTATUS == false then - naughty.notify({ - title = "Bluetooth", - text = "Bluetooth is ON" - }) - BLUESTATUS = true - else - naughty.notify({ - title = "Bluetooth", - text = "Bluetooth is OFF" - }) - BLUESTATUS = false - end -end, { - description = "Bluetooth toggle ON/OFF", - group = "hotkeys" -}), -- ALSA volume control -awful.key({}, "#123", function() - os.execute(string.format("amixer -q set %s 5%%+", beautiful.volume.channel)) - beautiful.volume.update() -end, { - description = "Fn + f3 --- volume up", - group = "hotkeys" -}), awful.key({}, "#122", function() - os.execute(string.format("amixer -q set %s 5%%-", beautiful.volume.channel)) - beautiful.volume.update() -end, { - description = "Fn + f2 --- volume down", - group = "hotkeys" -}), awful.key({}, "#121", function() - os.execute(string.format("amixer -q set %s toggle", beautiful.volume.togglechannel or beautiful.volume.channel)) - beautiful.volume.update() -end, { - description = "Fn + f1 --- toggle mute", - group = "hotkeys" -}), awful.key({altkey, "Control"}, "9", function() - os.execute(string.format("amixer -q set %s 100%%", beautiful.volume.channel)) - beautiful.volume.update() -end, { - description = "volume 100%", - group = "hotkeys" -}), awful.key({altkey, "Control"}, "0", function() - os.execute(string.format("amixer -q set %s 0%%", beautiful.volume.channel)) - beautiful.volume.update() -end, { - description = "volume 0%", - group = "hotkeys" -}), -- Copy primary to clipboard (terminals to gtk) -awful.key({modkey}, "c", function() - awful.spawn.with_shell("xsel | xsel -i -b") -end, { - description = "copy terminal to gtk", - group = "hotkeys" -}), -- Copy clipboard to primary (gtk to terminals) -awful.key({modkey}, "v", function() - awful.spawn.with_shell("xsel -b | xsel") -end, { - description = "copy gtk to terminal", - group = "hotkeys" -}), awful.key({modkey}, 'd', function() - for _, cl in ipairs(mouse.screen.selected_tag:clients()) do - local c = cl - if c then - if _G.client.focus then - c.minimized = true - else - c.minimized = false - end - end - end -end, { - description = "min/max all windows", - group = "client" -}), awful.key({altkey, "Control"}, "n", function() - for _, cl in ipairs(mouse.screen.selected_tag:clients()) do - local c = cl - if c then - c.minimized = true - end - end -end, { - description = "minimize all windows in current tag", - group = "client" -}), awful.key({altkey, "Control"}, "m", function() - for _, cl in ipairs(mouse.screen.selected_tag:clients()) do - local c = cl - if c then - c.minimized = false - end - end -end, { - description = "maximize all windows in current tag", - group = "client" -}), -- Default ---[[ Menubar - awful.key({ modkey }, "p", function() menubar.show() end, - {description = "show the menubar", group = "launcher"}), - --]] --[[ dmenu - awful.key({ modkey }, "x", function () - os.execute(string.format("dmenu_run -i -fn 'Monospace' -nb '%s' -nf '%s' -sb '%s' -sf '%s'", - beautiful.bg_normal, beautiful.fg_normal, beautiful.bg_focus, beautiful.fg_focus)) - end, - {description = "show dmenu", group = "launcher"}), - --]] -- alternatively use rofi, a dmenu-like application with more features --- check https://github.com/DaveDavenport/rofi for more details ---[[ rofi - awful.key({ modkey }, "x", function () - os.execute(string.format("rofi -show %s -theme %s", - 'run', 'dmenu')) - end, - {description = "show rofi", group = "launcher"}), - --]] -- Prompt -awful.key({modkey}, "r", function() - awful.util.spawn("rofi -show drun -matching fuzzy") -end, { - description = "run rofi", - group = "launcher" -}), awful.key({modkey}, "g", function() - awful.util.spawn("rofisearch") -end, { - description = "run rofi", - group = "launcher" -}), awful.key({modkey}, "x", function() - awful.prompt.run { - prompt = "Run Lua code: ", - textbox = awful.screen.focused().mypromptbox.widget, - exe_callback = awful.util.eval, - history_path = awful.util.get_cache_dir() .. "/history_eval" - } -end, { - description = "lua execute prompt", - group = "awesome" -}) -- ]] -) - -clientkeys = mytable.join(awful.key({altkey, "Shift"}, "m", lain.util.magnify_client, { - description = "magnify client", - group = "client" -}), awful.key({modkey}, "f", function(c) - c.fullscreen = not c.fullscreen - c:raise() -end, { - description = "toggle fullscreen", - group = "client" -}), awful.key({modkey}, "q", function(c) - c:kill() -end, { - description = "close", - group = "client" -}), awful.key({modkey, "Control"}, "space", awful.client.floating.toggle, { - description = "toggle floating", - group = "client" -}), awful.key({modkey, "Control"}, "Return", function(c) - c:swap(awful.client.getmaster()) -end, { - description = "move to master", - group = "client" -}), awful.key({modkey}, "o", function(c) - c:move_to_screen() -end, { - description = "move to screen", - group = "client" -}), awful.key({modkey}, "t", function(c) - c.ontop = not c.ontop -end, { - description = "toggle keep on top", - group = "client" -}), awful.key({modkey}, "n", function(c) - -- The client currently has the input focus, so it cannot be - -- minimized, since minimized clients can't have the focus. - c.minimized = true -end, { - description = "minimize", - group = "client" -}), awful.key({modkey}, "m", function(c) - c.maximized = not c.maximized - c:raise() -end, { - description = "(un)maximize", - group = "client" -}), awful.key({modkey, "Control"}, "m", function(c) - c.maximized_vertical = not c.maximized_vertical - c:raise() -end, { - description = "(un)maximize vertically", - group = "client" -}), awful.key({modkey, "Shift"}, "m", function(c) - c.maximized_horizontal = not c.maximized_horizontal - c:raise() -end, { - description = "(un)maximize horizontally", - group = "client" -})) - --- Bind all key numbers to tags. --- Be careful: we use keycodes to make it work on any keyboard layout. --- This should map on the top row of your keyboard, usually 1 to 9. -for i = 1, 9 do - globalkeys = mytable.join(globalkeys, -- View tag only. - awful.key({modkey}, "#" .. i + 9, function() - local screen = awful.screen.focused() - local tag = screen.tags[i] - if tag then - tag:view_only() - end - end, { - description = "view tag #" .. i, - group = "tag" - }), -- Toggle tag display. - awful.key({modkey, "Control"}, "#" .. i + 9, function() - local screen = awful.screen.focused() - local tag = screen.tags[i] - if tag then - awful.tag.viewtoggle(tag) - end - end, { - description = "toggle tag #" .. i, - group = "tag" - }), -- Move client to tag. - awful.key({modkey, "Shift"}, "#" .. i + 9, function() - if client.focus then - local tag = client.focus.screen.tags[i] - if tag then - client.focus:move_to_tag(tag) - end - end - end, { - description = "move focused client to tag #" .. i, - group = "tag" - }), -- Toggle tag on focused client. - awful.key({modkey, "Control", "Shift"}, "#" .. i + 9, function() - if client.focus then - local tag = client.focus.screen.tags[i] - if tag then - client.focus:toggle_tag(tag) - end - end - end, { - description = "toggle focused client on tag #" .. i, - group = "tag" - })) -end - -clientbuttons = mytable.join(awful.button({}, 1, function(c) - c:emit_signal("request::activate", "mouse_click", { - raise = true - }) -end), awful.button({modkey}, 1, function(c) - c:emit_signal("request::activate", "mouse_click", { - raise = true - }) - awful.mouse.client.move(c) -end), awful.button({modkey}, 3, function(c) - c:emit_signal("request::activate", "mouse_click", { - raise = true - }) - awful.mouse.client.resize(c) -end)) - --- Set keys -root.keys(globalkeys) - --- }}} - --- {{{ Rules - --- Rules to apply to new clients (through the "manage" signal). -awful.rules.rules = { -- All clients will match this rule. -{ - rule = {}, - properties = { - border_width = beautiful.border_width, - border_color = beautiful.border_normal, - callback = awful.client.setslave, - focus = awful.client.focus.filter, - raise = true, - keys = clientkeys, - buttons = clientbuttons, - screen = awful.screen.preferred, - placement = awful.placement.no_overlap + awful.placement.no_offscreen, - size_hints_honor = false - } -}, -- Floating clients. -{ - rule_any = { - instance = {"DTA", -- Firefox addon DownThemAll. - "copyq", -- Includes session name in class. - "pinentry"}, - class = {"Arandr", "Blueman-manager", "Gpick", "Kruler", "MessageWin", -- kalarm. - "Sxiv", "Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size. - "Wpa_gui", "veromix", "xtightvncviewer"}, - - -- Note that the name property shown in xprop might be set slightly after creation of the client - -- and the name shown there might not match defined rules here. - name = {"Event Tester" -- xev. - }, - role = {"AlarmWindow", -- Thunderbird's calendar. - "ConfigManager", -- Thunderbird's about:config. - "pop-up" -- e.g. Google Chrome's (detached) Developer Tools. - } - }, - properties = { - floating = true - } -}, -- Add titlebars to normal clients and dialogs -{ - rule_any = { - type = {"normal", "dialog"} - }, - properties = { - titlebars_enabled = false - } -} -- Set Firefox to always map on the tag named "2" on screen 1. --- { --- rule = { --- class = "Firefox" --- }, --- properties = { --- screen = 1, --- tag = "2" --- } --- } -} - --- }}} - --- {{{ Signals - --- Signal function to execute when a new client appears. -client.connect_signal("manage", function(c) - -- Set the windows at the slave, - -- i.e. put it at the end of others instead of setting it master. - -- if not awesome.startup then awful.client.setslave(c) end - - if awesome.startup and not c.size_hints.user_position and not c.size_hints.program_position then - -- Prevent clients from being unreachable after screen count changes. - awful.placement.no_offscreen(c) - end -end) - --- Add a titlebar if titlebars_enabled is set to true in the rules. -client.connect_signal("request::titlebars", function(c) - -- Custom - if beautiful.titlebar_fun then - beautiful.titlebar_fun(c) - return - end - - -- Default - -- buttons for the titlebar - local buttons = mytable.join(awful.button({}, 1, function() - c:emit_signal("request::activate", "titlebar", { - raise = true - }) - awful.mouse.client.move(c) - end), awful.button({}, 3, function() - c:emit_signal("request::activate", "titlebar", { - raise = true - }) - awful.mouse.client.resize(c) - end)) - - awful.titlebar(c, { - size = 16 - }):setup{ - { -- Left - awful.titlebar.widget.iconwidget(c), - buttons = buttons, - layout = wibox.layout.fixed.horizontal - }, - { -- Middle - { -- Title - align = "center", - widget = awful.titlebar.widget.titlewidget(c) - }, - buttons = buttons, - layout = wibox.layout.flex.horizontal - }, - { -- Right - awful.titlebar.widget.floatingbutton(c), - awful.titlebar.widget.maximizedbutton(c), - awful.titlebar.widget.stickybutton(c), - awful.titlebar.widget.ontopbutton(c), - awful.titlebar.widget.closebutton(c), - layout = wibox.layout.fixed.horizontal() - }, - layout = wibox.layout.align.horizontal - } -end) - --- Enable sloppy focus, so that focus follows mouse. -client.connect_signal("mouse::enter", function(c) - c:emit_signal("request::activate", "mouse_enter", { - raise = vi_focus - }) -end) - -client.connect_signal("focus", function(c) - c.border_color = beautiful.border_focus -end) -client.connect_signal("unfocus", function(c) - c.border_color = beautiful.border_normal -end) - --- }}} - --- Run garbage collector regularly to prevent memory leaks -gears.timer { - timeout = 30, - autostart = true, - callback = function() - collectgarbage() - end -} - --- Mute volume on startup --- os.execute(string.format("amixer set Master 0%%")) --- beautiful.volume.update() - --- Gaps -beautiful.useless_gap = 6 - --- awful.spawn.with_shell("picom") -awful.spawn.with_shell("nitrogen --set-zoom-fill --no-recurse --random --head=0 ~/Pictures/SFW/Nature") -awful.spawn.with_shell("optimus-manager-qt") -os.execute("picom -b")