/README.md

https://github.com/balsoft/lambda-launcher · Markdown · 83 lines · 61 code · 22 blank · 0 comment · 0 complexity · af781bd60e0bc965da8d8f2b931ef8cd MD5 · raw file

  1. # λauncher [![Build Status](https://travis-ci.com/balsoft/lambda-launcher.svg?branch=master)](https://travis-ci.com/balsoft/lambda-launcher)
  2. λauncher is a GTK launcher application built with Haskell and
  3. gtk-gi-declarative.
  4. ## Screenshots
  5. ![Search for "hello world" on duckduckgo](./screenshots/adwaita_hello_world.png)
  6. ![All results for "firefox" (command launcher, calculator, window switcher)](./screenshots/black_high_contrast_firefox.png)
  7. ## Features
  8. - Asynchronous plugin result loading
  9. - No runtime settings (not a bug, but a feature)
  10. - 5M memory on coldstart, 20M memory when all plugins are loaded
  11. - Very quick startup (compared to some other graphical launchers
  12. ## Configuration
  13. All configuration at this moment is done by editing source files. This will be changed in the future to XMonad-style configuration.
  14. ### Plugins
  15. To configure the plugins, edit `plugins :: [Plugin]` in `src/Main.hs`. You should be able to just edit the list of plugins to disable the unneeded ones. All of plugins are enabled by default.
  16. #### Triggers
  17. Apply `trigger` to a plugin to make it the only plugin shown when query starts with a trigger, and apply `triggerStrict` to show a plugin only when it's triggered.
  18. ### Window
  19. Edit `configuration` top-level binding in `src/Main.hs`. The `Configuration` type constructor's field names should be self-explanatory.
  20. ## Building
  21. ### Nix
  22. `nix build` should do everything for you.
  23. ### Cabal
  24. `cabal new-run` works for me. If it doesn't, add an issue!
  25. ## Current list of plugins
  26. | Name | Trigger | Description | Required dependencies | Optional dependencies |
  27. |-----------------|---------|-----------------------------------------------------|-----------------------|-----------------------|
  28. | Command | $ | run shell commands, with suggestions | | |
  29. | Duckduckgo | ddg | search the web with DDG instant answers | | |
  30. | Emacs | em | open emacs in a directory from ~/projects | emacs | nix-shell |
  31. | Files | file | list and open files | | |
  32. | Google | g | search some text through google's web interface | | |
  33. | GoogleTranslate | tr | translate words and phrases with Google's api | | |
  34. | Kill | kill | kill other processes | pkill, ps | |
  35. | Pass | pass | copy passwords from password store to the clipboard | pass | |
  36. | Qalc | q | use libqalculate to evaluate expressions | qalc | |
  37. | Stackoverflow | so | search for questions with similar titles | | |
  38. | Sway | sw | list and focus windows on sway | swaymsg | |
  39. | Wiki | wiki | search english wikipedia | | |
  40. | Wmctrl | win | list and focus windows on X11 | wmctrl | |
  41. If a plugin doesn't work, make sure you've installed the corresponding dependencies!
  42. ## Extending
  43. - Create `src/Plugins/YourPlugin.hs` that exports
  44. `yourPlugin :: String -> IO [Types.Result]`
  45. - Add the corresponding import to `src/Plugins/Main.hs`
  46. - Don't forget to add `yourPlugin` to `plugins` list
  47. - Send a PR!
  48. ## Code of conduct
  49. All contributions are welcome! There are no restrictions.
  50. ## License
  51. This work is in public domain. By sending Pull Requests you agree that
  52. all of your work assosiated with this software is in public domain as
  53. well.
  54. This only applies to the code contained in this repository, to see
  55. licenses of it's dependencies visit their respective pages.
  56. ## WARRANTY
  57. THIS SOFTWARE COMES "AS IS", WITHOUT ANY WARRANTY (IMPLIED OR
  58. OTHERWISE) TO THE EXTENT PERMITTED BY THE APPLICABLE LAWS. IT MAY
  59. CAUSE DATA CORRUPTION OR LOSS. BY RUNNING THIS SOFTWARE YOU AGREE
  60. THAT IT'S AUTHOR(S) ARE NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY
  61. THIS SOFTWARE.