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 | |
sudo apt -y install autokey-qt | |
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 |
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 | |
#quit() | |
for i in range(50): | |
winTitle = window.get_active_title() | |
winClass = window.get_active_class() | |
if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis': |
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 | |
winTitle = window.get_active_title() | |
winClass = window.get_active_class() | |
if winTitle != "0 A.D.": # or winClass != 'pyrogenesis.pyrogenesis': | |
keyboard.send_keys("ü") # ü | |
quit() | |
# üüü über ioüopü opü opü püpüpüpü püpüpü üüüüp ppppü püpüpüpüpüpüpüpüp ü | |
# üüüüüü |
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
import time | |
import subprocess | |
# first_title = window.get_active_title() | |
first_class = window.get_active_class() | |
# keyboard.send_keys("\n#1 first_class='%s'" % first_class) | |
#1 first_class='autokey-gtk.Autokey-gtkinitialContent' | |
# hi world |
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
import time | |
import subprocess | |
# keyboard.send_keys("\n#3") | |
cOld = "" | |
cNew = "" | |
# keyboard.send_keys("\n#5") | |
# cOld = clipboard.get_selection() | |
cOld = clipboard.get_clipboard() # found here: https://github.com/autokey/autokey/wiki/Scripting#create-new-abbreviation | |
# keyboard.send_keys("\n#9") |
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 | |
# [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q | |
#maybe this script hangs: | |
#https://unix.stackexchange.com/questions/21199/why-is-df-hanging | |
clear | |
clear | |
toggle=1 |
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
//pacman -S go | |
//go get -u golang.org/x/sys/unix | |
package main | |
import ( | |
"fmt" | |
syscall "golang.org/x/sys/unix" | |
) |
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 | |
# [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q | |
#maybe this script hangs: | |
#https://unix.stackexchange.com/questions/21199/why-is-df-hanging | |
clear |
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
;/¯¯¯¯ configStr2minify_configFile ¯¯ 190111201847 ¯¯ 11.01.2019 20:18:47 ¯¯\ | |
configStr2minify_configFile(configIncAhkAddress := "\config\config.inc.ahk" | |
, configMinifyIncAhkAddress := "\config.minify.inc.ahk" ){ | |
; needs start with: g_config (12.01.2019 10:57, 19-01-12_10-57) | |
configIncAhkAddress := A_ScriptDir configIncAhkAddress | |
configMinifyDIR := A_ScriptDir "\inc_ahk\minify\" | |
configMinifyIncAhkAddress := configMinifyDIR configMinifyIncAhkAddress | |
; call it like (11.01.2019 20:19): | |
useItLike = |