-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d67daa5
commit 03d6e0e
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## VLC Finesse | ||
|
||
Auto enable VLC extensions in the View menu. | ||
|
||
### Locate the VLC binary: | ||
|
||
```bash | ||
which vlc | ||
``` | ||
|
||
This will give you the path to the VLC binary, typically something like /usr/bin/vlc. | ||
|
||
### Rename the original VLC binary: | ||
|
||
```bash | ||
sudo mv /usr/bin/vlc /usr/bin/vlc-original | ||
``` | ||
|
||
### Create a wrapper script to replace the VLC binary: | ||
|
||
```bash | ||
sudo nano /usr/bin/vlc | ||
``` | ||
|
||
### Add the following lines to the script: | ||
|
||
```bash | ||
#!/bin/bash | ||
/usr/bin/vlc-original "$@" & | ||
sleep 2 # Adjust the sleep duration if VLC takes longer to start | ||
xdotool key Alt+i | ||
xdotool key Up | ||
# Add another `xdotool key Up` depending on the extension's position in the View menu | ||
xdotool key Return | ||
``` | ||
|
||
### Save the script and make it executable: | ||
|
||
```bash | ||
sudo chmod +x /usr/bin/vlc | ||
``` |