mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 19:28:26 +02:00
@@ -1,8 +1,9 @@
|
|||||||
# Clipboard history: cliphist watches the Wayland clipboard and stores every
|
# Clipboard history: cliphist watches the Wayland clipboard and stores every entry
|
||||||
# entry (text + images) so it can be recalled later via the `clipboard-menu`
|
{
|
||||||
# script (tofi). Uses the home-manager module so the watcher services are
|
pkgs,
|
||||||
# managed the same way as swaync/hypridle.
|
scripts,
|
||||||
{pkgs, ...}: {
|
...
|
||||||
|
}: {
|
||||||
home.packages = [pkgs.wl-clipboard];
|
home.packages = [pkgs.wl-clipboard];
|
||||||
|
|
||||||
services.cliphist = {
|
services.cliphist = {
|
||||||
@@ -23,4 +24,26 @@
|
|||||||
};
|
};
|
||||||
Install.WantedBy = ["default.target"];
|
Install.WantedBy = ["default.target"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.desktopEntries = {
|
||||||
|
clipboard-menu = {
|
||||||
|
name = "Clipboard History";
|
||||||
|
exec = "${scripts.clipboard-menu}/bin/clipboard-menu";
|
||||||
|
icon = "edit-paste-symbolic";
|
||||||
|
comment = "Pick a past clipboard entry";
|
||||||
|
categories = ["Utility"];
|
||||||
|
terminal = false;
|
||||||
|
settings.Keywords = "clipboard;history;paste;cliphist;";
|
||||||
|
};
|
||||||
|
|
||||||
|
clipboard-wipe = {
|
||||||
|
name = "Clear Clipboard History";
|
||||||
|
exec = "${pkgs.cliphist}/bin/cliphist wipe";
|
||||||
|
icon = "edit-clear-all-symbolic";
|
||||||
|
comment = "Delete all clipboard history entries";
|
||||||
|
categories = ["Utility"];
|
||||||
|
terminal = false;
|
||||||
|
settings.Keywords = "clipboard;history;clear;wipe;delete;cliphist;";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,26 +174,6 @@
|
|||||||
settings.Keywords = "airplane;flight;wifi;bluetooth;offline;";
|
settings.Keywords = "airplane;flight;wifi;bluetooth;offline;";
|
||||||
};
|
};
|
||||||
|
|
||||||
clipboard-menu = {
|
|
||||||
name = "Clipboard History";
|
|
||||||
exec = "${scripts.clipboard-menu}/bin/clipboard-menu";
|
|
||||||
icon = "edit-paste-symbolic";
|
|
||||||
comment = "Pick a past clipboard entry";
|
|
||||||
categories = ["Utility"];
|
|
||||||
terminal = false;
|
|
||||||
settings.Keywords = "clipboard;history;paste;cliphist;";
|
|
||||||
};
|
|
||||||
|
|
||||||
clipboard-wipe = {
|
|
||||||
name = "Clear Clipboard History";
|
|
||||||
exec = "${pkgs.cliphist}/bin/cliphist wipe";
|
|
||||||
icon = "edit-clear-all-symbolic";
|
|
||||||
comment = "Delete all clipboard history entries";
|
|
||||||
categories = ["Utility"];
|
|
||||||
terminal = false;
|
|
||||||
settings.Keywords = "clipboard;history;clear;wipe;delete;cliphist;";
|
|
||||||
};
|
|
||||||
|
|
||||||
emoji-picker = {
|
emoji-picker = {
|
||||||
name = "Emoji Picker";
|
name = "Emoji Picker";
|
||||||
exec = "${scripts.emoji-picker}/bin/emoji-picker";
|
exec = "${scripts.emoji-picker}/bin/emoji-picker";
|
||||||
|
|||||||
Reference in New Issue
Block a user