Some work
This commit is contained in:
22
awesome/background_widget.lua
Normal file
22
awesome/background_widget.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
local wibox = require('wibox')
|
||||
local awful = require('awful')
|
||||
|
||||
function add_background_widget(s)
|
||||
|
||||
background_widget = awful.wibar({
|
||||
screen = s,
|
||||
height = s.geometry.height,
|
||||
bg = "#00000000",
|
||||
})
|
||||
|
||||
local text = wibox.widget.textbox("Hello to you")
|
||||
text.point = { x = 75, y = 200 }
|
||||
|
||||
background_widget:setup {
|
||||
layout = wibox.layout.manual,
|
||||
text,
|
||||
}
|
||||
|
||||
background_widget:struts({left=0, right=0, top=0, bottom=0})
|
||||
|
||||
end
|
||||
@@ -222,6 +222,7 @@ local volume = require('volume')
|
||||
local calendar = require('calendar')
|
||||
local launchbar = require('launchbar')
|
||||
local music = require('music')
|
||||
local background = require('background_widget')
|
||||
local delimiter = wibox.widget.textbox(" | ")
|
||||
|
||||
local function set_wallpaper(s)
|
||||
@@ -293,6 +294,9 @@ awful.screen.connect_for_each_screen(function(s)
|
||||
s.mylayoutbox,
|
||||
},
|
||||
}
|
||||
|
||||
add_background_widget(s)
|
||||
|
||||
end)
|
||||
-- }}}
|
||||
|
||||
|
||||
@@ -6,13 +6,13 @@ local theme = {}
|
||||
|
||||
theme.font = "sans 8"
|
||||
|
||||
theme.bg_normal = "#222222"
|
||||
theme.bg_focus = "#535d6c"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#444444"
|
||||
theme.bg_normal = "#22222299"
|
||||
theme.bg_focus = "#535d6c99"
|
||||
theme.bg_urgent = "#ff000099"
|
||||
theme.bg_minimize = "#44444499"
|
||||
theme.bg_systray = theme.bg_normal
|
||||
|
||||
theme.fg_normal = "#aaaaaa"
|
||||
theme.fg_normal = "#cccccc"
|
||||
theme.fg_focus = "#ffffff"
|
||||
theme.fg_urgent = "#ffffff"
|
||||
theme.fg_minimize = "#ffffff"
|
||||
@@ -76,7 +76,7 @@ theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/def
|
||||
theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png"
|
||||
theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png"
|
||||
|
||||
theme.wallpaper = "/usr/share/awesome/themes/default/background.png"
|
||||
theme.wallpaper = "/home/thomas/Pictures/Wallpapers/arch-1920x1080.png"
|
||||
|
||||
-- You can use your own layout icons like this:
|
||||
theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png"
|
||||
|
||||
Reference in New Issue
Block a user