From 7f226f9e37f3c0b2985a1e40325d569c6f671581 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Tue, 4 Dec 2018 17:15:33 -0500 Subject: [PATCH] Updated pacman packages Set key files and dirs to my absolute home path (to keep same as yanking path in Ranger). Can change back if can modify ranger yank. --- aliases/zsh_aliases | 8 +- configs/ranger/rc.conf | 2 +- txt/key_dirs.txt | 36 ++++----- txt/key_files.txt | 35 ++++----- txt/pacman-pkgs/pacman-pkgs.txt | 128 +++++++++++++++++++++++++++++++- 5 files changed, 166 insertions(+), 43 deletions(-) diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index dbcc233..2b02934 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -38,11 +38,13 @@ function rf() { find . -name '$1' ; } # find text inside files function rg() { grep -nr $1 * ; } function cpd() { cp -avr $1 $2 ; } +alias pk="pkill -f" # extract tar archive function utar() { tar -xzvf $1 && rm $1; } function rzip() { unzip $1 && rm $1; } function lzip() { unzip -l $1 | less; } + alias mkpk="makepkg -sri" alias mkex="chmod 777" alias udm="udisksctl mount -b" @@ -116,6 +118,7 @@ alias vlh="alsamixer -c 2" # alias aptu="sudo apt upgrade" alias pc="sudo pacman -S" alias pcr="sudo pacman -Rs" +alias spc="pacman -Qqe > ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt" alias tri="trizen -S --noconfirm" # }}} system # @@ -140,11 +143,12 @@ function vsnp() { ni ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; } silent="> /dev/null 2>&1& " alias h="htop -s PERCENT_CPU" +alias hm="htop -s PERCENT_MEM" alias r="ranger" alias mr="man ranger" alias clc="cloc ." -# zathura function za() { nohup zathura $1 > /dev/null 2>&1& ; } +function ev() { nohup evince $1 > /dev/null 2>&1& ; } function chr() { google-chrome $1 ; } alias ni="nvim" alias sni="sudo nvim" @@ -169,8 +173,6 @@ alias rmsw="rm .sw*" function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; } alias rx="redshift -x" -alias kd="pkill discord" - # python related {{{ # function grpy() { grep $1 *.py ; } alias p3="python3" diff --git a/configs/ranger/rc.conf b/configs/ranger/rc.conf index 5ab2d65..1751331 100644 --- a/configs/ranger/rc.conf +++ b/configs/ranger/rc.conf @@ -127,7 +127,7 @@ set shorten_title 3 set hostname_in_titlebar true # Abbreviate $HOME with ~ in the titlebar (first line) of ranger? -set tilde_in_titlebar false +set tilde_in_titlebar true # How many directory-changes or console-commands should be kept in history? set max_history_size 20 diff --git a/txt/key_dirs.txt b/txt/key_dirs.txt index 87be85d..a0f9d9b 100644 --- a/txt/key_dirs.txt +++ b/txt/key_dirs.txt @@ -1,10 +1,10 @@ # sys {{{ * -bg ~/Pictures/Backgrounds -d ~/Downloads -D ~/Documents -ho ~/ -lc ~/linux-config/ +bg /home/kevin/Pictures/Backgrounds +d /home/kevin/Downloads +D /home/kevin/Documents +ho /home/kevin/ +lc /home/kevin/linux-config/ m /run/media o / @@ -12,23 +12,23 @@ o / # cdn {{{ * -cd ~/coding -jnd ~/Documents/journal -ib ~/linux-config/configs/i3blocks-scripts -ra ~/linux-config/configs/ranger -snp ~/.vim/plugged/vim-snippets/UltiSnips -sv ~/coding/spotify-lib-vis/src -swa ~/.local/share/nvim/swap -wo ~/Documents/workout-logs/11 +cd /home/kevin/coding +jnd /home/kevin/Documents/journal +ib /home/kevin/linux-config/configs/i3blocks-scripts +ra /home/kevin/linux-config/configs/ranger +snp /home/kevin/.vim/plugged/vim-snippets/UltiSnips +sv /home/kevin/coding/spotify-lib-vis/src +swa /home/kevin/.local/share/nvim/swap +wo /home/kevin/Documents/workout-logs/11 # }}} cdn * # sch {{{ * -sc ~/school -st ~/school/sta -2 ~/school/236 -a3 ~/school/latex-notes/236/a3 -3 ~/school/343 +sc /home/kevin/school +st /home/kevin/school/sta +2 /home/kevin/school/236 +a3 /home/kevin/school/latex-notes/236/a3 +3 /home/kevin/school/343 # }}} sch * diff --git a/txt/key_files.txt b/txt/key_files.txt index 8d34846..2592ee0 100644 --- a/txt/key_files.txt +++ b/txt/key_files.txt @@ -1,28 +1,29 @@ # sys {{{ * -3 ~/.config/i3/config -d ~/linux-config/txt/key_dirs.txt -f ~/linux-config/txt/key_files.txt -i ~/.config/i3blocks/i3blocks.conf -p ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt -r ~/.config/ranger/rc.conf -sr ~/linux-config/configs/ranger/shortcuts.conf -ss ~/.shortcuts -u ~/.Xresources -v ~/.vimrc -y ~/.zshrc -z ~/linux-config/aliases/zsh_aliases +3 /home/kevin/.config/i3/config +d /home/kevin/linux-config/txt/key_dirs.txt +f /home/kevin/linux-config/txt/key_files.txt +i /home/kevin/.config/i3blocks/i3blocks.conf +p /home/kevin/linux-config/txt/pacman-pkgs/pacman-pkgs.txt +r /home/kevin/.config/ranger/rc.conf +sr /home/kevin/linux-config/configs/ranger/shortcuts.conf +ss /home/kevin/.shortcuts +u /home/kevin/.Xresources +v /home/kevin/.vimrc +y /home/kevin/.zshrc +z /home/kevin/linux-config/aliases/zsh_aliases # }}} sys * # cdn {{{ * -hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log -jn ~/Documents/journal/todo/11.md -jnt ~/Documents/journal/todo/todo.md +hlg /home/kevin/coding/spotify-lib-vis/src/api/management/commands/update-history.log +jn /home/kevin/Documents/journal/todo/11.md +jnt /home/kevin/Documents/journal/todo/todo.md no ./.gitignore -ne ~/linux-config/configs/neofetch/config.conf -tm ~/.vim/plugged/vim-snippets/UltiSnips/texmath.snippets +ne /home/kevin/linux-config/configs/neofetch/config.conf +tm /home/kevin/.vim/plugged/vim-snippets/UltiSnips/texmath.snippets +tr /home/kevin/linux-config/txt/pacman-pkgs/aur-pkgs.txt # }}} cdn * diff --git a/txt/pacman-pkgs/pacman-pkgs.txt b/txt/pacman-pkgs/pacman-pkgs.txt index 48ed8a1..8d3cdd3 100644 --- a/txt/pacman-pkgs/pacman-pkgs.txt +++ b/txt/pacman-pkgs/pacman-pkgs.txt @@ -1,50 +1,170 @@ alsa-utils +autoconf +automake +bash bc +bison +broadcom-wl +bzip2 chromium +chromium-widevine cloc +cmake +cmatrix +colordiff compton +coreutils +cryptsetup +device-mapper dhcpcd dialog +diffutils +discord dmenu +e2fsprogs +evince fakeroot feh +file +filesystem findutils +flex fzf +gawk +gcc +gcc-libs +gdb +gettext git +glibc grep grub -htop +gscreenshot +gzip +htop-vim-git i3-gaps i3blocks i3status imwheel +inetutils +iniparser +iproute2 +iputils +jfsutils less +lib32-nvidia-utils +licenses linux linux-firmware linux-headers +logrotate lolcat +lsof +lvm2 make +man-db +man-pages +mdadm +nano neofetch -noto-fonts neovim -ntfs-3g netctl +noto-fonts +ntfs-3g +nvidia pacman +patch +pciutils perl +pipes.sh +pkgconf +procps-ng +psmisc pulseaudio +python-dbus python-pip python-pywal python-setuptools -python-dbus ranger redshift +reiserfsprogs +rxvt-unicode-pixbuf +s-nail sed +shadow +spotify +st sudo +sysfsutils +sysstat +systemd-numlockontty +systemd-sysvcompat tar +texinfo +trizen +ttf-dejavu udisks2 unzip +usbutils +util-linux vi +w3m +which wireless_tools wpa_supplicant xclip +xf86-input-evdev +xf86-input-keyboard +xf86-input-mouse +xf86-input-synaptics +xf86-input-vmmouse +xf86-input-void +xf86-video-amdgpu +xf86-video-ati +xf86-video-dummy +xf86-video-fbdev +xf86-video-intel +xf86-video-nouveau +xf86-video-openchrome +xf86-video-qxl +xf86-video-vesa +xf86-video-vmware +xf86-video-voodoo +xfsprogs +xorg-bdftopcf +xorg-iceauth +xorg-luit +xorg-mkfontdir +xorg-mkfontscale +xorg-server +xorg-sessreg +xorg-smproxy +xorg-x11perf +xorg-xbacklight +xorg-xcmsdb +xorg-xcursorgen +xorg-xdpyinfo +xorg-xdriinfo +xorg-xev +xorg-xgamma +xorg-xhost +xorg-xinit +xorg-xinput +xorg-xkbevd +xorg-xkbutils +xorg-xkill +xorg-xlsatoms +xorg-xlsclients +xorg-xpr +xorg-xprop +xorg-xrandr +xorg-xrefresh +xorg-xset +xorg-xsetroot +xorg-xvinfo +xorg-xwd +xorg-xwininfo +xorg-xwud +zathura +zathura-pdf-poppler zsh