Add verbosity
This commit is contained in:
parent
e4644a2bea
commit
659f270b5f
16
installer.sh
16
installer.sh
|
@ -1,21 +1,29 @@
|
||||||
#/bin/bash
|
#/bin/bash
|
||||||
|
|
||||||
# Create systemd user directory
|
# Create systemd user directory
|
||||||
mkdir -p ~/.config/systemd/user
|
echo "Create systemd user directory."
|
||||||
|
mkdir -vp ~/.config/systemd/user
|
||||||
|
|
||||||
# Copy unit files
|
# Copy unit files
|
||||||
cp theme-switcher.{service,timer} ~/.config/systemd/user
|
echo "Copy unit files."
|
||||||
|
cp -v theme-switcher.{service,timer} ~/.config/systemd/user
|
||||||
|
|
||||||
# Add username to service file
|
# Add username to service file
|
||||||
|
echo "Edit service unit file."
|
||||||
sed -i "s/username/$(whoami)/g" ~/.config/systemd/user/theme-switcher.service
|
sed -i "s/username/$(whoami)/g" ~/.config/systemd/user/theme-switcher.service
|
||||||
|
|
||||||
# Make directory for scripts
|
# Make directory for scripts
|
||||||
mkdir -p ~/.theme-switcher
|
echo "Create script directory in /home."
|
||||||
|
mkdir -vp ~/.theme-switcher
|
||||||
|
|
||||||
# Copy script file
|
# Copy script file
|
||||||
cp *.sh ~/.theme-switcher
|
echo "Copy script into directory."
|
||||||
|
cp -v *.sh ~/.theme-switcher
|
||||||
|
|
||||||
# Enable and start timer
|
# Enable and start timer
|
||||||
|
echo "Enabling timer."
|
||||||
systemctl --user enable theme-switcher.timer
|
systemctl --user enable theme-switcher.timer
|
||||||
|
echo "Starting timer."
|
||||||
systemctl --user start theme-switcher.timer
|
systemctl --user start theme-switcher.timer
|
||||||
|
echo "Starting service."
|
||||||
systemctl --user start theme-switcher
|
systemctl --user start theme-switcher
|
Loading…
Reference in New Issue