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.

16 lines
490 B

6 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. if [[ "$editing_choice" = "${EDITING_CHOICES[1]}" ]]; then
  7. rand=$(( RANDOM % 2 ))
  8. editing_choice=${EDITING_CHOICES[$rand]}
  9. fi
  10. bg_path="$base_bg_path/$brightness_choice/$editing_choice"
  11. wal_cmd="wal -i $bg_path"
  12. eval "$wal_cmd"
  13. # echo "$wal_cmd"