Compare commits

...

4 commits

5 changed files with 47 additions and 31 deletions

View file

@ -18,13 +18,13 @@ header() {
updates_output() { updates_output() {
notify=$1 notify=$1
if ! [[ -z $updates_arch ]]; then if [[ -n $updates_arch ]]; then
header header
echo "ARCH: $(echo "$updates_arch" | wc -l)" echo "ARCH: $(echo "$updates_arch" | wc -l)"
header header
[[ -z $notify ]] && echo "$updates_arch" [[ -z $notify ]] && echo "$updates_arch"
fi fi
if ! [[ -z $updates_aur ]]; then if [[ -n $updates_aur ]]; then
header header
echo "AUR: $(echo "$updates_aur" | wc -l)" echo "AUR: $(echo "$updates_aur" | wc -l)"
header header
@ -35,7 +35,7 @@ updates_output() {
update_system() { update_system() {
echo echo
read -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1 read -r -p "Would you like to update? (y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
pikaur -Syu --noedit --nodiff pikaur -Syu --noedit --nodiff
} }
@ -48,7 +48,7 @@ for opt in "$@"; do
notify=1 notify=1
shift shift
;; ;;
-* | --*) -*)
echo "Invalid option: $opt" echo "Invalid option: $opt"
usage usage
exit 1 exit 1
@ -68,10 +68,10 @@ if [[ -z $updates_info ]]; then
exit 0 exit 0
fi fi
if ! [[ -z $notify ]]; then if [[ -n $notify ]]; then
notify-send -w "System Updates Available!" "$updates_info" notify-send -w "System Updates Available!" "$updates_info"
else else
echo "System Updates Available!" echo "nystem Updates Available!"
echo "$updates_info" echo "$updates_info"
update_system update_system
fi fi

View file

@ -15,7 +15,7 @@ deps=(
# TODO: make sure tree-sitter is rust version? # TODO: make sure tree-sitter is rust version?
is-cmd() { is-cmd() {
if [ -x "$(command -v $1)" ]; then if [ -x "$(command -v "$1")" ]; then
return 0 return 0
else else
return 1 return 1
@ -43,10 +43,10 @@ install-astronvim(){
echo "Checking for optional dependencies" echo "Checking for optional dependencies"
check-dep(){ check-dep(){
if is-cmd $1; then if is-cmd "$1"; then
printf '%15s \033[32m%s\033[0m\n' $1 'yes' printf '%15s \033[32m%s\033[0m\n' "$1" 'yes'
else else
printf '%15s \033[31m%s\033[0m\n' $1 'no' printf '%15s \033[31m%s\033[0m\n' "$1" 'no'
fi fi
} }

View file

@ -1,25 +1,34 @@
return { return {
[[ _______________________________________ ]], --Big-money
[[ |,---"-----------------------------"---,| ]], [[ /$$ ]],
[[ ||___ 16 bit.................... || ]], [[ |__/ ]],
[[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]], [[ /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ]],
[[ ||=====):H c> nvim H || ]], [[| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$]],
[[ ||====/ :H H || ]], [[| $$ \ $$| $$$$$$$$| $$ \ $$ \ $$/$$/ | $$| $$ \ $$ \ $$]],
[[ || :H H || ]], [[| $$ | $$| $$_____/| $$ | $$ \ $$$/ | $$| $$ | $$ | $$]],
[[ ||PORTFO:H H || ]], [[| $$ | $$| $$$$$$$| $$$$$$/ \ $/ | $$| $$ | $$ | $$]],
[[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]], [[|__/ |__/ \_______/ \______/ \_/ |__/|__/ |__/ |__/]],
[[ ||_____,_________________________,_____|| ]],
[[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
[[ //"""""""|_____|=----------=|______|"""""""\ ]],
[[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
[[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
[[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
[[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
[[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
[[|------"--------------------------------------"-------|]],
[[`-----------------------------------------------------']],
} }
-- [[ _______________________________________ ]],
-- [[ |,---"-----------------------------"---,| ]],
-- [[ ||___ 16 bit.................... || ]],
-- [[ ||====\ :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
-- [[ ||=====):H c> nvim H || ]],
-- [[ ||====/ :H H || ]],
-- [[ || :H H || ]],
-- [[ ||PORTFO:H H || ]],
-- [[ || :HHHHHHHHHHHHHHHHHHHHHHHHHHH || ]],
-- [[ ||_____,_________________________,_____|| ]],
-- [[ |)_____)-----.| /I\ATARI |.------(_____(| ]],
-- [[ //"""""""|_____|=----------=|______|"""""""\ ]],
-- [[ // _| _| _| _| _| _| _| _| _| _| _| _| _| _| \ ]],
-- [[ // ___| _| _| _| _| _| _| _| _| _| _| _| | | \ ]],
-- [[ |/ ___| _| _| _| _| _| _| _| _| _| _| _| ______| \ ]],
-- [[ / __| _| _| _| _| _| _| _| _| _| _| _| _| _| ___| \ ]],
-- [[ / _| _| _| _| ________________________| _| _| _| _| \ ]],
-- [[|------"--------------------------------------"-------|]],
-- [[`-----------------------------------------------------']],
-- simpler header -- simpler header
--[[ --[[

View file

@ -4,8 +4,10 @@ local config = {
-- This function is run last and is a good place to configuring -- This function is run last and is a good place to configuring
-- augroups/autocommands and custom filetypes also this just pure lua so -- augroups/autocommands and custom filetypes also this just pure lua so
-- anything that doesn't fit in the normal config locations above can go here -- anything that doesn't fit in the normal config locations above can go here
--polish = function() polish = function()
--end, -- todo: convert to lua
vim.cmd('cnoremap sudow w !sudo tee % >/dev/null')
end,
} }
return config return config

View file

@ -0,0 +1,5 @@
return function(config)
-- for compatability with nvim-transparent
config.background_color = "#000000"
return config
end