I just place my scripts in ~/scripts.
A couple I use all the time I copy to ~/bin so they can be run without specifying the path.
Code:
glen@Bionic:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/glen/.local/bin:/home/glen/bin
Often used scripts I add to a .desktop file utilising a quicklist.
The .desktop file is placed in ~/.local/share/applications
eg this is my ~/.local/share/applications/MyScripts.desktop file.
Code:
[Desktop Entry]
Version=1.0
Name=Scripts
Exec=xdg-open /home/glen/scripts
Type=Application
Icon=/home/glen/Pictures/icons/coloured_folders/scripts-folder-flipped.png
Comment=My personal scripts
StartupNotify=false
# This sets the content and order of the Quicklist. Must match the [Desktop Action xxxxxxx]
Actions=Background;Buckle;network-restart;Ping;reloadPlank;Speed;swap;Test Script;RunTest;reloadtint2;Upper2lower;VivaldiCSS;VivaldiPatch;zsync;separator;edit-launcher;
[Desktop Action term-kill]
Name=xfce4-terminal kill
Exec=killall xfce4-terminal
[Desktop Action Background]
Name=Background Reset
Exec=/home/glen/scripts/background-reset-gradient.sh
[Desktop Action Whatismyip]
Name=Whatismyip
Exec=/home/glen/scripts/whatismyip
[Desktop Action zsync]
Name=Zsync Daily Iso
Exec=xfce4-terminal --tab --drop-down --title "Zsync" -e "/home/glen/scripts/zsync.sh"
[Desktop Action Cursor]
Name=Change Cursor
Exec=xfce4-terminal --tab --drop-down -e "/home/glen/scripts/change-cursor-trusty"
[Desktop Action Test Script]
Name=Test Script Edit
Exec=gedit /home/glen/scripts/aatest.sh
[Desktop Action Screensaver]
Name=Screensaver OFF/ON
Exec=/home/glen/scripts/toggle_screen_blanking.sh
[Desktop Action Notes]
Name=Notes
Exec=gedit "/media/Data/Notes"
[Desktop Action open-command]
Name=Open command in Terminal
Exec=/home/glen/scripts/xsel-terminal.sh
[Desktop Action RunTest]
Name=Test Script Run
Exec=gnome-terminal -e "/home/glen/scripts/aatest.sh"
[Desktop Action ClockToggle]
Name=Clock-Toggle
Exec=/home/glen/scripts/toggle-clock.sh
[Desktop Action TooltipToggle]
Name=Tooltip-Toggle
Exec=/home/glen/scripts/tooltips-toggle-trusty.sh
[Desktop Action Brightness]
Name=Brightness
Exec=/home/glen/scripts/brightness.py
[Desktop Action Reboot]
Name=XP Reboot
Exec=/home/glen/scripts/Reboot_to_Windows
[Desktop Action reloadtint2]
Name=Tint2 Reload
Exec=sh -c "killall tint2 && tint2 &"
[Desktop Action reloadPlank]
Name=Plank Reload
Exec=sh -c "killall plank && plank &"
[Desktop Action separator]
Name=______________________________________
Exec=
[Desktop Action edit-launcher]
Name=Edit Launcher
Exec=gedit /home/glen/.local/share/applications/MyScripts.desktop
[Desktop Action Ping]
Name=Ping Test
Exec=/home/glen/scripts/pingtest.sh
[Desktop Action Speed]
Name=Speed Test
Exec=/home/glen/scripts/speedtest.sh
[Desktop Action Upper2lower]
Name=Upper to Lower
Exec=/home/glen/scripts/upper2lower.sh
[Desktop Action getip]
Name=Get-IP Loop
Exec=sh -c "killall get-ip-loop.sh; sleep 2 && /home/glen/scripts/get-ip-loop.sh"
[Desktop Action game]
Name=Game-Settings On/Off
Exec=/home/glen/scripts/game-settings.sh
[Desktop Action poker-fix]
Name=Poker Fix
Exec=xfce4-terminal --tab --drop-down -e "/home/glen/scripts/pokerth-sound-fix.sh"
[Desktop Action Buckle]
Name=Buckle On/Off
Exec=/home/glen/scripts/buckle-toggle.sh
[Desktop Action unilogout]
Name=Universal Logout
Exec=/home/glen/scripts/universal-logout.sh
[Desktop Action gnome-shell-replace]
Name=gnome-shell-replace
Exec=/home/glen/scripts/gnome-shell-replace.sh
[Desktop Action network-restart]
Name=Network-restart
Exec=xfce4-terminal --tab --drop-down --title "Network Restart" -e "/home/glen/scripts/network-restart.sh"
[Desktop Action swap]
Name=Swap On/Off
Exec=xfce4-terminal --tab --drop-down --title "Network-restart" -e "/home/glen/scripts/swap_toggle.sh"
[Desktop Action VivaldiPatch]
Name=VivaldiPatch
Exec=xfce4-terminal --tab --drop-down --title "VivaldiPatch" -e "sudo /home/glen/MEGAsync/configs/vivaldi/VivaldiPatch/vivaldi-patch.sh"
[Desktop Action VivaldiCSS]
Name=VivaldiCSS
Exec=gedit /home/glen/MEGAsync/configs/vivaldi/VivaldiPatch/custom.css
Bookmarks