Skip to content

Instantly share code, notes, and snippets.

View caspx's full-sized avatar
:octocat:
Omri Caspi

Omri Caspi caspx

:octocat:
Omri Caspi
View GitHub Profile
@caspx
caspx / change_str_case.py
Last active November 14, 2023 19:57
Autokey script for changing the case style of the selected text to one of the following case styles: camelcase, capitalcase, constcase, lowercase, pascalcase, pathcase, sentencecase, snakecase, spinalcase, titlecase, trimcase, uppercase, alphanumcase. ("stringcase" is required)
import stringcase
# very simple logger
# def log(line):
# system.exec_command('echo "{}" >> /tmp/autokey.log'.format(line))
# getting selected text
try:
phrase = clipboard.get_selection()
@caspx
caspx / search_phrases.py
Last active July 8, 2020 15:15
This is an autokey script which allows you to search your autokey phrases and scripts
import os
from os import walk
from os.path import join
# very simple logger
def log(line):
system.exec_command('echo "{}" >> /tmp/autokey.log'.format(line))