Skip to content

Commit

Permalink
VLC Finesse
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanraposo committed Jul 18, 2024
1 parent d67daa5 commit 03d6e0e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
2. [Throughput](/markdown/throughput.md)
3. [ShotCut (Windows)](/markdown/shotcut-windows.md)
4. [ShotCut (Ubuntu)](/markdown/shotcut-ubuntu.md)
5. [cuditbe](/markdown/cuditbe.md)
5. [cuditbe](/markdown/cuditbe.md)
6. [VLC Finesse](/markdown/vlc-finesse.md)
41 changes: 41 additions & 0 deletions markdown/vlc-finesse.md
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
```

0 comments on commit 03d6e0e

Please sign in to comment.