This file contains hidden or 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
doPopupNotify_howItWorks = True # subprocess.Popen(['notify-send', "will be showed right top"]) # will be showed right top | |
def popupNotify(text): | |
subprocess.Popen(['notify-send', text]) # will be showed right top | |
def popupNotify_howItWorks(text): | |
global doPopupNotify_howItWorks | |
if doPopupNotify_howItWorks: | |
subprocess.Popen(['notify-send', text]) # will be showed right top | |
time.sleep(.2) | |
def beeps(duration=.1, freq=2000, loops=1): | |
# duration = .8 # second |
This file contains hidden or 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
{ | |
"type": "script", | |
"description": "run-run-lintalistAHK-all", | |
"store": {}, | |
"modes": [ | |
3 | |
], | |
"usageCount": 12, | |
"prompt": false, | |
"omitTrigger": false, |
This file contains hidden or 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
#!/bin/bash | |
# Start it for e.g. so: | |
#/‾‾‾ problems installing autohokey using this line | |
# clear ; cd /tmp ; wget https://raw.githubusercontent.com/sl5net/Lintalist4Linux/master/install.sh ./install.sh ; sudo chmod +wx ./install.sh ; ./install.sh ; rm ./install.sh ; | |
#/‾‾‾ no problems # chmod +rwx :)))) | |
# clear ; cd /tmp ; rm ./install.sh ; wget https://raw.githubusercontent.com/sl5net/Lintalist4Linux/master/install.sh ./install.sh ; sudo chmod 777 ./install.sh ; ./install.sh ; rm ./install.sh ; | |
#/‾‾‾ no problems bash: ./install.sh: Permission denied | |
# clear ; sudo wget https://raw.githubusercontent.com/sl5net/Lintalist4Linux/master/install.sh ~/Downloads/install.sh ; cd ~/Downloads ; sudo chmod 750 ./install.sh ; ./install.sh | |
#/‾‾‾ solution without sh-script |
This file contains hidden or 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
from pathlib import Path | |
import json | |
home = str(Path.home()) | |
path = home + "/.config/autokey/data/Sample Scripts/" | |
jsonFilePath = home + "/.config/autokey/data/Sample Scripts/.run-run-lintalistAHK-all.json" | |
file = open(jsonFilePath) | |
data = json.load(file) | |
for x in data['hotkey']: | |
data['hotkey'][x] = '<f11>' | |
print(data) |
This file contains hidden or 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
from pathlib import Path | |
import json | |
home = str(Path.home()) | |
path = home + "/.config/autokey/data/Sample Scripts/" | |
jsonFilePath = home + "/.config/autokey/data/Sample Scripts/.run-run-lintalistAHK-all.json" | |
# /home/administrator/.config/autokey/data/Sample Scripts/.run-run-lintalistAHK-all.json | |
# /home/administrator.config/autokey/data/Sample Scripts/.run-run-lintalistAHK-all.json' | |
# { | |
# "hotkey": { | |
# "modifiers": [], |
This file contains hidden or 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
from autopilot.input import Mouse | |
doOnlyPreview = True | |
doOnlyPreview = False | |
# winTitle = window.get_active_title() | |
# winClass = window.get_active_class() | |
# if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis': | |
# keyboard.send_keys("p") # ü | |
# quit() |
This file contains hidden or 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
from autopilot.input import Mouse | |
doOnlyPreview = True | |
doOnlyPreview = False | |
# winTitle = window.get_active_title() | |
# winClass = window.get_active_class() | |
# if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis': | |
# keyboard.send_keys("ü") # ü | |
# quit() |
This file contains hidden or 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
# https://askubuntu.com/a/149264/1017209 | |
# xrandr -q | grep " connected" | |
# bug report: | |
# there is sometimes a toggle. severel versions of this scripts run sometimes. | |
# for minutes i have tested this script with "1" and then with with "0.2". | |
# during this video it jumps back to "1" ?? whey? lets try kill autokey and start it again | |
# you could see. it dont toggle. if autokey is off. brightness stays. not toggle. | |
# ups. noooo. i doesent !!!!!!. my system automatically set brightness to 1???? whey?? |
This file contains hidden or 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
#!/bin/bash | |
echo "########## Please Exit AutoHotKey (right Click Taskbar on little Icon) then the installation will continue automatically. #########" | |
autokey-qt & sleep 3s ; killall -9 autokey-qt | |
sudo apt -y install git || exit | |
mkdir ~/ahk | |
mkdir ~/ahk/github | |
cd ~/ahk/github || exit | |
git clone https://github.com/lintalist/lintalist | |
cd ~/Downloads || exit | |
git clone https://github.com/sl5net/Lintalist4Linux |
This file contains hidden or 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
#!/bin/bash | |
echo "########## \n Please Exit AutohotKey (right Click Taskbar on little Icon) then the installation will continue automatically. \n#########" | |
autokey-qt & sleep 3s ; killall -9 autokey-qt | |
sudo apt -y install git | |
mkdir ~/ahk | |
mkdir ~/ahk/github | |
cd ~/ahk/github/ | |
git clone https://github.com/lintalist/lintalist | |
cd ~/Downloads/ | |
git clone https://github.com/sl5net/Lintalist4Linux |