Bash : Remove old Wallpaper module.
This commit is contained in:
parent
87e9603a17
commit
c5a66aef11
|
@ -1,14 +0,0 @@
|
||||||
# Set specified file as a wallpaper.
|
|
||||||
# Usage: wallpaper <FILE>
|
|
||||||
function wallpaper() {
|
|
||||||
local target="${1}"
|
|
||||||
local path_wallpaper=~/.local/share/backgrounds/background.jpg
|
|
||||||
|
|
||||||
if [[ "${target}" = "" ]]; then
|
|
||||||
help wallpaper
|
|
||||||
return 2
|
|
||||||
fi
|
|
||||||
|
|
||||||
cp "${target}" "${path_wallpaper}"
|
|
||||||
chmod 644 "${path_wallpaper}"
|
|
||||||
}
|
|
Loading…
Reference in a new issue