set_wall.sh to scale the wallpaper over several screens.
This commit is contained in:
parent
11db495e01
commit
352484ecaa
26
rc.lua
26
rc.lua
|
@ -373,24 +373,24 @@ local tasklist_buttons = gears.table.join(
|
||||||
awful.client.focus.byidx(1)
|
awful.client.focus.byidx(1)
|
||||||
end))
|
end))
|
||||||
|
|
||||||
local function set_wallpaper(s)
|
--local function set_wallpaper(s)
|
||||||
-- Wallpaper
|
-- -- Wallpaper
|
||||||
if beautiful.wallpaper then
|
-- if beautiful.wallpaper then
|
||||||
local wallpaper = beautiful.wallpaper
|
-- local wallpaper = beautiful.wallpaper
|
||||||
-- If wallpaper is a function, call it with the screen
|
-- -- If wallpaper is a function, call it with the screen
|
||||||
if type(wallpaper) == "function" then
|
-- if type(wallpaper) == "function" then
|
||||||
wallpaper = wallpaper(s)
|
-- wallpaper = wallpaper(s)
|
||||||
end
|
-- end
|
||||||
gears.wallpaper.maximized(wallpaper, s, true)
|
-- gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
end
|
-- end
|
||||||
end
|
--end
|
||||||
|
|
||||||
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
|
||||||
screen.connect_signal("property::geometry", set_wallpaper)
|
--screen.connect_signal("property::geometry", set_wallpaper)
|
||||||
|
|
||||||
awful.screen.connect_for_each_screen(function(s)
|
awful.screen.connect_for_each_screen(function(s)
|
||||||
-- Wallpaper
|
-- Wallpaper
|
||||||
set_wallpaper(s)
|
-- set_wallpaper(s)
|
||||||
|
|
||||||
-- Each screen has its own tag table.
|
-- Each screen has its own tag table.
|
||||||
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-" }, s, awful.layout.layouts[4])
|
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-" }, s, awful.layout.layouts[4])
|
||||||
|
|
|
@ -4,10 +4,13 @@
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
local themes_path = require("gears.filesystem").get_themes_dir()
|
local themes_path = require("gears.filesystem").get_themes_dir()
|
||||||
|
local home = os.getenv("HOME")
|
||||||
|
local cfgpath = home.."/.config/awesome"
|
||||||
|
|
||||||
-- {{{ Main
|
-- {{{ Main
|
||||||
local theme = {}
|
local theme = {}
|
||||||
theme.wallpaper = themes_path .. "zenburn/zenburn-background.png"
|
--theme.wallpaper = themes_path .. "zenburn/zenburn-background.png"
|
||||||
|
theme.wallpaper = cfgpath .. "/wallpaper.slink"
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Styles
|
-- {{{ Styles
|
||||||
|
@ -131,9 +134,6 @@ theme.titlebar_maximized_button_normal_inactive = themes_path .. "zenburn/titleb
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Widgets
|
-- {{{ Widgets
|
||||||
local home = os.getenv("HOME")
|
|
||||||
local cfgpath = home.."/.config/awesome"
|
|
||||||
|
|
||||||
theme.widget_disk = cfgpath .. "/Icons/16x16/hdd_clear.png"
|
theme.widget_disk = cfgpath .. "/Icons/16x16/hdd_clear.png"
|
||||||
theme.widget_cpu = cfgpath .. "/themes/default/widgets/cpu.png"
|
theme.widget_cpu = cfgpath .. "/themes/default/widgets/cpu.png"
|
||||||
theme.widget_ac = cfgpath .. "/themes/default/widgets/ac.png"
|
theme.widget_ac = cfgpath .. "/themes/default/widgets/ac.png"
|
||||||
|
|
Loading…
Reference in New Issue