Add option to load keyboard shortcut.

This commit is contained in:
Llewellyn van der Merwe 2023-01-09 03:08:19 +02:00
parent feb963f623
commit 18a2dcd919
Signed by: Llewellyn
GPG Key ID: A9201372263741E7

View File

@ -2,7 +2,7 @@
This script helps place my face without a video frame on the desktop so when I make tutorials I can be part of the recording.
> Will only work on an enviourment that is setup like mine.
> Will only work on an environment that is setup like mine.
---
# Install
@ -11,6 +11,20 @@ $ sudo curl -L "https://git.vdm.dev/api/v1/repos/llewellyn/frameless/raw/src/fra
$ sudo chmod +x /usr/local/bin/frameless
```
## Setup keyboard shortcut
To set up a keyboard shortcut for a custom Bash script in Ubuntu 22.04.1 LTS with the GNOME desktop environment, follow these steps:
1. Open the "Keyboard" settings app from the system menu.
2. Click on the "Shortcuts" tab and then click the "Custom Shortcuts" tab.
3. Click the "+" button to add a new keyboard shortcut.
4. In the "Name" field, enter a descriptive name like **Frameless Video** for the shortcut.
5. In the "Command" field, enter the path to the Bash script you want to run. `nohup frameless &` or `nohup /usr/local/bin/frameless &`
6. In the "Shortcut" field, press the key combination that you want to use as the keyboard shortcut.
7. Click the "Add" button to save the new shortcut.
You should now be able to use the keyboard shortcut you defined to run the Bash script. If you want to change the keyboard shortcut for an existing custom shortcut, click on the shortcut in the list, then press the new key combination in the "Shortcut" field and click "Apply".
---
## Uninstall
```shell