Browse Source

Update

red-hat-laptop
Kevin Mok 5 years ago
parent
commit
7abdbfa9d9
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 29
      README.md
  2. 7
      aliases/zsh_aliases
  3. 10
      configs/i3/config
  4. 2
      configs/i3blocks-scripts/spotify
  5. 6
      configs/i3blocks-scripts/volume
  6. 1
      configs/sam-i3blocks/sam-i3blocks.conf
  7. 1
      dotfiles/.vimrc
  8. 1
      dotfiles/.xinitrc
  9. 4
      scripts/backup.sh
  10. 0
      txt/exclude-dirs-backup.txt
  11. 5
      txt/key_dirs.txt
  12. 1
      txt/key_files.txt
  13. 9
      txt/nzxt-pkgs.txt
  14. 25
      txt/pacman-pkgs/aur-pkgs.txt
  15. 74
      txt/pacman-pkgs/pacman-pkgs.txt

29
README.md

@ -1,43 +1,30 @@
<!--- Intro {{{ --> <!--- Intro {{{ -->
# Kevin's Linux Setup # Kevin's Linux Setup
![desktop-screenshot-2](https://i.imgur.com/DivyfTu.png)
![desktop-screenshot](https://i.imgur.com/lkicLP5.png)
*Screenshots from my desktop config.*
![desktop-screenshot](https://i.imgur.com/Fpsr8Fc.png)
*Screenshot from my dual-monitor setup.*
This repository contains the dotfiles to increase my workflow efficiency. They This repository contains the dotfiles to increase my workflow efficiency. They
are also for my Linux are also for my Linux
[rice](https://www.reddit.com/r/unixporn/comments/3iy3wd/stupid_question_what_is_ricing/cukxwog/). [rice](https://www.reddit.com/r/unixporn/comments/3iy3wd/stupid_question_what_is_ricing/cukxwog/).
<!--- }}} Intro --> <!--- }}} Intro -->
<!--- Basic Info {{{ -->
## Basic Info
* **OS**: [Arch Linux](https://www.archlinux.org/) ([packages](https://github.com/Kevin-Mok/linux-config/blob/master/txt/pacman-pkgs/auto-pacman-pkgs.txt))
<!--- Main Programs {{{ -->
## Main Programs
* **OS**: [Arch Linux](https://www.archlinux.org/) ([packages](txt/nzxt-pkgs.txt))
* 15s boot time, 25s restart time on an SSD. :smiley: * 15s boot time, 25s restart time on an SSD. :smiley:
* **Terminal**: [rxvt-unicode-pixbuf](https://www.wikiwand.com/en/Rxvt) * **Terminal**: [rxvt-unicode-pixbuf](https://www.wikiwand.com/en/Rxvt)
* **Shell**: [Zsh](http://zsh.sourceforge.net/) + [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) * **Shell**: [Zsh](http://zsh.sourceforge.net/) + [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)
* **Window Manager**: [i3wm](https://i3wm.org/) + [i3-gaps](https://github.com/Airblader/i3)
* **Editor**: [Neovim](https://github.com/neovim/neovim) ([plugins](https://github.com/Kevin-Mok/linux-config/blob/master/dotfiles/vimrc#L51))
* **Window Manager**: [i3-gaps](https://github.com/Airblader/i3)
* **Editor**: [Neovim](https://github.com/neovim/neovim) ([plugins](dotfiles/vimrc#L51))
* **File Manager**: [ranger](https://ranger.github.io/) * **File Manager**: [ranger](https://ranger.github.io/)
<!--- }}} Basic Info --> <!--- }}} Basic Info -->
<!--- Setup {{{ --> <!--- Setup {{{ -->
## Setup ## Setup
I wrote [a script](https://github.com/Kevin-Mok/linux-config/blob/master/setup.sh) to
I wrote [a script](setup.sh) to
symbolically link the files/directories in the repository to the locations symbolically link the files/directories in the repository to the locations
they should be in the system. they should be in the system.
<!--- }}} Setup --> <!--- }}} Setup -->
<!-- History {{{ -->
## Old Screenshots
### 3/7
* [laptop](https://i.imgur.com/UpdX90A.png)
### 3/5
* [dual-monitor desktop](https://i.imgur.com/mbu9aYf.png)
* [laptop](https://i.imgur.com/hrSnXmV.png)
<!-- }}} History -->

7
aliases/zsh_aliases

@ -74,12 +74,16 @@ shrm() {
# directory-related {{{ # # directory-related {{{ #
alias l='ls -a' alias l='ls -a'
alias ll='ls -alFh' alias ll='ls -alFh'
alias smv="sudo mv"
alias f="cd" alias f="cd"
alias fz="fzf"
alias fnd="find . -type f -name"
f `cat /home/kevin/.oh-my-zsh/cache/last-working-dir` f `cat /home/kevin/.oh-my-zsh/cache/last-working-dir`
# alias w="cd $(cat /home/kevin/.oh-my-zsh/cache/last-working-dir)" # alias w="cd $(cat /home/kevin/.oh-my-zsh/cache/last-working-dir)"
alias rmr="rm -rf" alias rmr="rm -rf"
alias mdp="mkdir -p" alias mdp="mkdir -p"
alias rsy="rsync -Pr"
alias "f."="f .." alias "f."="f .."
alias "f.."="f ..." alias "f.."="f ..."
@ -99,7 +103,7 @@ alias s="systemctl suspend"
alias sd="sudo shutdown 0" alias sd="sudo shutdown 0"
alias reb="sudo shutdown -r 0" alias reb="sudo shutdown -r 0"
alias lo="i3-msg exit" alias lo="i3-msg exit"
alias x="xmodmap ~/.Xmodmap"
alias x="xmodmap ~/.Xmodmap && xset r rate 200 60"
# }}} power options # # }}} power options #
@ -189,6 +193,7 @@ function auc() { xdotool click --repeat 1000000 --delay $1 1 ; }
alias swex="sudo nohup ~/Downloads/swex.appimage $silent" alias swex="sudo nohup ~/Downloads/swex.appimage $silent"
alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3" alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3"
alias cv="cava"
alias rmsw="rm .sw*" alias rmsw="rm .sw*"
function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; } function rs(){ redshift -P -O $(echo "scale=2;$1*1000" | bc) ; }

10
configs/i3/config

@ -44,7 +44,7 @@ bindsym control+$mod+s exec systemctl suspend
bindsym Mod4+t exec st bindsym Mod4+t exec st
# bindsym Mod4+x exec $swex # bindsym Mod4+x exec $swex
# bindsym Mod4+x exec xmodmap ~/.Xmodmap # bindsym Mod4+x exec xmodmap ~/.Xmodmap
bindsym Print exec gscreenshot
# bindsym Print exec gscreenshot
# }}} app shortcuts # # }}} app shortcuts #
# redshift {{{ # # redshift {{{ #
@ -183,7 +183,7 @@ bindsym Mod4+Return exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg"
# workspace {{{ # # workspace {{{ #
# ws names {{{ # # ws names {{{ #
set $samsung "DVI-I-1" set $samsung "DVI-I-1"
set $benq "HDMI-1"
set $benq "HDMI-0"
set $ws1 "1 " set $ws1 "1 "
workspace $ws1 output $benq workspace $ws1 output $benq
@ -204,8 +204,9 @@ bindsym $mod+F4 workspace $ws4; exec $def_term
set $ws5 "5 " set $ws5 "5 "
# set $ws5 "5 🎥" # set $ws5 "5 🎥"
workspace $ws5 output $samsung workspace $ws5 output $samsung
assign [class="Steam"] $ws5
bindsym $mod+F5 workspace $ws5; exec $browser bindsym $mod+F5 workspace $ws5; exec $browser
bindsym Mod4+g workspace $ws5; layout stacking; exec steam
bindsym Mod4+g workspace $ws5; layout stacking; exec urxvt -e steam
set $ws6 "6 " set $ws6 "6 "
workspace $ws6 output $samsung workspace $ws6 output $samsung
@ -234,7 +235,8 @@ set $ws10 "10 "
assign [class="spotify"] $ws10 assign [class="spotify"] $ws10
workspace $ws10 output $samsung workspace $ws10 output $samsung
set $hp 2 set $hp 2
bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0
# bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0
bindsym Mod4+v workspace $ws10; exec urxvt -e cava
bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp
bindsym Mod4+s workspace $ws10; exec spotify bindsym Mod4+s workspace $ws10; exec spotify

2
configs/i3blocks-scripts/spotify

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
. "/home/kevin/.cache/wal/colors.sh" . "/home/kevin/.cache/wal/colors.sh"
printf "$(spotify-now -i '%artist - %title' -p '' -e '')\n\n%s\n" "$color7"
printf "$(spotify-now -i '%artist - %title' -p '' -e '')\n$(spotify-now -i '%title' -p '' -e '')\n%s\n" "$color7"

6
configs/i3blocks-scripts/volume

@ -17,8 +17,6 @@ AUDIO_LOW_SYMBOL=${AUDIO_LOW_SYMBOL:-''}
AUDIO_MUTED_SYMBOL=${AUDIO_MUTED_SYMBOL:-''} AUDIO_MUTED_SYMBOL=${AUDIO_MUTED_SYMBOL:-''}
AUDIO_DELTA=${AUDIO_DELTA:-5}
. "/home/kevin/.cache/wal/colors.sh" . "/home/kevin/.cache/wal/colors.sh"
# DEFAULT_COLOR=${DEFAULT_COLOR:-"#ffffff"} # DEFAULT_COLOR=${DEFAULT_COLOR:-"#ffffff"}
DEFAULT_COLOR="$color7" DEFAULT_COLOR="$color7"
@ -34,6 +32,8 @@ SCONTROL=${SCONTROL:-""}
# }}} default vars # # }}} default vars #
AUDIO_DELTA=${AUDIO_DELTA:-5}
# LONG_FORMAT=${LONG_FORMAT:-'${SYMB} ${VOL}% [${INDEX}:${NAME}]'} # LONG_FORMAT=${LONG_FORMAT:-'${SYMB} ${VOL}% [${INDEX}:${NAME}]'}
LONG_FORMAT=${SHORT_FORMAT:-'${SINK_SYMB} ${VOL}%'} LONG_FORMAT=${SHORT_FORMAT:-'${SINK_SYMB} ${VOL}%'}
# SHORT_FORMAT=${SHORT_FORMAT:-'${SYMB} ${VOL}%[${INDEX}]'} # SHORT_FORMAT=${SHORT_FORMAT:-'${SYMB} ${VOL}%[${INDEX}]'}
@ -145,7 +145,7 @@ function print_format {
SINK_SYMB="" SINK_SYMB=""
;; ;;
*"hdmi"*) *"hdmi"*)
SINK_SYMB=""
SINK_SYMB=""
;; ;;
*"pci"*) *"pci"*)
SINK_SYMB="" SINK_SYMB=""

1
configs/sam-i3blocks/sam-i3blocks.conf

@ -23,6 +23,7 @@ interval=10
[volume] [volume]
interval=once interval=once
signal=1 signal=1
interval=10
[time_short] [time_short]
# label=🕓 # label=🕓

1
dotfiles/.vimrc

@ -220,6 +220,7 @@ nnoremap <leader>nw :set nowrap<CR>
" check if in neovim " check if in neovim
nnoremap <leader>nv :echo has('nvim')<CR> nnoremap <leader>nv :echo has('nvim')<CR>
" Plug commands " Plug commands
nnoremap <leader>p "*p
nnoremap <leader>pli :PlugInstall<CR> nnoremap <leader>pli :PlugInstall<CR>
nnoremap <leader>plc :PlugClean<CR> nnoremap <leader>plc :PlugClean<CR>
nnoremap <leader>plu :PlugUpdate<CR> nnoremap <leader>plu :PlugUpdate<CR>

1
dotfiles/.xinitrc

@ -1,3 +1,4 @@
numlockx
xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --setprovideroutputsource modesetting NVIDIA-0
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
xrandr --auto xrandr --auto

4
scripts/backup.sh

@ -3,13 +3,13 @@
# Backup destination # Backup destination
case $1 in case $1 in
nzxt ) nzxt )
backup_dest="/run/media/kevin/nzxt-backup/"
backup_dest="/run/media/kevin/backup-hd/nzxt"
;; ;;
x1 ) x1 )
backup_dest="/run/media/kevin/laptop-backup" backup_dest="/run/media/kevin/laptop-backup"
;; ;;
esac esac
exclude_dirs_list="/home/kevin/linux-config/txt/exlude-dirs-backup.txt"
exclude_dirs_list="/home/kevin/linux-config/txt/exclude-dirs-backup.txt"
# Labels for backup name # Labels for backup name
distro="arch" distro="arch"

0
txt/exlude-dirs-backup.txt → txt/exclude-dirs-backup.txt

5
txt/key_dirs.txt

@ -1,7 +1,7 @@
# sys {{{ * # sys {{{ *
bg /home/kevin/Pictures/Backgrounds bg /home/kevin/Pictures/Backgrounds
co /home/kevin/.config
cf /home/kevin/.config
lc /home/kevin/linux-config/ lc /home/kevin/linux-config/
d /home/kevin/Downloads d /home/kevin/Downloads
D /home/kevin/Documents D /home/kevin/Documents
@ -10,6 +10,7 @@ lc /home/kevin/linux-config/
m /run/media/kevin m /run/media/kevin
o / o /
p /home/kevin/.password-store p /home/kevin/.password-store
P /home/kevin/Pictures
# }}} sys * # }}} sys *
@ -24,6 +25,7 @@ sr /home/kevin/linux-config/scripts
snp /home/kevin/.vim/plugged/vim-snippets/UltiSnips snp /home/kevin/.vim/plugged/vim-snippets/UltiSnips
sv /home/kevin/coding/spotify-lib-vis/src sv /home/kevin/coding/spotify-lib-vis/src
swa /home/kevin/.local/share/nvim/swap swa /home/kevin/.local/share/nvim/swap
tt /home/kevin/linux-config/txt
wo /home/kevin/Documents/workout-logs/11 wo /home/kevin/Documents/workout-logs/11
# }}} cdn * # }}} cdn *
@ -31,7 +33,6 @@ wo /home/kevin/Documents/workout-logs/11
# sch {{{ * # sch {{{ *
sc /home/kevin/school sc /home/kevin/school
st /home/kevin/school/sta
2 /home/kevin/school/236 2 /home/kevin/school/236
lt /home/kevin/school/latex-notes lt /home/kevin/school/latex-notes

1
txt/key_files.txt

@ -18,6 +18,7 @@ z /home/kevin/linux-config/aliases/zsh_aliases
# cdn {{{ * # cdn {{{ *
hlg /home/kevin/coding/spotify-lib-vis/src/api/management/commands/update-history.log hlg /home/kevin/coding/spotify-lib-vis/src/api/management/commands/update-history.log
id /home/kevin/coding/project-ideas/ideas.md
jn /home/kevin/Documents/journal/todo/12.md jn /home/kevin/Documents/journal/todo/12.md
jt /home/kevin/Documents/journal/todo/todo.md jt /home/kevin/Documents/journal/todo/todo.md
lh /home/kevin/Documents/listening-history/polarbier.csv lh /home/kevin/Documents/listening-history/polarbier.csv

9
txt/pacman-pkgs/nzxt-pkgs.txt → txt/nzxt-pkgs.txt

@ -29,6 +29,7 @@ evince
evolution evolution
fakeroot fakeroot
feh feh
ffcast
file file
filesystem filesystem
findutils findutils
@ -71,6 +72,7 @@ make
man-db man-db
man-pages man-pages
mdadm mdadm
mpv
nano nano
neofetch neofetch
neomutt neomutt
@ -78,6 +80,7 @@ neovim
netctl netctl
noto-fonts noto-fonts
ntfs-3g ntfs-3g
numlockx
nvidia nvidia
openssh openssh
pacman pacman
@ -112,6 +115,7 @@ spotify
spotify-now-git spotify-now-git
st st
steam steam
steamos-xpad-dkms
sudo sudo
sysfsutils sysfsutils
sysstat sysstat
@ -137,12 +141,15 @@ transmission-gtk
trizen trizen
ttf-dejavu ttf-dejavu
ttf-emojione ttf-emojione
ttf-ubuntu-font-family
udisks2 udisks2
unzip unzip
usbutils usbutils
util-linux util-linux
vi vi
vlc
w3m w3m
wego
which which
wireless_tools wireless_tools
wpa_actiond wpa_actiond
@ -160,7 +167,6 @@ xf86-video-ati
xf86-video-dummy xf86-video-dummy
xf86-video-fbdev xf86-video-fbdev
xf86-video-intel xf86-video-intel
xf86-video-nouveau
xf86-video-openchrome xf86-video-openchrome
xf86-video-qxl xf86-video-qxl
xf86-video-vesa xf86-video-vesa
@ -201,6 +207,7 @@ xorg-xvinfo
xorg-xwd xorg-xwd
xorg-xwininfo xorg-xwininfo
xorg-xwud xorg-xwud
youtube-viewer
zathura zathura
zathura-pdf-poppler zathura-pdf-poppler
zbar zbar

25
txt/pacman-pkgs/aur-pkgs.txt

@ -1,25 +0,0 @@
chromium-widevine 1:4.10.1196.0-2
discord 0.0.5-5
gscreenshot 2.10.0-2
htop-vim-git 1075.b7b4200-1
i3blocks-git 1.4.r116.g7bcb556-1
libc++ 7.0.0-1
libc++abi 7.0.0-1
perl-term-shellui 0.92-4
pipes.sh 1.3.0-1
qdirstat 1.5-2
rxvt-unicode-pixbuf 9.22-2
spotify 1.0.92.390-1
st 0.8.1-1
systemd-numlockontty 0.1-11
texlive-local-algorithmicx 15878-1
texlive-local-algorithms 42428-1
texlive-local-enumitem 49282-1
texlive-local-hyperref 49299-1
texlive-local-numprint 27498-1
texlive-local-pgfplots 47373-1
texlive-local-tkz-base 48710-1
texlive-local-tkz-euclide 22830-1
texlive-localmanager-git 0.7.r1.gdaa34cf-1
trizen 1:1.55-1
ttf-emojione 4.0.1-3

74
txt/pacman-pkgs/pacman-pkgs.txt

@ -1,74 +0,0 @@
alsa-utils
automake
bc
broadcom-wl
chromium
chromium-widevine
cloc
cmake
cmatrix
colordiff
compton
dhcpcd
dialog
diffutils
dmenu
evince
fakeroot
feh
findutils
fzf
git
grep
grub
htop-vim-git
i3-gaps
i3blocks
i3status
imwheel
less
linux
linux-firmware
linux-headers
lolcat
lsof
lxappearance
make
neofetch
neovim
netctl
noto-fonts
ntfs-3g
pacman
pdfgrep
perl
pipes.sh
pulseaudio
python-dbus
python-pip
python-pywal
python-setuptools
qdirstat
ranger
redshift
rxvt-unicode-pixbuf
sed
shellcheck
spotify
st
sudo
systemd-numlockontty
tar
texinfo
texlive-core
trizen
ttf-dejavu
udisks2
unzip
vi
w3m
wireless_tools
wpa_supplicant
xclip
zathura
zsh
Loading…
Cancel
Save