uzsolt / keychains Goto Github PK
View Code? Open in Web Editor NEWawesome keychains
awesome keychains
========== Overview ========== A simple keychain module which allows to use keychains in awesome window manager. If you want similar functions to run you'll need like this: - tag change: you can bind e.g. WinKey+t to activite "tag change keychain" and after you can press the hotkey of tag to change - open urls in web browser: WinKey+u to activite "open url keychain" and after you can press your desired url's hotkey. ========== Install ========== Put keychains.lua to awesome's dir (~/.config/awesome or awesome's libdir). You can install on ArchLinux from AUR: https://aur.archlinux.org/packages/awesome-keychains-git/ ============= Basic usage ============= First you should load "keychains" module: require("keychains") You should initialize: keychains.init(globalkeys,your_options_see_docs) You don't need call 'root.keys(globalkeys)', keychains.init does. After init you can add your keychains: keychains.add({winkey},"c","Web pages","/icons/chromium.png",{ g = { func = function() open_url("https://mail.google.com/mail/u/0/#search/l%3Aunread") end, info = "Gmail - unread emails" }, a = { func = function() open_url("http://awesome.naquadah.org/") end, info = "awesome web page" }, w = { func = function() open_url("http://awesome.naquadah.org/wiki/Main_Page") end, info = "awesome wiki" } }) With this: if you press 'winkey+c', a notify will popup and you can press 'g' to open your gmail 'a' to open awesome web page 'w' to open awesome wiki After you've ended to insert your keychains you'll need run: keychains.start(5) The parameter '5' means that if you press 'winkey+c' and don't press anything, after 5 seconds keychain will exit. This parameter is optional, if the value is non-set or 0, no timeout. The keychains table can be a function which generates similar table as above. For more informations please check source code or you can use luadoc to generate documentation. License is GPLv2.
It would be nice to make keychains work like a menu with key hints in front of each entry instead of notifications. Then it would be possible to navigate in menu with keys as with keychains and use it as a menu in awesome
Hi!
Im trying to use keychains with awesome v3.4.15. I can require, and init keychains without errors.
When I add the keychains.start(3) function call, awesome does not start anymore and I get the following error messages:
/home/m/.config/awesome/keychains.lua:79: attempt to call method 'connect_signal' (a nil value)
E: awesome: main:525: couldn't find any rc file
xinit: connection to X server lost
Line 17 invokes:
attempt to call a nil value (global 'module')
Commenting it the module is loaded successfully but then calls to keychains.init
result in
attempt to index a boolean value (local 'keychains')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.