added ~/bin to this repo and steam launcher helder script to mitigate some errors
This commit is contained in:
parent
df1ee3ed4d
commit
e3feb62c51
9 changed files with 92 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ developmentmenu = {
|
||||||
}
|
}
|
||||||
engineeringmenu = {
|
engineeringmenu = {
|
||||||
{ "arduino", "/usr/bin/arduino", "/usr/share/icons/hicolor/48x48/apps/arduino.png" },
|
{ "arduino", "/usr/bin/arduino", "/usr/share/icons/hicolor/48x48/apps/arduino.png" },
|
||||||
{ "eagle", "/home/hanez/bin/eagle", "/usr/share/pixmaps/eagle.png" },
|
{ "eagle", "/home/hanez/bin/eagle.sh", "/usr/share/pixmaps/eagle.png" },
|
||||||
{ "energia", "/usr/bin/energia", "/usr/share/pixmaps/energia.png" },
|
{ "energia", "/usr/bin/energia", "/usr/share/pixmaps/energia.png" },
|
||||||
{ "freecad", "/usr/bin/freecad", "/usr/share/freecad/freecad-icon-48.png" },
|
{ "freecad", "/usr/bin/freecad", "/usr/share/freecad/freecad-icon-48.png" },
|
||||||
{ "fritzing", "/usr/bin/Fritzing", "/usr/share/icons/fritzing.png" },
|
{ "fritzing", "/usr/bin/Fritzing", "/usr/share/icons/fritzing.png" },
|
||||||
|
|
|
||||||
10
.gitignore
vendored
10
.gitignore
vendored
|
|
@ -1,8 +1,14 @@
|
||||||
*
|
*
|
||||||
|
|
||||||
!bin
|
!bin
|
||||||
!bin/**
|
#!bin/**
|
||||||
bin/steam.sh
|
!bin/eagle.sh
|
||||||
|
!bin/gnucash.sh
|
||||||
|
!bin/steam.sh
|
||||||
|
!bin/myip.sh
|
||||||
|
!bin/nas-boot.sh
|
||||||
|
!bin/nas-reboot.sh
|
||||||
|
!bin/nas-shutdown.sh
|
||||||
|
|
||||||
!.config
|
!.config
|
||||||
|
|
||||||
|
|
|
||||||
4
bin/eagle.sh
Executable file
4
bin/eagle.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
LANGUAGE=de_DE LANG=de_DE /usr/bin/eagle
|
||||||
|
|
||||||
4
bin/gnucash.sh
Executable file
4
bin/gnucash.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
LANGUAGE=de_DE LANG=de_DE /usr/bin/gnucash %f
|
||||||
|
|
||||||
9
bin/myip.sh
Executable file
9
bin/myip.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# http://askubuntu.com/questions/95910/command-for-determining-my-public-ip
|
||||||
|
|
||||||
|
# Works too but very slow (a lot more features available):
|
||||||
|
# curl ifconfig.me
|
||||||
|
|
||||||
|
wget -qO- http://ipecho.net/plain; echo
|
||||||
|
|
||||||
19
bin/nas-boot.sh
Executable file
19
bin/nas-boot.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Needs NAS_HOST and NAS_MAC defined in ~/.config.sh
|
||||||
|
|
||||||
|
source ~/.config.sh
|
||||||
|
|
||||||
|
/usr/bin/zenity --question --text "Do You really want to boot your NAS device?"
|
||||||
|
case $? in
|
||||||
|
0)
|
||||||
|
ping -c 1 $NAS_HOST
|
||||||
|
VALUE=$?
|
||||||
|
if [ $VALUE == 0 ]; then
|
||||||
|
/usr/bin/zenity --info --icon-name=error --text "Boot command failed: Device already up!"
|
||||||
|
elif [ $VALUE == 1 ]; then
|
||||||
|
/usr/bin/wol $NAS_MAC
|
||||||
|
/usr/bin/zenity --info --text "Boot command sent to NAS device."
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
18
bin/nas-reboot.sh
Executable file
18
bin/nas-reboot.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Needs NAS_HOST and NAS_USER defined in ~/.config.sh
|
||||||
|
|
||||||
|
source ~/.config.sh
|
||||||
|
|
||||||
|
/usr/bin/zenity --question --text "Do You really want to reboot your NAS device?"
|
||||||
|
case $? in
|
||||||
|
0)
|
||||||
|
/usr/bin/ssh $NAS_USER@$NAS_HOST "/usr/bin/sudo /sbin/shutdown -r now"
|
||||||
|
VALUE=$?
|
||||||
|
if [ $VALUE == 0 ]; then
|
||||||
|
/usr/bin/zenity --info --text "Reboot command send to NAS device."
|
||||||
|
elif [ $VALUE == 255 ]; then
|
||||||
|
/usr/bin/zenity --info --icon-name=error --text "Reboot command failed: No route to host"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
18
bin/nas-shutdown.sh
Executable file
18
bin/nas-shutdown.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Needs NAS_HOST and NAS_USER defined in ~/.config.sh
|
||||||
|
|
||||||
|
source ~/.config.sh
|
||||||
|
|
||||||
|
/usr/bin/zenity --question --text "Do You really want to shutdown your NAS device?"
|
||||||
|
case $? in
|
||||||
|
0)
|
||||||
|
/usr/bin/ssh $NAS_USER@$NAS_HOST "/usr/bin/sudo /sbin/shutdown -h -P now"
|
||||||
|
VALUE=$?
|
||||||
|
if [ $VALUE == 0 ]; then
|
||||||
|
/usr/bin/zenity --info --text "Shutdown command send to NAS device."
|
||||||
|
elif [ $VALUE == 255 ]; then
|
||||||
|
/usr/bin/zenity --info --icon-name=error --text "Shutdown command failed: No route to host"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
11
bin/steam.sh
Executable file
11
bin/steam.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#/usr/bin/steam &
|
||||||
|
#cd /home/hanez/.local/share/Steam/steamapps/common/Thimbleweed\ Park
|
||||||
|
#export LD_LIBRARY_PATH="./"
|
||||||
|
|
||||||
|
TP_PATH="/home/hanez/.local/share/Steam/steamapps/common/Thimbleweed\ Park"
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH=$LD_LIBRARY_APTH:$TP_PATH
|
||||||
|
|
||||||
|
/usr/bin/steam
|
||||||
Loading…
Add table
Add a link
Reference in a new issue