4 Commits
Author SHA1 Message Date
harish2704 8db3c58c11 Fix 2022-07-06 16:46:36 +05:30
harish2704 45e2207ecd Move from slow zx to python 2022-07-06 13:48:06 +05:30
harish2704 bac1d356f5 Fix filename 2022-07-06 12:45:32 +05:30
harish2704 e043d15ecd Tool to switch ibus engine on wayland 2022-07-06 12:41:37 +05:30
4 changed files with 22 additions and 6 deletions
@@ -3,7 +3,7 @@ export HISTSIZE=10000
export HISTFILE=$PWD/.bash_history
if [[ $1 == '-n' ]]; then
xdg-terminal &
konsole &
else
bash
fi
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env python
import subprocess
import json
def ex(cmd):
return subprocess.getoutput(cmd)
engineList = ex('ibus read-config | grep preload-engines | sed "s/preload-engines://g; s/\'/\\"/g"')
engineList = json.loads(engineList)
currentEngine = ex('ibus engine')
currentEngineIdx = engineList.index(currentEngine);
nextEngineIdx = currentEngineIdx+1;
if nextEngineIdx == len(engineList):
nextEngineIdx=0
ex('ibus engine %s' % engineList[nextEngineIdx])
@@ -1,3 +1,4 @@
./bin/chromium
./bin/hari-tools.sh
./bin/bash-session
./bin/ibus-next-engine.py
-5
View File
@@ -1,5 +0,0 @@
addSsh(){
mkdir -p ~/.ssh && read rsa && echo "$rsa" >> ~/.ssh/authorized_keys
}