Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elv13 prompt hook v2 #483

Merged
merged 3 commits into from Nov 8, 2015
Merged

Commits on Nov 8, 2015

  1. prompt: Add the ability to add new shortcuts to awful.prompt

    Example:
    
    awful.prompt.run({ prompt = "Run: ", hooks = {
        {{         },"Return",function(command)
             local result = awful.util.spawn(command)
             mypromptbox[mouse.screen].widget:set_text(type(result) == "string" and result or "")
             return true
        end},
        {{"Mod1"   },"Return",function(command)
             local result = awful.util.spawn(command,{sticky=true})
             mypromptbox[mouse.screen].widget:set_text(type(result) == "string" and result or "")
             return true
        end},
        {{"Shift"  },"Return",function(command)
             local result = awful.util.spawn(command,{ontop=true,floating=true})
             mypromptbox[mouse.screen].widget:set_text(type(result) == "string" and result or "")
             return true
        end}
        }
    },...)
    Elv13 authored and blueyed committed Nov 8, 2015
    Copy the full SHA
    ce2d31c View commit details
    Browse the repository at this point in the history
  2. Add awful.widget.prompt.spawn_and_handle_error helper

    This is meant to avoid boilerplate code when creating prompt hooks.
    blueyed committed Nov 8, 2015
    Copy the full SHA
    b3c7efd View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    ba0d8e3 View commit details
    Browse the repository at this point in the history