doc: Update wallaper example in tutorial

Reported by elbuggito in IRC that this the example line is no longer present in the default theme.lua.
This commit is contained in:
Matthew Wild 2020-02-28 08:53:02 +00:00 committed by GitHub
parent a8451517db
commit c4bc882825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -87,7 +87,11 @@ user name):
Your desktop background image is handled in your theme file. To change it, edit Your desktop background image is handled in your theme file. To change it, edit
this line in your theme file: this line in your theme file:
beautiful.get().wallpaper = "/usr/share/awesome/themes/default/background.png" theme.wallpaper = themes_path.."default/background.png"
The default uses a path relative to `themes_path` by using the `..` operator to join two strings together. To just set it to an absolute path for example, you could do:
theme.wallpaper = "/usr/share/backgrounds/my-awesome-wallpaper.png"
## Personalize your layouts ## Personalize your layouts