forked from Shinonome/caelestia-cli
install: add qt
This commit is contained in:
@@ -22,7 +22,7 @@ complete -c caelestia -n $not_seen -a 'wallpaper' -d 'Change the wallpaper'
|
|||||||
complete -c caelestia -n $not_seen -a 'pip' -d 'Picture in picture utilities'
|
complete -c caelestia -n $not_seen -a 'pip' -d 'Picture in picture utilities'
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
set -l commands all btop discord firefox fish foot fuzzel hypr safeeyes scripts shell slurp gtk vscode
|
set -l commands all btop discord firefox fish foot fuzzel hypr safeeyes scripts shell slurp gtk qt vscode
|
||||||
complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
|
complete -c caelestia -n "$seen install && not $seen $commands" -a "$commands"
|
||||||
|
|
||||||
# Shell
|
# Shell
|
||||||
|
|||||||
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
|
ln -s $from $to
|
||||||
end
|
end
|
||||||
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
|
. (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
|
install-deps git
|
||||||
|
|
||||||
set -l dist $C_DATA/vscode
|
set -l dist $C_DATA/vscode
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ if test "$argv[1]" = scheme
|
|||||||
end
|
end
|
||||||
|
|
||||||
if test "$argv[1]" = install
|
if test "$argv[1]" = install
|
||||||
set -l valid_modules scripts btop discord firefox fish foot fuzzel hypr safeeyes shell slurp gtk vscode
|
set -l valid_modules scripts btop discord firefox fish foot fuzzel hypr safeeyes shell slurp gtk qt vscode
|
||||||
if test "$argv[2]" = all
|
if test "$argv[2]" = all
|
||||||
for module in $valid_modules
|
for module in $valid_modules
|
||||||
$src/install/$module.fish $argv[3..]
|
$src/install/$module.fish $argv[3..]
|
||||||
|
|||||||
Reference in New Issue
Block a user