Browse Source

Added random for bg-chooser when non-editing

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
2ee0b06143
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 2
      aliases/zsh_aliases
  2. 8
      configs/ranger/rc.conf
  3. 8
      scripts/bg-chooser
  4. 3
      txt/key_dirs.txt

2
aliases/zsh_aliases

@ -382,7 +382,7 @@ alias hs="$spv_dir/src/update-history.sh && hlg"
# function svm() { mv $1 ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; } # function svm() { mv $1 ~/.local/share/Steam/steamapps/common/Stardew\ Valley/Mods ; }
# # }}} # # }}}
alias sc="cs && shellcheck"
alias sc="shellcheck"
alias pdl="pdflatex" alias pdl="pdflatex"
alias tcl="tex-clean" alias tcl="tex-clean"

8
configs/ranger/rc.conf

@ -674,11 +674,11 @@ map rr source ~/.config/ranger/rc.conf
# backgrounds # backgrounds
map w shell /usr/bin/wal -i %f map w shell /usr/bin/wal -i %f
map bdc shell mv %f dim/editing
map bde shell mv %f dim/editing
map bdn shell mv %f dim/non-editing map bdn shell mv %f dim/non-editing
# map bbc shell mv %f bright/editing
# map bbn shell mv %f bright/non-editing
map bc shell mv %f editing
map bbe shell mv %f bright/editing
map bbn shell mv %f bright/non-editing
map be shell mv %f editing
map bn shell mv %f non-editing map bn shell mv %f non-editing
# bulk rename # bulk rename

8
scripts/bg-chooser

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

3
txt/key_dirs.txt

@ -33,7 +33,8 @@ wo /home/kevin/Documents/workout-logs/11
# sch {{{ * # sch {{{ *
sc /home/kevin/school sc /home/kevin/school
2 /home/kevin/school/236
8a /home/kevin/school/latex-notes/318
8r /home/kevin/school/318
lt /home/kevin/school/latex-notes lt /home/kevin/school/latex-notes
# }}} sch * # }}} sch *
Loading…
Cancel
Save