Browse Source

Separate wallpaper for each screen.

master
Kolan Sh 2 years ago
parent
commit
40908e3306
2 changed files with 7 additions and 5 deletions
  1. +1
    -1
      autostart.lua
  2. +6
    -4
      rc.lua

+ 1
- 1
autostart.lua View File

@@ -1,6 +1,6 @@
os.execute ("setxkbmap -layout 'us,ru'")
os.execute ("setxkbmap -option 'grp:shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp'")
os.execute (os.getenv("HOME").."/.config/awesome/set_wall.sh "..os.getenv("HOME").."/.config/awesome/wallpaper.slink &")
--os.execute (os.getenv("HOME").."/.config/awesome/set_wall.sh "..os.getenv("HOME").."/.config/awesome/wallpaper.slink &")
os.execute ("pgrep xscreensaver || xscreensaver -no-splash &")
os.execute ("pgrep mail_loop.sh || "..os.getenv("HOME").."/.config/awesome/mail_loop.sh &")
os.execute ("pgrep wicd-client || wicd-gtk --tray &")


+ 6
- 4
rc.lua View File

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

--local function set_wallpaper(s)
local function set_wallpaper(s)
-- Wallpaper
-- if beautiful.wallpaper then
-- local wallpaper = beautiful.wallpaper
-- -- If wallpaper is a function, call it with the screen
@@ -383,14 +383,15 @@ local tasklist_buttons = gears.table.join(
-- end
-- gears.wallpaper.maximized(wallpaper, s, true)
-- end
--end
gears.wallpaper.maximized(cfgpath.."/wallpaper"..s.index..".slink", s, true)
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])


Loading…
Cancel
Save