This commit is contained in:
alisceon 2026-01-28 18:24:25 +01:00
parent 7bedb4c8aa
commit aceec1d4b5
5 changed files with 2752 additions and 19 deletions

30
flake.lock generated
View file

@ -189,11 +189,11 @@
]
},
"locked": {
"lastModified": 1768949235,
"narHash": "sha256-TtjKgXyg1lMfh374w5uxutd6Vx2P/hU81aEhTxrO2cg=",
"lastModified": 1769580047,
"narHash": "sha256-tNqCP/+2+peAXXQ2V8RwsBkenlfWMERb+Uy6xmevyhM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "75ed713570ca17427119e7e204ab3590cc3bf2a5",
"rev": "366d78c2856de6ab3411c15c1cb4fb4c2bf5c826",
"type": "github"
},
"original": {
@ -221,11 +221,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1769170682,
"narHash": "sha256-oMmN1lVQU0F0W2k6OI3bgdzp2YOHWYUAw79qzDSjenU=",
"lastModified": 1769461804,
"narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c5296fdd05cfa2c187990dd909864da9658df755",
"rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d",
"type": "github"
},
"original": {
@ -243,11 +243,11 @@
]
},
"locked": {
"lastModified": 1769510829,
"narHash": "sha256-Zce7RVaNRKmLXC5iTceP4mqv8VvWOPX2UEwvYJ/BJlQ=",
"lastModified": 1769619830,
"narHash": "sha256-HSsga0w7sb0/6DTlL/++FsJzquZhfeB7VyQRlRipYNU=",
"owner": "nix-community",
"repo": "NUR",
"rev": "22087f41186c3a3ef09a60d5518f5c56f91a9814",
"rev": "3067f1733723fd959bd600157a16658764d1743e",
"type": "github"
},
"original": {
@ -264,11 +264,11 @@
]
},
"locked": {
"lastModified": 1769510829,
"narHash": "sha256-Zce7RVaNRKmLXC5iTceP4mqv8VvWOPX2UEwvYJ/BJlQ=",
"lastModified": 1769619830,
"narHash": "sha256-HSsga0w7sb0/6DTlL/++FsJzquZhfeB7VyQRlRipYNU=",
"owner": "nix-community",
"repo": "NUR",
"rev": "22087f41186c3a3ef09a60d5518f5c56f91a9814",
"rev": "3067f1733723fd959bd600157a16658764d1743e",
"type": "github"
},
"original": {
@ -333,11 +333,11 @@
"tinted-zed": "tinted-zed"
},
"locked": {
"lastModified": 1769471853,
"narHash": "sha256-aqs0HkV2T/7Syf/pYLRVSwfk23PPAyGJmWT43U5ZSF4=",
"lastModified": 1769610400,
"narHash": "sha256-R9LkpKVxLMr/KV9+N+uP4Jve+LdFsUXMPSS0zlgnWlg=",
"owner": "danth",
"repo": "stylix",
"rev": "805fa4262a21ada28cc918fa014359b9b35caea7",
"rev": "477c504322c7df6388d556aac82965ed49072190",
"type": "github"
},
"original": {

View file

@ -1,9 +1,5 @@
{ pkgs, config, hostName, lib, ... }: {
home.packages = with pkgs; [
signal-desktop
discord
];
stylix.enableReleaseChecks = false;
programs = {

View file

@ -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 = {

View file

@ -42,6 +42,7 @@
kitty # terminal emulator
dotool # tool to send keyboard/mouse input to wayland apps
mako # notification system developed by swaywm maintainer
espanso-wayland # text expander
];
}; # end sway
uwsm = { # responsible for creating xdg-portal and systemd insteraction for sway

2670
util/get_emoji.py Normal file

File diff suppressed because it is too large Load diff