Skip to main content
added 22 characters in body
Source Link
Vojtech Trefny
  • 20.7k
  • 6
  • 33
  • 59

I have wrote some commands in a shell script to run some ROS commands to launch my robot. I recently got a control pad where I can bind certain buttons to some keybinds like "ctrlCtrl + 1"1 etc... I want to be able to bind my shell script to a key bind as well, so that I can launch my robot with the push of a button. I

I added a shortcut to the keyboard settings on my ubuntuUbuntu 18.04 system. For the command section I put: "~/shell_scripts/robot_launch.sh"~/shell_scripts/robot_launch.sh The same command I run in my terminal to run the sh file. However, the shortcut does not work.

Is it possible to bind a key to a shell script?

I have wrote some commands in a shell script to run some ROS commands to launch my robot. I recently got a control pad where I can bind certain buttons to some keybinds like "ctrl + 1" etc... I want to be able to bind my shell script to a key bind as well, so that I can launch my robot with the push of a button. I added a shortcut to the keyboard settings on my ubuntu 18.04 system. For the command section I put: "~/shell_scripts/robot_launch.sh" The same command I run in my terminal to run the sh file. However, the shortcut does not work.

Is it possible to bind a key to a shell script?

I have wrote some commands in a shell script to run some ROS commands to launch my robot. I recently got a control pad where I can bind certain buttons to some keybinds like Ctrl + 1 etc... I want to be able to bind my shell script to a key bind as well, so that I can launch my robot with the push of a button.

I added a shortcut to the keyboard settings on my Ubuntu 18.04 system. For the command section I put: ~/shell_scripts/robot_launch.sh The same command I run in my terminal to run the sh file. However, the shortcut does not work.

Is it possible to bind a key to a shell script?

Source Link

Binding a .sh file (shell script) to a set of keys

I have wrote some commands in a shell script to run some ROS commands to launch my robot. I recently got a control pad where I can bind certain buttons to some keybinds like "ctrl + 1" etc... I want to be able to bind my shell script to a key bind as well, so that I can launch my robot with the push of a button. I added a shortcut to the keyboard settings on my ubuntu 18.04 system. For the command section I put: "~/shell_scripts/robot_launch.sh" The same command I run in my terminal to run the sh file. However, the shortcut does not work.

Is it possible to bind a key to a shell script?