This repository contains a camera toggle script for Linux environments. The script provides a simple and convenient solution for toggling the camera on and off. It replicates a camera toggle functionality that is not commonly available on many laptops, making it a valuable tool for users who desire this feature.
To install the Toggle Camera script, you have two options:
-
Clone the repository to your local machine:
git clone https://github.com/Rds2151/Toggle-Camera.git
-
Navigate to the cloned directory:
cd Toggle-Camera
-
Run the Makefile to install the script automatically:
make install
This will copy the script file to the /etc/ folder and make it executable.
- Clone the repository to your local machine:
git clone https://github.com/Rds2151/Toggle-Camera.git
- Navigate to the cloned directory:
cd Toggle-Camera
- Copy the script file to the /etc/ folder:
sudo cp toggle_camera.sh /etc/
- Make the script file executable:
sudo chmod +x /etc/toggle_camera.sh
To use the Toggle Camera script, follow the steps below:
-
Open the keyboard shortcuts settings on your Linux system.
-
Add a new shortcut and set the functionality to be triggered by the F7 key.
-
Set the command to execute as:
/etc/toggle_camera.sh
-
Save the changes and close the settings.
Now, whenever you press the F7 key, the camera on your Linux system will be toggled on or off.
Contributions to the Toggle-Camera project are welcome. If you find any issues or have any suggestions for improvements, please open an issue or submit a pull request.