From 4af4127ac225ec319cfa58bdfa616a52e06a9c4a Mon Sep 17 00:00:00 2001 From: zachir Date: Mon, 27 Feb 2023 06:15:51 -0600 Subject: update paths in lf and sh --- lf/lfrc | 115 +++++++++++++++++------------ sh/functions | 236 ++++++++++++++++++++++++++++++++++++----------------------- 2 files changed, 212 insertions(+), 139 deletions(-) diff --git a/lf/lfrc b/lf/lfrc index 37c9fc7..83ca216 100644 --- a/lf/lfrc +++ b/lf/lfrc @@ -303,49 +303,72 @@ map C clear map U unselect # Movement -map ga cd ~/.config/awesome -map gb cd ~/.local/bin -map gc cd ~/.config -map gdc cd ~/Documents -map gdo cd ~/Downloads -map gdw cd ~/suckless/dwm -map gdb cd ~/.local/src/dwmbar -map ge cd ~/Desktop -map gE cd /etc -map gf cd ~/.var/app -map glb cd ~/.local/bin -map glc cd ~/Games/cache -map gls cd ~/.local/share -map glf cd ~/.config/lf -map gnv cd ~/.config/nvim -map gns cd ~/.natvst -map gp cd ~/Pictures -map gqc cd ~/.config/qutebrowser -map gqp cd ~/.local/share/qutebrowser-profiles -map gqt cd ~/.config/qtile -map gre cd ~/.local/src -map grs cd /etc/runit/sv -map gsc cd ~/.local/scripts -map gsh cd ~/.config/sh -map gsl cd ~/.local/src/slock -map gss cd /etc/s6/sv -map gsx cd ~/.config/sxhkd -map gtr cd ~/.local/share/Trash/files -map gU. cd /usr -map gUs cd /usr/share -map gva cd ~/.var -map gVa cd /var -map gvi cd ~/Videos -map gvs cd ~/.vst -map gv3 cd ~/.vst3 -map gwa cd ~/git/wallpapers -map gwd cd ~/.local/share/wineprefixes/default -map gwD cd ~/.local/share/wineprefixes/default/drive_c/users/zachir/Downloads -map gwr cd ~/.local/share/wineprefixes -map gww cd ~/.local/share/wineprefixes/work -map gx cd ~/.config/X11 -map gyb cd ~/.cache/yay -map gyc cd ~/.config/yay -map gzs cd ~/.config/zsh -map gzx cd ~/Documents/zachir.xyz - +## PATHS +map gE. cd "/etc" +map gO. cd "/opt" +map gOa cd "/opt/Audio Assault" +map gR cd "/" +map gU. cd "/usr" +map gUs cd "/usr/share" +map gV. cd "/var" +map gaw cd "/home/zachir/.config/awesome" +map gb. cd "/home/zachir/.local/bin" +map gbb cd "/home/zachir/.local/bin/blocks" +map gbf cd "/home/zachir/.local/bin/slatpak-sc" +map gbg cd "/home/zachir/.local/bin/generics" +map gbi cd "/home/zachir/.local/bin/ignore" +map gbsc cd "/home/zachir/.local/bin/scripts" +map gbsh cd "/home/zachir/.local/bin/shortcmds" +map gbsp cd "/home/zachir/.local/bin/sp" +map gc cd "/home/zachir/.config" +map gdb cd "/home/zachir/.local/src/dwmbar" +map gdc cd "" +map gdl cd "/home/zachir/.local/src/dwl" +map gdm cd "/home/zachir/.local/src/dmenu" +map gdo cd "" +map gdp cd "/plugin/zachir_librem.one" +map gdw cd "/wine" +map ge cd "" +map gf cd "/home/zachir/.var/app" +map gh cd "/home/zachir/.config/hypr" +map glb cd "/home/zachir/.local/bin" +map glc cd "/home/zachir/Games/cache" +map glf cd "/home/zachir/.config/lf" +map gls cd "/home/zachir/.local/share" +map gn3 cd "/home/zachir/.vst3/native" +map gns cd "/home/zachir/.vst/native" +map gnv cd "/home/zachir/.config/nvim" +map gp cd "" +map gqb cd "/home/zachir/.config/qutebrowser" +map gqp cd "/home/zachir/.local/share/qutebrowser-profiles" +map gre cd "/home/zachir/.local/src" +map grs cd "/etc/runit/sv" +map gsc cd "/home/zachir/.local/bin/scripts" +map gsh cd "/home/zachir/.config/sh" +map gsl cd "/home/zachir/.local/src/slock" +map gss cd "/etc/s6/sv" +map gst cd "/home/zachir/.local/src/st" +map gsx cd "/home/zachir/.config/sxhkd" +map gtr cd "/home/zachir/.local/share/Trash/files" +map gurs cd "/home/zachir/.runit/sv" +map gv3. cd "/home/zachir/.vst3" +map gv3n cd "/home/zachir/.vst3/native" +map gv3y cd "/home/zachir/.vst3/yabridge" +map gv. cd "/home/zachir/var" +map gvi cd "" +map gvsn cd "/home/zachir/.vst/native" +map gvs. cd "/home/zachir/.vst" +map gvsy cd "/home/zachir/.vst/yabridge" +map gwdo cd "/home/zachir/.local/share/wineprefixes/default/drive_c/users/zachir/Downloads" +map gwa cd "/home/zachir/.local/src/wallpapers" +map gwd cd "/home/zachir/.local/share/wineprefixes/default" +map gwr cd "/home/zachir/.local/share/wineprefixes" +map gwv3 cd "/home/zachir/.winvst3" +map gwvs cd "/home/zachir/.winvst" +map gww cd "/home/zachir/.local/share/wineprefixes/work" +map gx cd "/home/zachir/.config/X11" +map gy3 cd "/home/zachir/.vst3/yabridge" +map gyb cd "/home/zachir/.cache/yay" +map gyc cd "/home/zachir/.config/yay" +map gzs cd "/home/zachir/.config/zsh" +map gzx cd "/zachir.xyz" diff --git a/sh/functions b/sh/functions index 6ed5792..30e1341 100644 --- a/sh/functions +++ b/sh/functions @@ -31,99 +31,149 @@ scd () { cd $HOME else case "$1" in - "-l") echo " -aw - ~/.config/awesome -al - ~/.config/alacritty -b - ~/.local/bin -c - ~/.config -db - ~/.local/src/dwmblocks -dc - ~/Documents -do - ~/Downloads -dw - ~/.local/src/dwm -e - ~/Desktop -E - /etc -f - ~/.var/app -h - ~/.config/herbstluftwm -lb - ~/.local/bin -lc - ~/Games/cache -lf - ~/.config/lf -ls - ~/.local/share -nv - ~/.config/nvim -ns - ~/.natvst -p - ~/Pictures -qc - ~/.config/qutebrowser -qp - ~/.local/share/qutebrowser-profiles -qt - ~/.config/qtile -re - ~/.local/src -ri - ~/.config/river -rs - /etc/runit/sv -sc - ~/.local/bin/scripts -sh - ~/.config/sh -sl - ~/.local/src/slock -ss - /etc/s6/sv -st - ~/.local/src/st -sx - ~/.config/sxhkd -Va - /var -v3 - ~/.vst3 -va - ~/.var -vs - ~/.vst -vv - ~/.local/volsv -wa - ~/.local/src/wallpapers -wd - ~/.local/share/wineprefixes/default -wh - ~/.local/share/wineprefixes/[CURRENT] -wr - ~/.local/share/wineprefixes -ww - ~/.local/share/wineprefixes/work -x - ~/.config/X11 -yb - ~/.cache/yay -yc - ~/.config/yay -zs - ~/.config/zsh -zx - ~/Documents/zachir.xyz -";; - "aw") cd $XDG_CONFIG_HOME/awesome/ ;; - "al") cd $XDG_CONFIG_HOME/alacritty/ ;; - "b") cd "$HOME"/.local/bin/ ;; - "c") cd $XDG_CONFIG_HOME/ ;; - "dc") cd $HOME/Documents/ ;; - "do") cd $HOME/Downloads/ ;; - "dw") cd $HOME/.local/src/dwm/ ;; - "db") cd $HOME/.local/src/dwmbar/ ;; - "e") cd $HOME/Desktop ;; - "E") cd /etc ;; - "f") cd $HOME/.var/app ;; - "h") cd "$XDG_CONFIG_HOME"/herbstluftwm ;; - "lb") cd $HOME/.local/bin ;; - "lc") cd $HOME/Games/cache ;; - "ls") cd $XDG_DATA_HOME ;; - "lf") cd $XDG_CONFIG_HOME/lf ;; - "nv") cd $XDG_CONFIG_HOME/nvim ;; - "ns") cd $HOME/.natvst ;; - "p") cd $HOME/Pictures ;; - "qc") cd $XDG_CONFIG_HOME/qutebrowser/ ;; - "qp") cd $XDG_DATA_HOME/qutebrowser-profiles/ ;; - "qt") cd $XDG_CONFIG_HOME/qtile/ ;; - "re") cd $HOME/.local/src/ ;; - "ri") cd $XDG_CONFIG_HOME/river ;; - "rs") cd /etc/runit/sv ;; - "sc") cd $HOME/.local/bin/scripts/ ;; - "sh") cd $XDG_CONFIG_HOME/sh/ ;; - "sl") cd $HOME/.local/src/slock/ ;; - "ss") cd /etc/s6/sv ;; - "st") cd $HOME/.local/src/st/ ;; - "sx") cd $XDG_CONFIG_HOME/sxhkd/ ;; - "v3") cd $HOME/.vst3 ;; - "vi") cd $HOME/Videos ;; - "vs") cd $HOME/.vst/ ;; - "vv") cd $HOME/.local/volsv/ ;; - "wa") cd $HOME/.local/src/wallpapers ;; - "wd") cd $WINEROOT/default ;; - "wh") cd $WINEPREFIX ;; - "wr") cd $WINEROOT ;; - "ww") cd $WINEROOT/work ;; - "x") cd $XDG_CONFIG_HOME/X11 ;; - "yb") cd $XDG_CACHE_HOME/yay ;; - "yc") cd $XDG_CONFIG_HOME/yay ;; - "zs") cd $ZDOTDIR/ ;; - "zx") cd $HOME/Documents/zachir.xyz/ ;; + "-h") + # STARTPRINT +echo "scd - a script to change directories based on shortcuts. +E. - /etc +O. - /opt +Oa - /opt/Audio Assault +R - / +U. - /usr +Us - /usr/share +V. - /var +aw - /home/zachir/.config/awesome +b. - /home/zachir/.local/bin +bb - /home/zachir/.local/bin/blocks +bf - /home/zachir/.local/bin/slatpak-sc +bg - /home/zachir/.local/bin/generics +bi - /home/zachir/.local/bin/ignore +bsc - /home/zachir/.local/bin/scripts +bsh - /home/zachir/.local/bin/shortcmds +bsp - /home/zachir/.local/bin/sp +c - /home/zachir/.config +db - /home/zachir/.local/src/dwmbar +dc - +dl - /home/zachir/.local/src/dwl +dm - /home/zachir/.local/src/dmenu +do - +dp - /plugin/zachir_librem.one +dw - /wine +e - +f - /home/zachir/.var/app +h - /home/zachir/.config/hypr +lb - /home/zachir/.local/bin +lc - /home/zachir/Games/cache +lf - /home/zachir/.config/lf +ls - /home/zachir/.local/share +n3 - /home/zachir/.vst3/native +ns - /home/zachir/.vst/native +nv - /home/zachir/.config/nvim +p - +qb - /home/zachir/.config/qutebrowser +qp - /home/zachir/.local/share/qutebrowser-profiles +re - /home/zachir/.local/src +rs - /etc/runit/sv +sc - /home/zachir/.local/bin/scripts +sh - /home/zachir/.config/sh +sl - /home/zachir/.local/src/slock +ss - /etc/s6/sv +st - /home/zachir/.local/src/st +sx - /home/zachir/.config/sxhkd +tr - /home/zachir/.local/share/Trash/files +urs - /home/zachir/.runit/sv +v3. - /home/zachir/.vst3 +v3n - /home/zachir/.vst3/native +v3y - /home/zachir/.vst3/yabridge +v. - /home/zachir/var +vi - +vsn - /home/zachir/.vst/native +vs. - /home/zachir/.vst +vsy - /home/zachir/.vst/yabridge +wdo - /home/zachir/.local/share/wineprefixes/default/drive_c/users/zachir/Downloads +wa - /home/zachir/.local/src/wallpapers +wd - /home/zachir/.local/share/wineprefixes/default +wr - /home/zachir/.local/share/wineprefixes +wv3 - /home/zachir/.winvst3 +wvs - /home/zachir/.winvst +ww - /home/zachir/.local/share/wineprefixes/work +x - /home/zachir/.config/X11 +y3 - /home/zachir/.vst3/yabridge +yb - /home/zachir/.cache/yay +yc - /home/zachir/.config/yay +zs - /home/zachir/.config/zsh +zx - /zachir.xyz +" ;; + # STOPPRINT + # STARTPATHS +"E.") cd "/etc" ;; +"O.") cd "/opt" ;; +"Oa") cd "/opt/Audio Assault" ;; +"R") cd "/" ;; +"U.") cd "/usr" ;; +"Us") cd "/usr/share" ;; +"V.") cd "/var" ;; +"aw") cd "$XDG_CONFIG_HOME/awesome" ;; +"b.") cd "$HOME/.local/bin" ;; +"bb") cd "$HOME/.local/bin/blocks" ;; +"bf") cd "$HOME/.local/bin/slatpak-sc" ;; +"bg") cd "$HOME/.local/bin/generics" ;; +"bi") cd "$HOME/.local/bin/ignore" ;; +"bsc") cd "$HOME/.local/bin/scripts" ;; +"bsh") cd "$HOME/.local/bin/shortcmds" ;; +"bsp") cd "$HOME/.local/bin/sp" ;; +"c") cd "$XDG_CONFIG_HOME" ;; +"db") cd "$SRCDIR/dwmbar" ;; +"dc") cd "$XDG_DOCUMENTS_DIR" ;; +"dl") cd "$SRCDIR/dwl" ;; +"dm") cd "$SRCDIR/dmenu" ;; +"do") cd "$XDG_DOWNLOAD_DIR" ;; +"dp") cd "$XDG_DOWNLOAD_DIR/plugin/zachir_librem.one" ;; +"dw") cd "$XDG_DOWNLOAD_DIR/wine" ;; +"e") cd "$XDG_DESKTOP_DIR" ;; +"f") cd "$HOME/.var/app" ;; +"h") cd "$XDG_CONFIG_HOME/hypr" ;; +"lb") cd "$HOME/.local/bin" ;; +"lc") cd "$HOME/Games/cache" ;; +"lf") cd "$XDG_CONFIG_HOME/lf" ;; +"ls") cd "$XDG_DATA_HOME" ;; +"n3") cd "$HOME/.vst3/native" ;; +"ns") cd "$HOME/.vst/native" ;; +"nv") cd "$XDG_CONFIG_HOME/nvim" ;; +"p") cd "$XDG_PICTURES_DIR" ;; +"qb") cd "$XDG_CONFIG_HOME/qutebrowser" ;; +"qp") cd "$XDG_DATA_HOME/qutebrowser-profiles" ;; +"re") cd "$SRCDIR" ;; +"rs") cd "/etc/runit/sv" ;; +"sc") cd "$HOME/.local/bin/scripts" ;; +"sh") cd "$XDG_CONFIG_HOME/sh" ;; +"sl") cd "$SRCDIR/slock" ;; +"ss") cd "/etc/s6/sv" ;; +"st") cd "$SRCDIR/st" ;; +"sx") cd "$XDG_CONFIG_HOME/sxhkd" ;; +"tr") cd "$XDG_DATA_HOME/Trash/files" ;; +"urs") cd "$HOME/.runit/sv" ;; +"v3.") cd "$HOME/.vst3" ;; +"v3n") cd "$HOME/.vst3/native" ;; +"v3y") cd "$HOME/.vst3/yabridge" ;; +"v.") cd "$HOME/var" ;; +"vi") cd "$XDG_VIDEOS_DIR" ;; +"vsn") cd "$HOME/.vst/native" ;; +"vs.") cd "$HOME/.vst" ;; +"vsy") cd "$HOME/.vst/yabridge" ;; +"wdo") cd "$WINEPREFIX/drive_c/users/$USER/Downloads" ;; +"wa") cd "$SRCDIR/wallpapers" ;; +"wd") cd "$WINEPREFIX" ;; +"wr") cd "$WINEROOT" ;; +"wv3") cd "$HOME/.winvst3" ;; +"wvs") cd "$HOME/.winvst" ;; +"ww") cd "$WINEROOT/work" ;; +"x") cd "$XDG_CONFIG_HOME/X11" ;; +"y3") cd "$HOME/.vst3/yabridge" ;; +"yb") cd "$XDG_CACHE_HOME/yay" ;; +"yc") cd "$XDG_CONFIG_HOME/yay" ;; +"zs") cd "$XDG_CONFIG_HOME/zsh" ;; +"zx") cd "$XDG_DOCUMENTS_DIR/zachir.xyz" ;; + # STOPPATHS *) echo "\"$1\" is not a known location" ;; esac fi -- cgit v1.2.3