summarylogtreecommitdiffstats
path: root/regolith-look.patch
blob: a50a1f81e355ba4f18c08b8beb5b710873f8e897 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/usr/bin/regolith-look	2021-05-27 19:04:59.000000000 -0400
+++ b/usr/bin/regolith-look	2021-11-04 07:06:53.978529712 -0400
@@ -90,6 +90,17 @@
         echo "Look $LOOK does not exist or export a root file at /etc/regolith/styles/$LOOK/root, aborting."
         exit 1
     fi
+    if [ ! -d "$HOME/.config/regolith" ]; then
+	mkdir -p $HOME/.config/regolith
+    fi
+    if [ -f "$HOME/.config/regolith/rofication.rasi" ]; then
+	rm "$HOME/.config/regolith/rofication.rasi"
+    	ln -s /etc/regolith/styles/$LOOK/rofi.rasi $HOME/.config/regolith/rofication.rasi
+    else
+	ln -s /etc/regolith/styles/$LOOK/rofi.rasi $HOME/.config/regolith/rofication.rasi
+    fi
+	exit 0
+
 }
 
 if [ "$COMMAND" == "refresh" ]; then