Separate wallpaper for each screen.

master
Kolan Sh 2017-07-25 17:19:37 +03:00
rodzic 31df76c3ce
commit 40908e3306
2 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -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 &")

11
rc.lua
Wyświetl plik

@ -373,8 +373,8 @@ local tasklist_buttons = gears.table.join(
awful.client.focus.byidx(1)
end))
--local function set_wallpaper(s)
-- -- Wallpaper
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])