1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Deleted pistol & install required packages automatically with install script

This commit is contained in:
Ryan Kes 2020-03-29 12:33:19 +02:00
parent 790549e266
commit e9e2c0cf6d
3 changed files with 40 additions and 5 deletions

View File

@ -7,6 +7,7 @@
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#prerequisites][Prerequisites]]
- [[#applications-installed-by-script][Applications installed by script]]
- [[#applications][Applications]]
- [[#fonts][Fonts]]
- [[#lsp-backends][LSP Backends]]
@ -37,6 +38,11 @@ A repository of my personal configuration files.
+ [[https://github.com/alrayyes][@alrayyes]]
* Prerequisites
- [[https://www.archlinux.org/][Arch Linux]]
- [[https://fishshell.com/][fish shell]]
- [[https://github.com/Jguer/yay][yay]]
* Applications installed by script
** Applications
- [[https://github.com/sharkdp/bat][bat]]
- [[https://dystroy.org/broot/][broot]]
@ -49,7 +55,6 @@ A repository of my personal configuration files.
- [[https://github.com/canonical/lightdm][LightDM]]
- [[https://github.com/internalfx/mailcap][mailcap]]
- [[https://mpv.io/][mpv]]
- [[https://github.com/phuhl/notify-send.py][notify-send.py]]
- [[https://www.npmjs.com/get-npm][npm]]
- [[https://github.com/cdemoulins/pamixer][pamixer]]
- [[https://github.com/dylanaraps/pfetch][pfetch]]
@ -93,7 +98,6 @@ A repository of my personal configuration files.
- [[https://neomutt.org/][neomutt]]
- [[https://neovim.io/][neovim]]
- [[https://github.com/yshui/picom][picom]]
- [[https://github.com/doronbehar/pistol][pistol]]
- [[http://jonls.dk/redshift/][redshift]]
- [[https://github.com/baskerville/sxhkd][sxhkd]]
- [[https://tmux.github.io/][tmux]]

34
install
View File

@ -1,5 +1,12 @@
#!/usr/bin/env fish
# Prerequisite & inistalled apps
set prerequisiteApps bat broot brave caffeine-ng exa fzf go imagemagick lightdm-gtk-greeter mailcap mpv deadd-notification-center-bin npm pamixer pfetch pulseaudio pulsemixer python pywal stow sxiv tldr udisks xwallpaper zathura
set prerequisiteFonts otf-nerd-fonts-fira-code noto-fonts ttf-unifont
set prerequisiteLsp bash-language-server ccls php-language-server python-language-server typescript-language-server vscode-css-languageserver vscode-html-languageserver nodejs-intelephense
set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf deadd-notification-center-bin mpd neomutt neovim picom redshift sxhkd tmux tuir weechat
set locales aspell-en hunspell-en_GB hunspell-en_US hunspell-nl
function mkdir_if_not_exist
if [ ! -d "$argv" ]
echo "Creating directory $argv"
@ -21,6 +28,33 @@ function install_npm_package_if_not_exist
end
end
function install_app_if_not_exist
if test (pacman -Q | grep -c "$argv") -eq 0
echo "Installing missing package $argv"
yay -S --noconfirm "$argv"
end
end
for app in $prerequisiteApps
install_app_if_not_exist "$app"
end
for font in $prerequisiteFonts
install_app_if_not_exist "$font"
end
for lsp in $prerequisiteLsp
install_app_if_not_exist "$lsp"
end
for app in $configuredApps
install_app_if_not_exist "$app"
end
for locale in $locales
install_app_if_not_exist "$locale"
end
# Create directories that need to exist
mkdir_if_not_exist ~/.cache/mpd
mkdir_if_not_exist ~/.config/alacritty

View File

@ -1,3 +0,0 @@
text/* bat --paging=never --color=always %s
text/html w3m -T text/html -dump %s
inode/directory ls -l --color=always %s