aboutsummaryrefslogtreecommitdiff
path: root/install.nu
diff options
context:
space:
mode:
Diffstat (limited to 'install.nu')
-rwxr-xr-xinstall.nu24
1 files changed, 24 insertions, 0 deletions
diff --git a/install.nu b/install.nu
new file mode 100755
index 0000000..640a920
--- /dev/null
+++ b/install.nu
@@ -0,0 +1,24 @@
+#!/usr/bin/env nu
+
+#
+# ~~~ firefox config installer
+#
+
+#
+# ~~~ variables
+
+# get profile location
+let PROFILE_DIR = match (uname | get nodename) {
+ "glados" | "wheatley" => $"($env.HOME)/.config/librewolf/librewolf/Main",
+ "hx7124" => $"($env.HOME)/Application Support/librewolf/Profiles/Main",
+ _ => { error make -u { msg: "invalid device" } }
+}
+
+#
+# ~~~ install
+
+# make userChrome directory
+mkdir $"($PROFILE_DIR)/chrome"
+
+# copy userChrome
+cp "css/userChrome.css" $"($PROFILE_DIR)/chrome/"