menu: add silent command to clear clipboard
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
f65e7475e5
commit
adb08d1aea
3 changed files with 4 additions and 1 deletions
|
@ -12,8 +12,9 @@ in {
|
||||||
calculator.show = mkOption {default = "";};
|
calculator.show = mkOption {default = "";};
|
||||||
|
|
||||||
clipboard = {
|
clipboard = {
|
||||||
clear = mkOption {default = "";};
|
|
||||||
show = mkOption {default = "";};
|
show = mkOption {default = "";};
|
||||||
|
clear = mkOption {default = "";};
|
||||||
|
clear-silent = mkOption {default = "";};
|
||||||
};
|
};
|
||||||
|
|
||||||
dmenu.show = mkOption {default = "";};
|
dmenu.show = mkOption {default = "";};
|
||||||
|
|
|
@ -31,6 +31,7 @@ in {
|
||||||
clipboard = {
|
clipboard = {
|
||||||
show = "${quit} || ${rofi} -show clipboard -show-icons";
|
show = "${quit} || ${rofi} -show clipboard -show-icons";
|
||||||
clear = "${cliphist} wipe && ${notify-send} '> cliphist' 'Clipboard cleared' --urgency low";
|
clear = "${cliphist} wipe && ${notify-send} '> cliphist' 'Clipboard cleared' --urgency low";
|
||||||
|
clear-silent = "${cliphist} wipe";
|
||||||
};
|
};
|
||||||
|
|
||||||
dmenu.show = "${quit} || ${rofi} -dmenu";
|
dmenu.show = "${quit} || ${rofi} -dmenu";
|
||||||
|
|
|
@ -26,6 +26,7 @@ in {
|
||||||
clipboard = {
|
clipboard = {
|
||||||
show = "${walker} --modules clipboard";
|
show = "${walker} --modules clipboard";
|
||||||
clear = "${rm} ~/.cache/walker/clipboard.gob && ${notify-send} '> walker' 'Clipboard cleared' --urgency low";
|
clear = "${rm} ~/.cache/walker/clipboard.gob && ${notify-send} '> walker' 'Clipboard cleared' --urgency low";
|
||||||
|
clear-silent = "${rm} ~/.cache/walker/clipboard.gob";
|
||||||
};
|
};
|
||||||
|
|
||||||
dmenu.show = "${walker} --modules dmenu";
|
dmenu.show = "${walker} --modules dmenu";
|
||||||
|
|
Loading…
Add table
Reference in a new issue