Browse Source

set_wall.sh to scale the wallpaper over several screens.

master
Kolan Sh 2 years ago
parent
commit
352484ecaa
2 changed files with 17 additions and 17 deletions
  1. +13
    -13
      rc.lua
  2. +4
    -4
      themes/zenburn/theme.lua

+ 13
- 13
rc.lua View File

@@ -373,24 +373,24 @@ local tasklist_buttons = gears.table.join(
awful.client.focus.byidx(1)
end))

local function set_wallpaper(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
--local function set_wallpaper(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

-- 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)
-- Wallpaper
set_wallpaper(s)
-- set_wallpaper(s)

-- Each screen has its own tag table.
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-" }, s, awful.layout.layouts[4])


+ 4
- 4
themes/zenburn/theme.lua View File

@@ -4,10 +4,13 @@
-------------------------------

local themes_path = require("gears.filesystem").get_themes_dir()
local home = os.getenv("HOME")
local cfgpath = home.."/.config/awesome"

-- {{{ Main
local theme = {}
theme.wallpaper = themes_path .. "zenburn/zenburn-background.png"
--theme.wallpaper = themes_path .. "zenburn/zenburn-background.png"
theme.wallpaper = cfgpath .. "/wallpaper.slink"
-- }}}

-- {{{ Styles
@@ -131,9 +134,6 @@ theme.titlebar_maximized_button_normal_inactive = themes_path .. "zenburn/titleb
-- }}}

-- {{{ Widgets
local home = os.getenv("HOME")
local cfgpath = home.."/.config/awesome"

theme.widget_disk = cfgpath .. "/Icons/16x16/hdd_clear.png"
theme.widget_cpu = cfgpath .. "/themes/default/widgets/cpu.png"
theme.widget_ac = cfgpath .. "/themes/default/widgets/ac.png"


Loading…
Cancel
Save