Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
521 B

5 years ago
5 years ago
5 years ago
  1. #!/bin/bash
  2. base_bg_path="/home/kevin/Pictures/Backgrounds"
  3. brightness_choice=$(echo -e "dim\nbright" | dmenu -i)
  4. EDITING_CHOICES=("non-editing" "editing")
  5. # editing_choice=$(echo -e "${EDITING_CHOICES[0]}\n${EDITING_CHOICES[1]}" | dmenu -i)
  6. editing_choice="non-editing"
  7. if [[ "$editing_choice" = "${EDITING_CHOICES[0]}" ]]; then
  8. rand=$(( RANDOM % 2 ))
  9. editing_choice=${EDITING_CHOICES[$rand]}
  10. fi
  11. bg_path="$base_bg_path/$brightness_choice/$editing_choice"
  12. wal_cmd="wal -i $bg_path"
  13. eval "$wal_cmd"
  14. # echo "$wal_cmd"