Save a name.desktop file in ~/.local/share/applications
Here's a sample .desktop file:
[Desktop Entry]
Name=name of the application
Comment=whatever description
Exec=command to run
Icon=icon path
Terminal=false
Type=Application
Save a name.desktop file in ~/.local/share/applications
Here's a sample .desktop file:
[Desktop Entry]
Name=name of the application
Comment=whatever description
Exec=command to run
Icon=icon path
Terminal=false
Type=Application
| import pyautogui | |
| import keyboard | |
| import sys | |
| # Change this to whatever shortcut you want | |
| start_shortcut = 'alt+x' | |
| stop_shortcut = 'esc' | |
| def info(): | |
| print(f'Press {start_shortcut} to start') |
| Section "InputClass" | |
| Identifier "Touchpad" # required | |
| MatchIsTouchpad "yes" # required | |
| Driver "synaptics" # required | |
| Option "MinSpeed" "0.5" | |
| Option "MaxSpeed" "1.0" | |
| Option "AccelFactor" "0.075" | |
| Option "TapButton1" "1" | |
| Option "TapButton2" "2" # multitouch | |
| Option "TapButton3" "3" # multitouch |
| import os | |
| import subprocess | |
| import pytube | |
| from time import sleep | |
| import sys | |
| def show_progress_bar(stream, chunk, file_handle, bytes_remaining): | |
| """ | |
| Shows progress bar | |
| """ |