Separate wallpaper for each screen.

This commit is contained in:
Kolan Sh 2017-07-25 17:19:37 +03:00
parent 31df76c3ce
commit 40908e3306
2 changed files with 7 additions and 6 deletions

View File

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

11
rc.lua
View File

@ -373,8 +373,8 @@ 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
@ -383,14 +383,15 @@ local tasklist_buttons = gears.table.join(
-- end -- end
-- gears.wallpaper.maximized(wallpaper, s, true) -- gears.wallpaper.maximized(wallpaper, s, true)
-- end -- 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) -- 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])