Browse Source

Update

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
eb726a13c9
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 17
      aliases/key_aliases
  2. 2
      fish/.config/fish/config.fish
  3. 2
      fish/.config/fish/functions/vsnp.fish
  4. 3
      i3/.config/i3/config
  5. 71
      ranger/.config/ranger/rifle.conf
  6. 5
      scripts/bg-chooser

17
aliases/key_aliases

@ -21,10 +21,13 @@ mkpk "makepkg -sri"
mkex "chmod 777"
# systemctl
ctl "systemctl"
ctle "systemctl enable"
ctld "systemctl disable"
ctls "systemctl start"
ctl "sudo systemctl"
ctle "sudo systemctl enable"
ctld "sudo systemctl disable"
ctla "sudo systemctl start"
ctls "sudo systemctl stop"
ctlt "sudo systemctl status"
ctlr "sudo systemctl restart"
wm "sudo wifi-menu"
@ -120,7 +123,7 @@ r "ranger"
mr "man ranger"
clc "cloc ."
n "nvim"
sni "sudo nvim"
sn "sudo nvim"
fh "feh"
sx "sxiv"
sxg "sxiv -a"
@ -287,7 +290,11 @@ sc "shellcheck"
pdl "pdflatex"
tcl "tex-clean"
# mfs
mfs "nvim /home/kevin/coding/best-mf-site-personal/index.html"
hps "python3 -m http.server"
j "jekyll"
js "jekyll serve"
ss "ssh kevin@192.168.0.100"

2
fish/.config/fish/config.fish

@ -28,7 +28,7 @@ set -U spv_dir "/home/kevin/coding/spotify-lib-vis"
source $spv_dir/src/api-keys.sh
# set -U PATH /usr/local/sbin /usr/local/bin /usr/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /home/kevin/linux-config/scripts
set -x PATH $PATH /home/kevin/linux-config/scripts
set -x PATH $PATH /home/kevin/linux-config/scripts (ruby -e 'print Gem.user_dir')/bin
set -x PASSWORD_STORE_CLIP_TIME 120
# fxn abbr's

2
fish/.config/fish/functions/vsnp.fish

@ -1,4 +1,4 @@
function vsnp
set snips_dir "/home/kevin/.vim/plugged/vim-snippets/UltiSnips"
echo $EDITOR $snips_dir/$argv[1]
$EDITOR $snips_dir/$argv[1].snippets
end

3
i3/.config/i3/config

@ -221,7 +221,8 @@ set $ws6 "6 "
workspace $ws6 output $samsung
assign [class="Slack"] $ws6
bindsym Mod4+d workspace $ws6; exec discord
bindsym Mod4+k workspace $ws6; exec slack
bindsym Mod4+i workspace $ws6; exec firefox -new-window https://riot.im/app/#/home
# bindsym Mod4+k workspace $ws6; exec slack
set $ws7 "7 "
# set $ws7 "7 📤"

71
ranger/.config/ranger/rifle.conf

@ -1,4 +1,5 @@
# vim: ft=cfg
# info {{{
#
# This is the configuration file of "rifle", ranger's file executor/opener.
# Each line consists of conditions and a command. For each line the conditions
@ -47,48 +48,50 @@
# implementation may differ.
# Note: When using rifle in ranger, there is an additional flag "c" for
# only running the current file even if you have marked multiple files.
# }}}
#-------------------------------------------
# Websites
# Websites {{{
#-------------------------------------------
# Rarely installed browsers get higher priority; It is assumed that if you
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the
# other hand are often only installed as fallback browsers.
ext x?html?, has surf, X, flag f = surf -- file://"$1"
ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
ext x?html?, has dwb, X, flag f = dwb -- "$@"
ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
ext x?html?, has luakit, X, flag f = luakit -- "$@"
ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
ext x?html?, has midori, X, flag f = midori -- "$@"
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
ext x?html?, has chromium, X, flag f = chromium -- "$@"
ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
ext x?html?, has opera, X, flag f = opera -- "$@"
ext x?html?, has firefox, X, flag f = firefox -- "$@"
ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
ext x?html?, has elinks, terminal = elinks "$@"
ext x?html?, has links2, terminal = links2 "$@"
ext x?html?, has links, terminal = links "$@"
ext x?html?, has lynx, terminal = lynx -- "$@"
ext x?html?, has w3m, terminal = w3m "$@"
#-------------------------------------------
# Misc
# ext x?html?, has surf, X, flag f = surf -- file://"$1"
# ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
# ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
# ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
# ext x?html?, has dwb, X, flag f = dwb -- "$@"
# ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
# ext x?html?, has luakit, X, flag f = luakit -- "$@"
# ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
# ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
# ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
# ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
# ext x?html?, has midori, X, flag f = midori -- "$@"
# ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
# ext x?html?, has chromium, X, flag f = chromium -- "$@"
# ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
# ext x?html?, has opera, X, flag f = opera -- "$@"
# ext x?html?, has firefox, X, flag f = firefox -- "$@"
# ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
# ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
# ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
# ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
# ext x?html?, has elinks, terminal = elinks "$@"
# ext x?html?, has links2, terminal = links2 "$@"
# ext x?html?, has links, terminal = links "$@"
# ext x?html?, has lynx, terminal = lynx -- "$@"
# ext x?html?, has w3m, terminal = w3m "$@"
# }}}
# text {{{
#-------------------------------------------
# Define the "editor" for text files as first action
# mime ^text, label editor = urxvt -e "${VISUAL:-$EDITOR} -- $@"
mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
mime ^text, label pager = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish = ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish = "$PAGER" -- "$@"
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish|html|yml|scss = ${VISUAL:-$EDITOR} -- "$@"
# !mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish|html|yml|scss = urxvt -e ${VISUAL:-$EDITOR} -- "$@"
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|fish|html|yml|scss = "$PAGER" -- "$@"
ext 1 = man "$1"
ext s[wmf]c, has zsnes, X = zsnes "$1"
@ -97,6 +100,8 @@ ext nes, has fceux, X = fceux "$1"
ext exe = wine "$1"
name ^[mM]akefile$ = make
# }}}
#--------------------------------------------
# Code
#-------------------------------------------

5
scripts/bg-chooser

@ -4,9 +4,10 @@ base_bg_path="/home/kevin/Pictures/Backgrounds"
brightness_choice=$(echo -e "dim\nbright" | dmenu -i)
EDITING_CHOICES=("non-editing" "editing")
editing_choice=$(echo -e "${EDITING_CHOICES[0]}\n${EDITING_CHOICES[1]}" | dmenu -i)
# editing_choice=$(echo -e "${EDITING_CHOICES[0]}\n${EDITING_CHOICES[1]}" | dmenu -i)
editing_choice="non-editing"
if [[ "$editing_choice" = "${EDITING_CHOICES[1]}" ]]; then
if [[ "$editing_choice" = "${EDITING_CHOICES[0]}" ]]; then
rand=$(( RANDOM % 2 ))
editing_choice=${EDITING_CHOICES[$rand]}
fi

Loading…
Cancel
Save