Sapiens Search

Showing posts with label command. Show all posts
Showing posts with label command. Show all posts

How to run external programs/commands/functions in Sublime Text 2?

1-Preferences->Key Bindings - User
2- Override [`,`] to:
[
{ "keys": ["<Your shortucut>"], "command": "exec", "args": { "cmd"["<Path to your command>"]} }
]


Where <Your shortcut> could be f1, ctrl+shift+f1, etc. and <Path to your command> echo, /home/garou/scripts/my_script.py, ls, etc.

Example


    [
        { "keys": ["f1"], "command": "exec", "args": { "cmd": ["/media/data/Scripts/myScript"]} },
    ]


Arcam Sapientia

This virtually could run any system command.

How to change the system volume by terminal on Linux?

amixer set Master <volume>

Example

amixer set Master 20

Arcam Sapientia

See the manual to another helpfull parameters
$man amixer