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

34
install
View File

@ -1,5 +1,12 @@
#!/usr/bin/env fish #!/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 function mkdir_if_not_exist
if [ ! -d "$argv" ] if [ ! -d "$argv" ]
echo "Creating directory $argv" echo "Creating directory $argv"
@ -21,6 +28,33 @@ function install_npm_package_if_not_exist
end end
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 # Create directories that need to exist
mkdir_if_not_exist ~/.cache/mpd mkdir_if_not_exist ~/.cache/mpd
mkdir_if_not_exist ~/.config/alacritty 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