clean up
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
defaults.pcm.card 1
|
||||
defaults.ctl.card 1
|
||||
pcm.upmix51 {
|
||||
type upmix
|
||||
slave.pcm "surround51"
|
||||
delay 10
|
||||
channels 6
|
||||
}
|
||||
pcm.!default "plug:upmix51"
|
||||
@@ -1,8 +0,0 @@
|
||||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
||||
exec startx
|
||||
fi
|
||||
-157
@@ -1,157 +0,0 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
# additional path variables
|
||||
export PATH=$PATH:~/.local/bin
|
||||
|
||||
### ALIAS' ###
|
||||
#jokes
|
||||
alias dog='cat'
|
||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' #rickroll
|
||||
|
||||
#shutdown and reboot
|
||||
alias sn='shutdown now'
|
||||
alias rb='reboot'
|
||||
|
||||
# navigation
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias .3='cd ../../..'
|
||||
alias .4='cd ../../../..'
|
||||
alias .5='cd ../../../../..'
|
||||
|
||||
#libreoffice
|
||||
alias writer='libreoffice --writer'
|
||||
alias calc='libreoffice --calc'
|
||||
alias impress='libreoffice --impress'
|
||||
|
||||
# pacman and pikaur
|
||||
alias install='sudo pacman -S'
|
||||
alias uninstall='sudo pacman -Rns'
|
||||
alias search='sudo pacman -Ss'
|
||||
alias install-all='sudo pikaur'
|
||||
alias update='sudo pacman -Syyu' # update only standard pkgs
|
||||
alias update-all="pikaur -Syu" # update standard pkgs and AUR pkgs
|
||||
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias ls='exa -l --color=always --group-directories-first --git' # my preferred listing
|
||||
alias la='exa -a --color=always --group-directories-firs --git' # all files and dirs
|
||||
alias ll='exa -al --color=always --group-directories-first --git' # long format
|
||||
alias lt='exa -aT --color=always --group-directories-first --git' # tree listing
|
||||
alias l.='exa -a | egrep "^\."'
|
||||
|
||||
# Colorize grep output (good for log files)
|
||||
alias grep='grep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# confirm before overwriting something
|
||||
alias cp="cp -i"
|
||||
alias mv='mv -i'
|
||||
alias rm='rm -i'
|
||||
|
||||
# git
|
||||
source ~/.git-completion.bash
|
||||
alias add='git add'
|
||||
alias addup='git add -u'
|
||||
alias addall='git add .'
|
||||
alias branch='git branch'
|
||||
alias checkout='git checkout'
|
||||
alias co='git checkout'
|
||||
alias clone='git clone'
|
||||
alias commit='git commit -m'
|
||||
alias fetch='git fetch'
|
||||
alias pull='git pull origin'
|
||||
alias push='git push origin'
|
||||
alias status='git status'
|
||||
alias diff='git diff'
|
||||
alias remote='git remote'
|
||||
alias ftemplate='git fetch template'
|
||||
alias mtemplate='git merge template/master --allow-unrelated-histories'
|
||||
alias log='git log'
|
||||
|
||||
#st programs
|
||||
alias cubeide='~/st/stm32cubeide_1.5.0/stm32cubeide'
|
||||
alias cubemx='/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX/STM32CubeMX'
|
||||
|
||||
### AUTOSTART ###
|
||||
#vi mode
|
||||
set -o vi
|
||||
|
||||
# >>> neofetch >>>
|
||||
neofetch
|
||||
# <<< neofetch <<<
|
||||
|
||||
# >>> powerline >>>
|
||||
function _update_ps1() {
|
||||
PS1=$(powerline-shell $?)
|
||||
}
|
||||
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
|
||||
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||
fi
|
||||
# <<< powerline <<<
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/home/paul/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/home/paul/anaconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/paul/anaconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/home/paul/anaconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
|
||||
### FUNCTIONS ###
|
||||
# >>> Archive extraction >>>
|
||||
# usage: ex <file>
|
||||
ex ()
|
||||
{
|
||||
if [ -f $1 ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xjf $1 ;;
|
||||
*.tar.gz) tar xzf $1 ;;
|
||||
*.bz2) bunzip2 $1 ;;
|
||||
*.rar) unrar x $1 ;;
|
||||
*.gz) gunzip $1 ;;
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.Z) uncompress $1;;
|
||||
*.7z) 7z x $1 ;;
|
||||
*.deb) ar x $1 ;;
|
||||
*.tar.xz) tar xf $1 ;;
|
||||
*.tar.zst) unzstd $1 ;;
|
||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||
esac
|
||||
else
|
||||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
# <<< Archive extraction <<<
|
||||
|
||||
# >>> cd shortcuts >>>
|
||||
# "mkcd" to mkdir and then cd into the result
|
||||
mkcd() { mkdir "$@"&&cd "$@";}
|
||||
# "cdls" to cd and ls in one go
|
||||
cdls() { cd "$@"&&ls;}
|
||||
#cdvim to cd into the directory of a file and open the file in vim
|
||||
cdvim(){ cd "$(dirname "$@")" && vim "$(basename "$@")";}
|
||||
# <<< cd shortcuts <<<
|
||||
|
||||
# anaconda
|
||||
source /opt/anaconda/etc/profile.d/conda.sh
|
||||
File diff suppressed because it is too large
Load Diff
+19
@@ -39,6 +39,7 @@
|
||||
- [[#neovim][NeoVim]]
|
||||
- [[#browser][Browser]]
|
||||
- [[#firefox][Firefox]]
|
||||
- [[#chromium][Chromium]]
|
||||
- [[#shells][Shells]]
|
||||
- [[#aliases][Aliases]]
|
||||
- [[#zsh][ZSH]]
|
||||
@@ -98,6 +99,12 @@
|
||||
- [[#add-authentication-to-pam][Add authentication to PAM]]
|
||||
- [[#misc][Misc]]
|
||||
- [[#manual-tasks-after-tangling][Manual Tasks after tangling]]
|
||||
- [[#other-todos][Other TODOs]]
|
||||
- [[#dunst][dunst]]
|
||||
- [[#fcitx][fcitx]]
|
||||
- [[#browser-landing-page][browser landing page]]
|
||||
- [[#go-through-httpswikiarchlinuxorgtitlelaptop][go through https://wiki.archlinux.org/title/Laptop]]
|
||||
- [[#go-through-old-pkglist][go through old pkglist]]
|
||||
|
||||
* Prerequisites
|
||||
- Completed Arch Linux Installation
|
||||
@@ -2269,6 +2276,12 @@ firefox
|
||||
#+end_src
|
||||
*** TODO Configuration
|
||||
|
||||
** Chromium
|
||||
It's always good to have a backup browser
|
||||
*** Installation
|
||||
#+begin_src shell :tangle pkg-list.txt
|
||||
chromium
|
||||
#+end_src
|
||||
* Shells
|
||||
ZSH is used as the default shell
|
||||
** Aliases
|
||||
@@ -3106,3 +3119,9 @@ session include system-auth
|
||||
6. configure networks
|
||||
- [[https://www.scc.kit.edu/dienste/7181.php][eduroam]]
|
||||
|
||||
* Other TODOs
|
||||
** TODO dunst
|
||||
** TODO fcitx
|
||||
** TODO browser landing page
|
||||
** TODO go through https://wiki.archlinux.org/title/Laptop
|
||||
** TODO go through old pkglist
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
#!/bin/sh
|
||||
sleep 1&
|
||||
/usr/lib/geoclue-2.0/demos/agent&
|
||||
bash .screenlayout/layout.sh &
|
||||
pulseaudio-ctl set 50 &
|
||||
dunst &
|
||||
nextcloud &
|
||||
timeshift &
|
||||
numlockx &
|
||||
redshift-gtk -t 6500:3600 &
|
||||
udiskie -t &
|
||||
picom &
|
||||
nm-applet &
|
||||
blueman-applet &
|
||||
thunderbird &
|
||||
fcitx5 -d&
|
||||
emacs --daemon &
|
||||
# Use hostnamectl to get system information
|
||||
chassis_type=$(hostnamectl status | grep "Chassis:" | awk '{print $2}')
|
||||
|
||||
# Check if the chassis type is "laptop"
|
||||
if [ "$chassis_type" == "laptop" ]; then
|
||||
xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
|
||||
xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
|
||||
cbatticon &
|
||||
# set font size for alacritty
|
||||
sed -i 's/size = [0-9][0-9]/size = 11/' ~/.config/alacritty/alacritty.toml
|
||||
else
|
||||
# set font size for alacritty
|
||||
sed -i 's/size = [0-9][0-9]/size = 14/' ~/.config/alacritty/alacritty.toml
|
||||
fi
|
||||
@@ -1,99 +0,0 @@
|
||||
# Don't ask for confirmations
|
||||
assume_yes = false
|
||||
|
||||
# Disable specific steps - same options as the command line flag
|
||||
disable = ["gitrepos"]
|
||||
|
||||
# Ignore failures for these steps
|
||||
#ignore_failures = ["powershell"]
|
||||
|
||||
# Run specific steps - same options as the command line flag
|
||||
#only = ["system", "emacs"]
|
||||
|
||||
# Do not ask to retry failed steps (default: false)
|
||||
#no_retry = true
|
||||
|
||||
# Run inside tmux
|
||||
#run_in_tmux = true
|
||||
|
||||
# List of remote machines with Topgrade installed on them
|
||||
#remote_topgrades = ["toothless", "pi", "parnas"]
|
||||
|
||||
# Arguments to pass SSH when upgrading remote systems
|
||||
#ssh_arguments = "-o ConnectTimeout=2"
|
||||
|
||||
# Path to Topgrade executable on remote machines
|
||||
#remote_topgrade_path = ".cargo/bin/topgrade"
|
||||
|
||||
# Arguments to pass tmux when pulling Repositories
|
||||
#tmux_arguments = "-S /var/tmux.sock"
|
||||
|
||||
# Do not set the terminal title
|
||||
#set_title = false
|
||||
|
||||
# Cleanup temporary or old files
|
||||
#cleanup = true
|
||||
|
||||
[git]
|
||||
#max_concurrency = 5
|
||||
# Additional git repositories to pull
|
||||
#repos = [
|
||||
# "~/src/*/",
|
||||
# "~/.config/something"
|
||||
#]
|
||||
|
||||
# Don't pull the predefined git repos
|
||||
#predefined_repos = false
|
||||
|
||||
# Arguments to pass Git when pulling Repositories
|
||||
#arguments = "--rebase --autostash"
|
||||
|
||||
[composer]
|
||||
#self_update = true
|
||||
|
||||
# Commands to run before anything
|
||||
[pre_commands]
|
||||
#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak"
|
||||
|
||||
# Custom commands
|
||||
[commands]
|
||||
#"Python Environment" = "~/dev/.env/bin/pip install -i https://pypi.python.org/simple -U --upgrade-strategy eager jupyter"
|
||||
|
||||
[brew]
|
||||
#greedy_cask = true
|
||||
|
||||
[linux]
|
||||
# Arch Package Manager to use. Allowed values: autodetect, trizen, paru, yay, pacman.
|
||||
arch_package_manager = "yay"
|
||||
# Arguments to pass yay (or paru) when updating packages
|
||||
#yay_arguments = "--nodevel"
|
||||
#show_arch_news = true
|
||||
#trizen_arguments = "--devel"
|
||||
enable_tlmgr = true
|
||||
#emerge_sync_flags = "-q"
|
||||
#emerge_update_flags = "-uDNa --with-bdeps=y world"
|
||||
#redhat_distro_sync = false
|
||||
#rpm_ostree = false
|
||||
|
||||
[windows]
|
||||
# Manually select Windows updates
|
||||
#accept_all_updates = false
|
||||
#open_remotes_in_new_terminal = true
|
||||
|
||||
# Causes Topgrade to rename itself during the run to allow package managers
|
||||
# to upgrade it. Use this only if you installed Topgrade by using a package
|
||||
# manager such as Scoop to Cargo
|
||||
#self_rename = true
|
||||
|
||||
[npm]
|
||||
# Use sudo if the NPM directory isn't owned by the current user
|
||||
#use_sudo = true
|
||||
|
||||
[firmware]
|
||||
# Offer to update firmware; if false just check for and display available updates
|
||||
upgrade = true
|
||||
|
||||
[flatpak]
|
||||
# Use sudo for updating the system-wide installation
|
||||
#use_sudo = true
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
set synctex true
|
||||
Reference in New Issue
Block a user