.
any character except newline
\w \d \s
word, digit, whitespace
\W \D \S
not word, digit, whitespace
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 | |
""" |
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 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') |
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