Skip to content

Commit

Permalink
update in the install script .
Browse files Browse the repository at this point in the history
  • Loading branch information
Crimson-Genesis committed Jan 20, 2025
1 parent 6719fe8 commit 5f3603b
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 12 deletions.
15 changes: 13 additions & 2 deletions .config/BraveSoftware/Brave-Browser/Default/Bookmarks
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "fea9d42b0c873d3b56ba169356c835da",
"checksum": "50d5a6fb72e2896a748dff58e8142ae9",
"roots": {
"bookmark_bar": {
"children": [ ],
Expand Down Expand Up @@ -716,10 +716,21 @@
"name": "Coding for Enterpreneures is doing Try Doing.",
"type": "url",
"url": "http://127.0.0.1:8000/about/"
}, {
"date_added": "13381366152658078",
"date_last_used": "0",
"guid": "dead5e29-64fb-4f4f-a3a0-2b9fe215ca5a",
"id": "109",
"meta_info": {
"power_bookmark_meta": ""
},
"name": "Css Logo SVG Vectors and Icons - SVG Repo",
"type": "url",
"url": "https://www.svgrepo.com/vectors/css-logo/"
} ],
"date_added": "13369643435090832",
"date_last_used": "0",
"date_modified": "13381186734704932",
"date_modified": "13381366152658078",
"guid": "82b081ec-3dd3-529c-8475-ab6c344590dd",
"id": "2",
"name": "Other bookmarks",
Expand Down
1 change: 1 addition & 0 deletions .config/LSD/harpoon_on_steroids.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,4 @@ in
echo -e "\033[38;5;1mInvalid command...\033[0m"
exit
esac

30 changes: 30 additions & 0 deletions .config/LSD/yt_dlq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

if [[ -z "$1" ]] || [[ -z "$2" ]]; then
exit
fi

function cecho(){
local color_code=$1
local message=$2
echo -e "\033[38;5;${color_code}m${message}\033[0m"
}

function main(){
link_type=$1
youtube_link=$2

if [[ $link_type == "playlist" ]]; then
cecho 2 "Starting the download of Playlist ${youtube_link}"
yt-dlp -f bestvideo+bestaudio -o '%(playlist_index)s - %(title)s.%(ext)s' ${youtube_link}
cecho 2 "Download completed..."
elif [[ $link_type == "video" ]]; then
cecho 2 "Starting the download of Video ${youtube_link}"
yt-dlp -f bestvideo+bestaudio -o '%(title)s.%(ext)s' ${youtube_link}
cecho 2 "Download completed..."
else
cecho 1 "Invalid download type..."
fi
}

