style(install-script)

This commit is contained in:
TheK4n 2023-05-09 22:13:04 +03:00
parent 6f7fde1eba
commit 7935d87e7d
2 changed files with 16 additions and 16 deletions

View File

@ -32,20 +32,20 @@ cmd_edit() {
chmod u+x "$LAYOUTS_DIR/$1.sh" chmod u+x "$LAYOUTS_DIR/$1.sh"
} }
cmd_load() {
if [ -z "$1" ]; then
"$LAYOUTS_DIR/default.sh"
return 0
fi
"$LAYOUTS_DIR/$1.sh"
}
cmd_wallpaper() { cmd_wallpaper() {
local wallpapers="$HOME/.wallpaper" local wallpapers="$HOME/.wallpaper"
feh --no-fehbg --bg-scale "$wallpapers/$(ls "$wallpapers" | shuf -n 1)" feh --no-fehbg --bg-scale "$wallpapers/$(ls "$wallpapers" | shuf -n 1)"
} }
cmd_load() {
if [ -z "$1" ]; then
"$LAYOUTS_DIR/default.sh"
else
"$LAYOUTS_DIR/$1.sh"
fi
cmd_wallpaper
}
cmd_help () { cmd_help () {
echo "slm (ls|add|load|wallpaper)" >&2 echo "slm (ls|add|load|wallpaper)" >&2
} }