diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2022-09-27 23:00:18 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2022-09-27 23:00:18 +0800 |
commit | 74d99560d8a0dfcbf066668bce26d44a93b87ba9 (patch) | |
tree | c4338bd366e1dda39ef4fa3a04fc3806c8a45c71 /misc | |
parent | 32d48e1c1578b6498e7bcb4476b02a5f937a4fd5 (diff) |
Add script for password with rofi
Diffstat (limited to 'misc')
-rw-r--r-- | misc/openbox/rc.xml | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/misc/openbox/rc.xml b/misc/openbox/rc.xml index 9874de1..bd1baa6 100644 --- a/misc/openbox/rc.xml +++ b/misc/openbox/rc.xml | |||
@@ -583,18 +583,7 @@ | |||
583 | </keybind> | 583 | </keybind> |
584 | <keybind key="W-p"> | 584 | <keybind key="W-p"> |
585 | <action name="Execute"> | 585 | <action name="Execute"> |
586 | <command> | 586 | <command>~/helper/tools/desktop/password-store.sh</command> |
587 | alacritty --hold -e bash -c ' | ||
588 | echo Use find or grep to search password | ||
589 | echo | ||
590 | while read -e target extra; do | ||
591 | if [[ "$target" == "" || "$target" == "find" || "$target" == "grep" ]]; then | ||
592 | pass $target $extra >/dev/tty | ||
593 | else | ||
594 | pass $target $extra && break; | ||
595 | fi | ||
596 | done | tee >(echo; sed 1d >/dev/tty) | head -1 | xsel -ib' | ||
597 | </command> | ||
598 | </action> | 587 | </action> |
599 | </keybind> | 588 | </keybind> |
600 | <!-- CLI Apps --> | 589 | <!-- CLI Apps --> |
@@ -622,7 +611,7 @@ | |||
622 | </keybind> | 611 | </keybind> |
623 | <keybind key="C-A-h"> | 612 | <keybind key="C-A-h"> |
624 | <action name="Execute"> | 613 | <action name="Execute"> |
625 | <command>alacritty --title htop -e htop</command> | 614 | <command>alacritty --title htop -o "window.startup_mode=Maximized" -e htop</command> |
626 | </action> | 615 | </action> |
627 | </keybind> | 616 | </keybind> |
628 | <keybind key="C-A-b"> | 617 | <keybind key="C-A-b"> |