summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-29 16:40:54 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-03-29 16:40:54 +1100
commit0bfcbbf0dc83f87ab21d7d3b4a5980eaa51f0018 (patch)
treeea3052513cdfcbe01a62812d13fdfc25c79c01c8 /install
parentscheme: fix fruitsalad colours (diff)
downloadcaelestia-cli-0bfcbbf0dc83f87ab21d7d3b4a5980eaa51f0018.tar.gz
caelestia-cli-0bfcbbf0dc83f87ab21d7d3b4a5980eaa51f0018.tar.bz2
caelestia-cli-0bfcbbf0dc83f87ab21d7d3b4a5980eaa51f0018.zip
install: add qt
Diffstat (limited to 'install')
-rwxr-xr-xinstall/qt.fish20
-rw-r--r--install/util.fish10
-rwxr-xr-xinstall/vscode.fish10
3 files changed, 30 insertions, 10 deletions
diff --git a/install/qt.fish b/install/qt.fish
new file mode 100755
index 0000000..83ef567
--- /dev/null
+++ b/install/qt.fish
@@ -0,0 +1,20 @@
+#!/bin/fish
+
+. (dirname (status filename))/util.fish
+
+install-deps git darkly-bin
+install-optional-deps 'papirus-icon-theme (icon theme)'
+
+set -l dist $C_DATA/qt
+
+# Update/Clone repo
+update-repo qt $dist
+
+# Install systemd service
+setup-systemd-monitor qt $dist
+
+# Change settings
+confirm-copy $dist/qtct.conf $CONFIG/qt5ct/qt5ct.conf
+confirm-copy $dist/qtct.conf $CONFIG/qt6ct/qt6ct.conf
+
+log 'Done.'
diff --git a/install/util.fish b/install/util.fish
index 1d1a6ec..e5dd7f8 100644
--- a/install/util.fish
+++ b/install/util.fish
@@ -116,3 +116,13 @@ function install-link -a from to
ln -s $from $to
end
end
+
+function confirm-copy -a from to
+ test -L $to -a "$(realpath $to 2> /dev/null)" = (realpath $from) && return # Return if symlink
+ cmp $from $to &> /dev/null && return # Return if files are the same
+ if test -e $to
+ read -l -p "input '$(realpath $to) already exists. Overwrite? [y/N] ' -n" confirm
+ test "$confirm" = 'y' -o "$confirm" = 'Y' && log 'Continuing.' || return
+ end
+ cp $from $to
+end
diff --git a/install/vscode.fish b/install/vscode.fish
index 8d4aa6c..d1d89d7 100755
--- a/install/vscode.fish
+++ b/install/vscode.fish
@@ -2,16 +2,6 @@
. (dirname (status filename))/util.fish
-function confirm-copy -a from to
- test -L $to -a "$(realpath $to 2> /dev/null)" = (realpath $from) && return # Return if symlink
- cmp $from $to 2> /dev/null && return # Return if files are the same
- if test -e $to
- read -l -p "input '$(realpath $to) already exists. Overwrite? [y/N] ' -n" confirm
- test "$confirm" = 'y' -o "$confirm" = 'Y' && log 'Continuing.' || return
- end
- cp $from $to
-end
-
install-deps git
set -l dist $C_DATA/vscode