set-eyecandy 717 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. # Start Eyecandy Theme
  3. current="$(cat ~/.config/openbox/visual-mode/current)"
  4. if [[ $current != *"eyecandy"* ]]; then
  5. # Kill Current
  6. bash -c '~/.config/openbox/visual-mode/kill-ui'
  7. # Set UI & Theme
  8. bash -c '~/.config/openbox/visual-mode/eyecandy/theme'
  9. bash -c '~/.config/openbox/visual-mode/eyecandy/ui'
  10. # Tray
  11. bash -c '~/.config/openbox/tray'
  12. # Write Current
  13. echo "eyecandy" > ~/.config/openbox/visual-mode/current
  14. # Notify Success
  15. notify-send -u low -i lookswitcher "Visual Mode" "Eyecandy Theme Applied"
  16. else
  17. # Notify Fail
  18. notify-send -u low -i lookswitcher "Visual Mode" "You're Already in Eyecandy Theme"
  19. fi