bash - using multiple commands when creating keyboard shortcut via gui -


i trying run multiple bash scripts keyboard command. can explain why dont both run? each script runs if make each 1 own shortcut,although first script strange.

/bin/bash /home/king/scripts/misc/my_keyboard off ; /bin/bash /home/king/scripts/rotate_desktop left  

could have background redirection of onboard in first script? never getting second script because of that?

script: my_keyboard

#!/bin/bash    case "$1" in     on)     export display=:0         xinput set-prop 14 "device enabled" 1     killall -q onboard      ;;     off)     onboard &> /dev/null 2>&1     export display=:0     xinput set-prop 14 "device enabled" 0     ;; esac 


Comments