Huge refractor and many fixes for dock, icons(again) etc
This commit is contained in:
37
awesome/src/theme/init.lua
Normal file
37
awesome/src/theme/init.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
--------------------------------------------------
|
||||
-- ██████╗██████╗ ██╗ ██╗██╗ ██╗ █████╗ --
|
||||
-- ██╔════╝██╔══██╗╚██╗ ██╔╝██║ ██║██╔══██╗ --
|
||||
-- ██║ ██████╔╝ ╚████╔╝ ██║ ██║███████║ --
|
||||
-- ██║ ██╔══██╗ ╚██╔╝ ██║ ██║██╔══██║ --
|
||||
-- ╚██████╗██║ ██║ ██║ ███████╗██║██║ ██║ --
|
||||
-- ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝╚═╝ ╚═╝ --
|
||||
--------------------------------------------------
|
||||
local awful = require("awful")
|
||||
local beautiful = require("beautiful")
|
||||
local gears = require("gears")
|
||||
|
||||
Theme_path = awful.util.getdir("config") .. "/src/theme/"
|
||||
Theme = {}
|
||||
|
||||
dofile(Theme_path .. "theme_variables.lua")
|
||||
|
||||
Theme.awesome_icon = Theme_path .. "../assets/icons/ArchLogo.png"
|
||||
Theme.awesome_subicon = Theme_path .. "../assets/icons/ArchLogo.png"
|
||||
|
||||
-- Wallpaper
|
||||
beautiful.wallpaper = user_vars.wallpaper
|
||||
screen.connect_signal(
|
||||
'request::wallpaper',
|
||||
function(s)
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if beautiful.wallpaper then
|
||||
if type(beautiful.wallpaper) == 'string' then
|
||||
gears.wallpaper.maximized(beautiful.wallpaper, s)
|
||||
else
|
||||
beautiful.wallpaper(s)
|
||||
end
|
||||
end
|
||||
end
|
||||
)
|
||||
|
||||
beautiful.init(Theme)
|
||||
Reference in New Issue
Block a user