Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ### PPC 09/23/19
- 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" \
- --button=gtk-cancel:1 \
- --button="OK":2 \
- foo=$?
- [[ $foo -eq 1 ]] && exit 0
- if [[ $foo -eq 2 ]]; then
- #minize all windows
- window_ids=$(wmctrl -l | cut -f1 -d " ")
- activewindow=$(xdotool getactivewindow)
- for window_id in $window_ids
- do
- xdotool windowminimize "$window_id"
- done
- #display .desktop files location
- rox /usr/share/applications
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement