Advertisement
Guest User

antiX add icons to desktop (using a ROX managed desktop)

a guest
Sep 25th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/bin/bash
  2. ### PPC 09/23/19
  3.  
  4. yad --center --width=400 --title="Add Application icons to the desktop" --text="  To add an Application icon to the desktop, drag and drop it from the rox file manager to where you want it in your desktop \n You can later double right-click that desktop icon and rename it and/or remove it's .desktop extension" \
  5. --button=gtk-cancel:1 \
  6. --button="OK":2 \
  7.  
  8. foo=$?
  9.  
  10. [[ $foo -eq 1 ]] && exit 0
  11.  
  12. if [[ $foo -eq 2 ]]; then
  13. #minize all windows
  14. window_ids=$(wmctrl -l | cut -f1 -d " ")
  15. activewindow=$(xdotool getactivewindow)
  16. for window_id in $window_ids
  17. do
  18.     xdotool windowminimize "$window_id"
  19. done
  20. #display .desktop files location
  21.  rox /usr/share/applications
  22. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement