espanso!
This commit is contained in:
parent
7bedb4c8aa
commit
aceec1d4b5
5 changed files with 2752 additions and 19 deletions
|
|
@ -1,9 +1,5 @@
|
|||
{ pkgs, config, hostName, lib, ... }: {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
signal-desktop
|
||||
discord
|
||||
];
|
||||
stylix.enableReleaseChecks = false;
|
||||
|
||||
programs = {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
notify = "${pkgs.libnotify}/bin/notify-send";
|
||||
nag = "${pkgs.sway}/bin/swaynag --edge bottom";
|
||||
dmenu = "${pkgs.rofi-unwrapped}/bin/rofi";
|
||||
espanso = "${pkgs.espanso-wayland}/bin/espanso cmd";
|
||||
|
||||
# keybinds
|
||||
key_mod = "Mod4";
|
||||
|
|
@ -206,6 +207,8 @@
|
|||
# Apps
|
||||
"${key_mod}+Return" = ''exec "${uwsm} ${term}"'';
|
||||
"${key_mod}+d" = ''exec "${uwsm} ${dmenu} -show drun"'';
|
||||
"${key_mod}+e" = ''exec "${uwsm} ${espanso} search"'';
|
||||
"${key_mod}+Shift+e" = ''exec "${uwsm} ${espanso} toggle"'';
|
||||
|
||||
|
||||
# Screenshot region
|
||||
|
|
@ -242,6 +245,69 @@
|
|||
};
|
||||
};
|
||||
services = {
|
||||
espanso = {
|
||||
enable = true;
|
||||
waylandSupport = true;
|
||||
configs = {
|
||||
default = {
|
||||
toggle_key = "OFF";
|
||||
preserve_clipboard = true;
|
||||
show_notifications = true;
|
||||
};
|
||||
};
|
||||
matches = {
|
||||
base = {
|
||||
matches = [
|
||||
{
|
||||
trigger = ":date";
|
||||
replace = "{{currentdate}}";
|
||||
}
|
||||
{
|
||||
trigger = ":time";
|
||||
replace = "{{currenttime}}";
|
||||
}
|
||||
{
|
||||
trigger = ":ip";
|
||||
replace = "{{pubip}}";
|
||||
}
|
||||
{
|
||||
regex = ":em(?P<emname>\\S+) ";
|
||||
replace = "{{emoji}}";
|
||||
vars = [
|
||||
{
|
||||
name = "emoji";
|
||||
type = "shell";
|
||||
params = {
|
||||
cmd = "${pkgs.python3}/bin/python3 /home/alisceon/.nixos_config/util/get_emoji.py $ESPANSO_EMNAME";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
global_vars = {
|
||||
global_vars = [
|
||||
{
|
||||
name = "currentdate";
|
||||
type = "date";
|
||||
params = {format = "%Y-%m-%d";};
|
||||
}
|
||||
{
|
||||
name = "currenttime";
|
||||
type = "date";
|
||||
params = {format = "%R";};
|
||||
}
|
||||
{
|
||||
name = "pubip";
|
||||
type = "shell";
|
||||
params = {
|
||||
cmd = "curl -s https://ifconfig.me";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
mako = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue