Initial commit
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/ac.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 125 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/bat.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 167 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/clock.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 356 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/cpu.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 266 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/dish.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 140 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/dwindle.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 214 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/fairh.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 212 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/fairv.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 224 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/floating.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 187 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/fs.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 142 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/fullscreen.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 188 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/magnifier.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 188 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/mail.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 180 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/max.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 323 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/mem.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 117 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/net_down.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 348 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/net_up.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 350 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/note.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 242 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/note_on.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 342 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/spiral.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 215 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/spkr.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 350 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/square_a.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 146 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/square_b.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 141 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/submenu.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 180 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/temp.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 353 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/tile.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 213 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/tilebottom.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 205 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/tileleft.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 212 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/tiletop.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 205 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/close_focus.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/close_normal.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 966 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/floating_focus_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 380 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/floating_focus_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 199 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/floating_normal_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 386 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/floating_normal_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 237 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/maximized_focus_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 463 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/maximized_focus_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 474 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/maximized_normal_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 480 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/maximized_normal_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 452 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/minimize_focus.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 234 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/minimize_normal.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 225 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/ontop_focus_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 212 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/ontop_focus_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 629 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/ontop_normal_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 467 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/ontop_normal_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 604 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/sticky_focus_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 622 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/sticky_focus_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 741 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/sticky_normal_active.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 654 B  | 
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/icons/titlebar/sticky_normal_inactive.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 758 B  | 
							
								
								
									
										351
									
								
								.config/awesome/themes/multicolor/theme.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,351 @@
 | 
			
		||||
--[[
 | 
			
		||||
 | 
			
		||||
     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                                 = os.getenv("HOME") .. "/.config/awesome/themes/rainbow/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
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								.config/awesome/themes/multicolor/wall.png
									
									
									
									
									
										Executable file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 2.0 MiB  |