GithubHelp home page GithubHelp logo

keychains's Introduction

==========
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.

keychains's People

Contributors

uzsolt avatar

Stargazers

Kefi Iris avatar Jason Brunelle avatar Cihan Demirci avatar Ilias Ktn avatar Egbert Verhage avatar Danila Kutkevich avatar Vedran Zakanj avatar Rich Young avatar James Tocknell avatar Sviatoslav Sydorenko (Святослав Сидоренко) avatar Milkii Brewster avatar

Watchers

 avatar

Forkers

vzakanj

keychains's Issues

Use menu instead of notifications

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

attempt to call method 'connect_signal' (a nil value)

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

not loaded properly

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')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.