1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-08 09:53:13 +00:00
Dotfiles/.config/polybar/scripts/style.sh

46 lines
1.4 KiB
Bash
Raw Normal View History

2020-07-27 04:59:00 +00:00
#!/bin/bash
## Author : Aditya Shakya
## Github : adi1090x
PDIR="$HOME/.config/polybar"
LAUNCH="polybar-msg cmd restart"
if [[ $1 = "-Feather" ]]; then
# Removing Old File
rm -rf $PDIR/scripts $PDIR/bars.ini $PDIR/colors.ini $PDIR/config.ini $PDIR/modules.ini $PDIR/tester-file-1.ini $PDIR/tester-file-2.ini $PDIR/tester-file-3.ini $PDIR/user_modules.ini
# Coping New File
cp -r $PDIR/source/feather/* $PDIR
# Restarting polybar
$LAUNCH &
elif [[ $1 = "-Material" ]]; then
# Removing Old File
rm -rf $PDIR/scripts $PDIR/bars.ini $PDIR/colors.ini $PDIR/config.ini $PDIR/modules.ini $PDIR/tester-file-1.ini $PDIR/tester-file-2.ini $PDIR/tester-file-3.ini $PDIR/user_modules.ini
# Coping New File
cp -r $PDIR/source/material/* $PDIR
# Restarting polybar
$LAUNCH &
elif [[ $1 = "-Siji" ]]; then
# Removing Old File
rm -rf $PDIR/scripts $PDIR/bars.ini $PDIR/colors.ini $PDIR/config.ini $PDIR/modules.ini $PDIR/tester-file-1.ini $PDIR/tester-file-2.ini $PDIR/tester-file-3.ini $PDIR/user_modules.ini
# Coping New File
cp -r $PDIR/source/siji/* $PDIR
# Restarting polybar
$LAUNCH &
elif [[ $1 = "-Typicons" ]]; then
# Removing Old File
rm -rf $PDIR/scripts $PDIR/bars.ini $PDIR/colors.ini $PDIR/config.ini $PDIR/modules.ini $PDIR/tester-file-1.ini $PDIR/tester-file-2.ini $PDIR/tester-file-3.ini $PDIR/user_modules.ini
# Coping New File
cp -r $PDIR/source/typicons/* $PDIR
# Restarting polybar
$LAUNCH &
else
echo "Available options:
Feather Material Siji
Typicons"
fi