diff --git a/images/wallpaper.jpg b/images/wallpaper.jpg new file mode 100644 index 0000000..681caa1 Binary files /dev/null and b/images/wallpaper.jpg differ diff --git a/users/rouven/modules/awesome/default.nix b/users/rouven/modules/awesome/default.nix index 039b040..a5c2e34 100644 --- a/users/rouven/modules/awesome/default.nix +++ b/users/rouven/modules/awesome/default.nix @@ -1,5 +1,6 @@ { config, pkgs, ... }: { # declaration of awesome wm is in hosts//default.nix + home.file.".wallpaper.jpg".source = ../../../../images/wallpaper.jpg; xdg.configFile."awesome/rc.lua".source = ./rc.lua; } diff --git a/users/rouven/modules/awesome/rc.lua b/users/rouven/modules/awesome/rc.lua index 5a0e1a7..b561625 100644 --- a/users/rouven/modules/awesome/rc.lua +++ b/users/rouven/modules/awesome/rc.lua @@ -162,7 +162,7 @@ local tasklist_buttons = gears.table.join( local function set_wallpaper(s) -- Wallpaper - awful.spawn.easy_async_with_shell("sh /home/rouven/.fehbg") + awful.spawn.easy_async_with_shell("feh --no-fehbg --bg-scale $HOME/.wallpaper.jpg") end -- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)