2019-02-05 02:29:08 +01:00
|
|
|
# Run Shell
|
|
|
|
|
2019-03-30 23:29:01 +01:00
|
|
|
Run prompt which is put inside a widget:
|
2019-02-05 02:29:08 +01:00
|
|
|
|
2019-03-31 04:37:20 +02:00
|
|
|
[Demo](https://imgur.com/ohjAuCQ.mp4)
|
2019-02-05 02:33:17 +01:00
|
|
|
|
2019-02-05 02:37:48 +01:00
|
|
|
## Installation
|
2019-02-05 02:33:17 +01:00
|
|
|
|
|
|
|
1. Clone this repo under **~/.config/awesome/**:
|
|
|
|
|
|
|
|
```bash
|
2020-04-25 17:05:02 +02:00
|
|
|
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/awesome-wm-widgets
|
2019-02-05 02:33:17 +01:00
|
|
|
```
|
|
|
|
|
2019-03-30 23:29:01 +01:00
|
|
|
1. Require widget at the beginning of **rc.lua**:
|
2019-02-05 02:33:17 +01:00
|
|
|
|
|
|
|
```lua
|
2020-04-25 17:01:38 +02:00
|
|
|
local run_shell = require("awesome-wm-widgets.run-shell.run-shell")
|
2019-02-05 02:33:17 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
1. Use it (don't forget to comment out the default prompt):
|
|
|
|
|
|
|
|
```lua
|
|
|
|
awful.key({modkey}, "r", function () run_shell.launch() end),
|
2019-03-30 23:29:42 +01:00
|
|
|
|