forked from Shinonome/caelestia-cli
install: add qt
This commit is contained in:
Executable
+20
@@ -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.'
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user