44# |-/ /--| Prasanth Rangan |-/ /--|#
55# |/ /---+-----------------------------+/ /---|#
66
7- ScrDir=$( dirname " $( dirname " $( realpath " $0 " ) " ) " )
8-
9- source " $ScrDir /global_fn.sh"
7+ scrDir=$( dirname " $( dirname " $( realpath " $0 " ) " ) " )
8+ source " ${scrDir} /global_fn.sh"
109if [ $? -ne 0 ]; then
11- echo " Error: unable to source global_fn.sh, please execute from $( dirname " $( realpath " $0 " ) " ) ..."
10+ echo " Error: unable to source global_fn.sh..."
1211 exit 1
1312fi
1413
1514CloneDir=$( dirname " $( realpath " $CloneDir " ) " )
1615
17- # icons
16+
17+ # // icons
18+
1819if [ -f /usr/share/applications/rofi-theme-selector.desktop ] && [ -f /usr/share/applications/rofi.desktop ]; then
1920 sudo rm /usr/share/applications/rofi-theme-selector.desktop
2021 sudo rm /usr/share/applications/rofi.desktop
2122fi
2223sudo sed -i " /^Icon=/c\Icon=adjust-colors" /usr/share/applications/nwg-look.desktop
2324sudo sed -i " /^Icon=/c\Icon=spectacle" /usr/share/applications/swappy.desktop
2425
25- # steam
26- # if pkg_installed steam
27- # then
28- # skinsDir="${XDG_DATA_HOME:-$HOME/.local/share}/Steam/Skins/"
29- # if [ ! -d "$skinsDir" ]
30- # then
31- # mkdir -p "$skinsDir"
32- # fi
33- # tar -xzf ${CloneDir}/Source/arcs/Steam_Metro.tar.gz -C "$skinsDir"
34- # fi
3526
36- # spotify
37- if pkg_installed spotify && pkg_installed spicetify-cli; then
38- if [ ! -w /opt/spotify ] || [ ! -w /opt/spotify/Apps ]; then
39- sudo chmod a+wr /opt/spotify
40- sudo chmod a+wr /opt/spotify/Apps -R
41- fi
27+ # // firefox
4228
43- spicetify & > /dev/null
44- mkdir -p ~ /.config/spotify
45- touch ~ /.config/spotify/prefs
46- sptfyConf=$( spicetify -c)
47- sed -i " /^prefs_path/ s+=.*$+= $HOME /.config/spotify/prefs+g" " ${sptfyConf} "
48- tar -xzf ${CloneDir} /Source/arcs/Spotify_Sleek.tar.gz -C ~ /.config/spicetify/Themes/
49- spicetify backup apply
50- spicetify config current_theme Sleek
51- spicetify config color_scheme Wallbash
52- spicetify apply
53- fi
54-
55- # firefox
5629if pkg_installed firefox; then
5730 FoxRel=$( find ~ /.mozilla/firefox -maxdepth 1 -type d -name " *.default-release" | head -1)
5831
@@ -74,3 +47,4 @@ if pkg_installed firefox; then
7447 firefox -profile " ${FoxRel} " " ${fext} " & > /dev/null &
7548 done
7649fi
50+
0 commit comments