Fix formatting, etc
This commit is contained in:
parent
1f93e5f7c8
commit
8fcc8f9363
10
README.md
10
README.md
@ -7,16 +7,17 @@ Either only download `rofi-yubikey.sh`, or clone the entire repository (`git clo
|
|||||||
|
|
||||||
Once you have the script on your computer, move it to wherever you desire. I personally use, and recommend `~/.local/bin/rofi-yubikey.sh`.
|
Once you have the script on your computer, move it to wherever you desire. I personally use, and recommend `~/.local/bin/rofi-yubikey.sh`.
|
||||||
|
|
||||||
After that, simply execute the script. For example, if you placed the script in `~/.local/bin/rofi-yubikey.sh`, you could run any of the below commands:
|
After that, simply execute the script. For example, if you placed the script in `~/.local/bin/rofi-yubikey.sh`, you could run any of the following commands:
|
||||||
- `sh ~/.local/bin/rofi-yubikey.sh`
|
- `sh ~/.local/bin/rofi-yubikey.sh`
|
||||||
- `bash ~/.local/bin/rofi-yubikey.sh`
|
- `bash ~/.local/bin/rofi-yubikey.sh`
|
||||||
- `~/.local/bin/rofi-yubikey.sh`
|
- `~/.local/bin/rofi-yubikey.sh`
|
||||||
|
|
||||||
(only pick one!)
|
(only pick one!)
|
||||||
|
|
||||||
# Integration with Window Managers
|
# Integration with Window Managers
|
||||||
**Note: I will only be documenting XMonad, because I cannot guarantee the validity of my advice regarding different window managers.**
|
**Note: I will only be documenting XMonad, because I cannot guarantee the validity of my advice regarding different window managers.**
|
||||||
|
|
||||||
If you are using XMonad, you likely already know how to set custom keybinds. Simply make a keybind run the script.
|
If you are using XMonad, you likely already know how to set custom keybindings. Simply make a keybinding run the script.
|
||||||
However, if you are unfamiliar, this is how I do it:
|
However, if you are unfamiliar, this is how I do it:
|
||||||
|
|
||||||
1. Import `EZConfig`:
|
1. Import `EZConfig`:
|
||||||
@ -33,9 +34,10 @@ defaults = def {
|
|||||||
```
|
```
|
||||||
|
|
||||||
2.a. Make sure `defaults` is being used
|
2.a. Make sure `defaults` is being used
|
||||||
Add `defaults` to `main = ...`
|
|
||||||
For example:
|
|
||||||
|
|
||||||
|
Add `defaults` to `main = ...`
|
||||||
|
|
||||||
|
For example:
|
||||||
``` haskell
|
``` haskell
|
||||||
main :: IO()
|
main :: IO()
|
||||||
main = xmonad . <your-confif-here> $ defaults
|
main = xmonad . <your-confif-here> $ defaults
|
||||||
|
Loading…
Reference in New Issue
Block a user