I have obvioulsy copied code and tweaked it for my purpose. I would like to give the credits to sources from where i have copied the code
- Demo scripts from pysimplegui github
- [stackoverflow link ] FIXME: add the link here.
Namekamui
is inpired from the kamui used by the uchihas in the Naruto shipuden. May be the lord fourth teleportation jutsu name can also be a best fit.
In short this can be a speed dail to your computer. Show kamui few places to go and it will help you teleport to those places. Save the shortcut and you can reach to the desitnation faster with the help of the Kamui. One can
- visit a website
- open a folder location
- open a file. Currently it is only capable to do only these things and in future its capabilities might be extended (fingers crossed). Contributions are welcome!
There are two steps
- Creating custom shortcut
- Adding details into options.json
For those who can execute python files by just cliking on them (similar thread) follow the below procedure.
- Create a shortcut icon for kamui.py
Set the defined short cut which you want. Unfortunatley in windows it always has to be CTRL+ALT+ your desired key- Thats it. You are all set.
For those who cannot execute python files by just clicking on the file .
- Create a .bat file which can run the python file. For example
python full/path/to/location/of/kamui.py
- Create a shortcut icon for the bat file.
Set the defined short cut which you want. Unfortunatley in windows it always has to be CTRL+ALT+ your desired key- Restart your system.
- Thats it. You are all set.
Create a custom shortcut which can execute the command python full/path/to/location/of/kamui.py
.
Creating a custom shortcut is similar in all the linux distros.
A reference link to ubuntu on how to create a custom shortcuts.
Kamui uses the default apps set in the operating system to open link. One need to edit the options.json file to add their paths/files/links. At the moment Kamui can
- open a web link.
- Can open a folder locaiton in file explorer.
- Can open a file.
This readme assumes that you are familiar with JSON format already. Below is an example options.json file content
//options.json file content
{
"YT": {
"type": "link",
"value": "www.youtube.com"
},
"google": {
"type": "link",
"value": "www.google.com"
},
"mypic":{
"type": "file",
"value": "C:/Users/user_1/Downloads/passportsizepic.png" // always remember to use forward slash
},
"users folder": {
"type": "file",
"value": "C:/Users/user_1/Downloads/" // always remember to use forward slash
}
}
Kamui can sometimes be slow and it is not because of a the script, its because of windows. Continue reading for detailed answer.
From the stackoverflow link
Before launching a program via its shortcut key, Windows first polls all currently running programs and asks "Is this your shortcut key?" If so it switches focus to that window rather than spinning up a new copy of the program.
so switch off the back ground process which are not really usefull for you. I really would not have my calculator running in background i mean what is the calculator app doing in the background ? 🤨.
- Hit windows button
- Enter
Background apps
- Switch off whatever is not needed for you.
- You shall now see improvement in its speed.
No this is not a problem for linux.
- During a Microsoft teams screen sharing session, Kamui is not being invoked if the screen that is being shared is your primary screen/monitor. The reason behind this is still being investigated.
- Kamui does not complain if file/location is not present.Instead it simply exits. There is a plan to implement this in the near future