mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 15:21:09 +00:00
Compare commits
4
Commits
89a4e7bbab
...
8db3c58c11
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8db3c58c11 | ||
|
|
45e2207ecd | ||
|
|
bac1d356f5 | ||
|
|
e043d15ecd |
@@ -3,7 +3,7 @@ export HISTSIZE=10000
|
||||
export HISTFILE=$PWD/.bash_history
|
||||
|
||||
if [[ $1 == '-n' ]]; then
|
||||
xdg-terminal &
|
||||
konsole &
|
||||
else
|
||||
bash
|
||||
fi
|
||||
|
||||
+20
@@ -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
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
|
||||
addSsh(){
|
||||
mkdir -p ~/.ssh && read rsa && echo "$rsa" >> ~/.ssh/authorized_keys
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user