main $1 $2
2 changes: 2 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function zsh_alias(){
alias trp="trash-put"
alias trr="trash-restore"
alias rm="trash"
alias opython="/usr/bin/python3"
# alias trm="trash-rm"

# Alias-Alias
Expand All @@ -110,6 +111,7 @@ function zsh_alias(){
alias j2p="/usr/bin/env bash ~/.config/LSD/jpg_to_png.sh"
alias tmux-save="~/.config/tmux/scripts/tmux_resurrect_helper.sh save"
alias tmux-restore="~/.config/tmux/scripts/tmux_resurrect_helper.sh restore"
alias yt_dlq="~/.config/LSD/yt_dlq.sh"

# Other:
# shortcuts:
Expand Down
98 changes: 98 additions & 0 deletions scripts/install_note.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# installing fonts...
# 1-67" | getnf
# -------------------------------------------------------------------------------------------------------
# do all this first...
# tmux source ~/.config/tmux/tmux.conf (inside tmux)
# Run <Ctrl-b I> inside tmux.
# make a shortcut <Alt-Ctrl-l> to Lunch alacritty
# make a shortcut <Alt-Space> to Lunch rofi (command:- rofi -show drun)
# Open Nvim and Wait for it to config itself.
# And then You are all done.
# Run this command after terminal restart...
# conda update conda
# conda install python=3.11
# conda install build
# pip install installer
# pip install jupyterlab-vim
# pip install neovim
# pip install PyGObject
# npm install -g neovim
# gem install neovim
# conda install -c conda-forge libstdcxx-ng libffi
# Add This line (UUID=A232F5EE32F5C6F7 /mnt/Nova ntfs defaults 0 2) in /etc/fstab
# Add This line (SUBSYSTEM=='backlight', RUN+='/usr/bin/chmod 666 /sys/class/backlight/%k/brightness') in /etc/udev/rules.d/99-backlight.rules
# run 'sudo udevadm control --reload' and 'sudo udevadm trigger'
# Restart the terminal.
# sudo pacman -S dbus libappindicator-gtk3
# sudo pacman -S xdg-desktop-portal
# sudo pacman -S ibus
# sudo pacman -S xscreensaver
# sudo pacman -S --needed gobject-introspection
# sudo pacman -S arc-gtk-theme
# sudo pacman -S pavucontrol

# Dark mode in i3wm.
# ~/.config/gtk-3.0/settings.ini)
# [Settings]
# gtk-theme-name = Materia-dark
# gtk-icon-theme-name = Papirus-Dark
# gtk-cursor-theme-name = Jingyuan
# gtk-cursor-theme-size = 16

# coursor gtk-cursor-theme-name
# ~/.Xresources
# Xcursor.theme: Jingyuan

# This is for netural scrolling in i3wm-arch-linux. mouse
# /etc/X11/xorg.conf.d/40-libinput.conf
#
# Section "InputClass"
# Identifier "libinput touchpad catchall"
# MatchIsTouchpad "on"
# Driver "libinput"
# Option "Tapping" "on"
# Option "NaturalScrolling" "true" # Optional, if you want natural scrolling
# EndSection
# Rorgrongku
#
#
# sudo vim /etc/xdg/reflector/reflector.conf
# sudo systemctl enable reflector.service reflector.timer
# sudo systemctl start reflector.service reflector.timer
#
# this in /etc/X11/xorg.conf.d/40-libinput.conf
# Option "DisableWhileTyping" "off"

# run this to setup dxvk-bin config for wine:-
# export WINEPREFIX=~/.wine # Change to your Wine prefix
# setup_dxvk install

# winetricks directx9
# winetricks corefonts
# winetricks vcrun2015
# winetricks corefonts cjkfonts vcrun2019 dxdx9 dxvk ole32 dotnet35 dotnet48
# winetricks --force d3d11
# winetricks --force dxvk
# winetricks --force vcrun2017

# run this to setup dxvk-bin config for wine:-
# export WINEPREFIX=~/.wine # Change to your Wine prefix
# setup_dxvk install
#
# git clone https://github.com/Fumasu/mf-install
# WINEPREFIX="/home/gaben/.local/share/Steam/steamapps/compatdata/751440/pfx" ./install-mf.sh
# xwinwrap -fs -ni -s -st -sp -b -nf -ov -- mpv --no-border --wid=%WID --loop /path/to/your/video.mp4
#
# grub themes in the /boot/grub/themes/ past the theme here
# grub default setting in -> /etc/default/grub # change into this dir to chage the grub settings.\
# and then run "sudo grub-mkconfig -o /boot/grub/grub.cfg" the command in the terminal after saving the grub file.
#
#
# sudo pacman -Rns $(pacman -Qdtq)
# to clean up the left overs
#
# sudo pacman -S archlinux-keyring
# sudo pacman-key --refrace-key
# sudo pacman -Scc
# sudo modprobe ath9k_htc

33 changes: 26 additions & 7 deletions scripts/install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# set -e

exec &> tee log.txt
exec &> tee /var/log/my_install_script.log

function cecho(){
local color_code=$1
Expand All @@ -25,7 +25,7 @@ nitrogen bluez bluez-utils brightnessctl feh xorg-xinput blueman xsettingsd thef
obs-studio xorg-xdpyinfo acpi git tmux grep ripgrep nushell jq kitty go nodejs zoxide viu wezterm picom github-cli mesa-demos intel-media-driver nsxiv grafana bc materia-gtk-theme papirus-icon-theme python-pywal
xfce4-clipman-plugin blueberry sddm gvfs thunar-volman numactl ark reflector vkd3d man man-pages power-profiles-daemon dunst kdenlive wine man-db wireplumber tree sof-firmware winetricks udisks2 intel-ucode tldr
cronie nmtui thunar-archive-plugin thunar-media-tags-plugin noto-fonts-emoji evtest ffmpegthumbnailer tumbler lshw php bind net-tools usbutils wireshark-qt wireshark-cli lldb cppcheck valgrind acpi_call gptfdisk
lxsession baobab composer texlab fd mingw-w64-gcc arandr direnv"
lxsession baobab composer texlab fd mingw-w64-gcc arandr direnv pandoc obsidian os-prober"

major_package=($major_packages)
major_package+=("gcc clang libc++ cmake ninja libx11 libxcursor mesa-libgl fontconfig")
Expand All @@ -41,7 +41,7 @@ major_package+=("mpv xorg-xwininfo xorg-xrandr")
major_package+=("zathura zathura-pdf-mupdf")

minimal_packages=("btop" "neovim" "eza" "vim" "fzf" "yazi" "unzip" "wget" "curl" "gzip" "tat" "bash" "zsh" "sh" "fastfetch" "trash-cli" "bat" "ddgr" "brightnessctl" "lazygit" "ntfs-3g" "qt5ct" "git" "tmux"
"grep" "ripgrep" "man-db" "zoxide" "mesa-demos" "bc" "tree" "nmtui" "wireshark-qt" "wireshark-cli" "lxsession" "mingw-w64-gcc" "direnv")
"grep" "ripgrep" "man-db" "zoxide" "mesa-demos" "bc" "tree" "nmtui" "wireshark-qt" "wireshark-cli" "lxsession" "mingw-w64-gcc" "direnv" "pandoc" "os-prober")

function install_packages(){
cecho 2 "Installing Packman Packages..."
Expand Down Expand Up @@ -80,13 +80,32 @@ function install_anaconda(){
wget -P ~/Downloads/ https://repo.anaconda.com/archive/Anaconda3-2024.10-1-Linux-x86_64.sh
chmod +x ~/Downloads/Anaconda3-2024.06-1-Linux-x86_64.sh
bash ~/Downloads/Anaconda3-2024.06-1-Linux-x86_64.sh
conda init
conda init
}

function setup_git(){
git config --global user.email "nico.zero.0x@gmail.com"
git config --global user.name "Crimson-Genesis"
}

function config_git(){
cd ~ && mkdir clone

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
}


function config_major(){
sudo systemctl --user enable pipewire pipewire-pulse wireplumber && sudo systemctl --user start pipewire pipewire-pulse wireplumber
sudo systemctl status udisks2
sudo grub-mkconfig -o /boot/grub/grub.cfg
systemctl --user enable pipewire pipewire-pulse wireplumber && sudo systemctl --user start pipewire pipewire-pulse wireplumber
systemctl status udisks2
grub-mkconfig -o /boot/grub/grub.cfg
}

function config_minimal(){
install_yay "m"inimal"
}
function update_system(){
Expand Down
1 change: 0 additions & 1 deletion scripts/output.txt

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ function main(){
rm .zshrc
git init
git branch -M main
git config --global user.email "zandaxheart955@gmail.com"
git config --global user.name "nico-Zero"
git config --global user.email "nico.zero.0x@gmail.com"
git config --global user.name "Crimson-Genesis"
git remote add origin git@github.com:nico-Zero/config.git
git fetch
git reset origin/main
Expand Down
3 changes: 3 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

echo "hello, World!!!"

0 comments on commit 5f3603b

Please sign in to comment.