This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/bash/module/wallpaper.sh

15 lines
307 B
Bash
Raw Normal View History

2023-12-07 04:02:47 +03:00
# Set specified file as a wallpaper.
# Usage: wallpaper <FILE>
2023-12-07 01:44:42 +03:00
function wallpaper() {
2023-12-07 04:02:47 +03:00
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}"
2023-08-08 16:24:15 +03:00
}