Skip to content

Instantly share code, notes, and snippets.

@Irungaray
Last active March 29, 2022 21:39
Show Gist options
  • Save Irungaray/33d8f4f7526df5852f5f124cb75d6b7c to your computer and use it in GitHub Desktop.
Save Irungaray/33d8f4f7526df5852f5f124cb75d6b7c to your computer and use it in GitHub Desktop.
Regolith Linux Custom Config

Regolith:

sudo add-apt-repository ppa:regolith-linux/release
sudo apt install regolith-desktop-standard
sudo apt install i3xrocks-battery
sudo apt install i3xrocks-temp

windows sizes: ~/etc/regolith/i3/config

for_window [class="Telegram*"]; resize shrink width 10000px; resize grow width 600px;
for_window [class="Slack*"]; resize shrink width 10000px; resize grow width 400px
# On notebook, both on 400px or so

terminal transparency, gaps: ~/.config/regolith/Xresources (must create file)

gnome.terminal.background-transparency-percent: 35
gnome.terminal.use-transparent-background: true
i3-wm.gaps.inner.size: 10

Wallpaper:

 cd /usr/share/backgrounds/ && sudo nautilus .

zsh: ~/.zshrc

# Path to your oh-my-zsh installation.
export ZSH="/home/ray/.oh-my-zsh"

# Theme to load & theme config
    if [ ! -e  ".git" ]; then
	ZSH_THEME="robbyrussell"
    else
	ZSH_THEME="spaceship"
    fi

    SPACESHIP_GIT_SYMBOL="↪ "
    SPACESHIP_PROMPT_ADD_NEWLINE=false

# Which plugins would you like to load?
    plugins=(
	git
	zsh-autosuggestions
    )

source $ZSH/oh-my-zsh.sh

# User configuration
    # export MANPATH="/usr/local/man:$MANPATH"

# Aliases
    alias minecraft="cd ~/Downloads/TLauncher && java -jar TLauncher.jar && exit"
    alias c="codium ."
    alias ce="codium . && exit"
    alias ne="nautilus . && exit"
    alias gac="git add . && git commit -m"
    alias n="npm"
    alias nr="npm run"
    alias nrd="npm run dev"
    alias duh="du -h --max-depth=1 | sort -h"
    alias rcg="node ~/bin/atomic-maker.js"
    alias z="vim ~/.zshrc"
    alias aliases="cat ~/.zshrc | grep -w alias"
    alias cl="cal -3 && printf '\nDates of interest:\n\n' && calendar | grep -w `date '+%d'`"
    alias glog="bash ~/bin/gym-logger.sh"
    alias dog="git log --all --decorate --oneline --graph"
    alias rn=". ranger"
    alias list="ls -R | grep -v "node_modules" | grep ":$" | perl -pe 's/:$//;s/[^-][^\/]*\//    /g;s/^    (\S)/└── \1/;s/(^    |    (?= ))/│   /g;s/    (\S)/└── \1/'"

# Paths
    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
    [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

    export DENO_INSTALL="/home/irunga/.deno"
    export PATH="$DENO_INSTALL/bin:$PATH"
    # /home/irunga/.deno/bin/deno --help

ranger:

ranger --copy-config=scope


sudo apt get instal w3m w3m-img


vim /home/irunga/.config/ranger/scope.sh 
  set preview_images true
  set preview_images_method w3m
  
  also refer to: https://ashpex.eu.org/2020/08/ranger-configure/

VSCodium: refer to:

https://gist.github.com/Irungaray/c82ad4653d73656a37cf5110ee9840ce

Vim: ~/.vimrc

call plug#begin('~/.vim/plugged')

	Plug 'neoclide/coc.nvim', {'branch': 'release'}

	" Any valid git URL is allowed
	Plug 'https://github.com/junegunn/vim-github-dashboard.git'

	Plug 'https://github.com/SirVer/ultisnips'	
	Plug 'https://github.com/dominikduda/vim_es7_javascript_react_snippets'
	
call plug#end()

set number
set relativenumber

" Ultisnips
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"

" Auto-closing
inoremap " ""<left>
inoremap ' ''<left>
inoremap ( ()<left>
inoremap [ []<left>
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O

VimPlug:

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Then, on Vim:

:PlugInstall

git:

sudo apt install git

Node & npm with nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install node

Telegram:

sudo snap install telegram-desktop

Brave: refer to:

https://brave.com/linux/#linux

Chrome:

wget -c https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb

Misc:

snap install slack --classic
snap install codium --classic
sudo snap install bpytop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment