set-shirin 699 B

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