add notifications

This commit is contained in:
Kopatz
2023-12-10 16:54:17 +01:00
parent e729f8c815
commit 62c493441d
2 changed files with 7 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ in
programs.hyprland = {
enable = true;
package = pkgs.unstable.hyprland;
};
security.pam.services = {
@@ -62,6 +63,7 @@ in
enable = true;
enableNvidiaPatches = true;
xwayland.enable = true;
package = pkgs.unstable.hyprland;
settings = {
#
# Please note not all available settings / options are set here.
@@ -283,6 +285,7 @@ in
extraConfig = let
wl-copy = "${pkgs.wl-clipboard}/bin/wl-copy";
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
notify = "${pkgs.libnotify}/bin/notify-send";
in ''
bind = $mainMod, A, submap, notes
@@ -295,6 +298,7 @@ in
bind = $mainMod, C, exec, ${wl-paste} | grep -C 15 -i -f - ~/Nextcloud/old_gdrive/fh/risikomanagement/crisam.txt | sed 's/[ \t]*$//' | ${wl-copy}
# trim
bind = $mainMod, T, exec, ${wl-paste} | sed 's/[ \t]*$//' | sed 's/^[ \t]*//' | ${wl-copy}
bind = $mainMod, N, exec, ${notify} "$(${wl-paste})"
# notes
bind = $mainMod, 1, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/1.txt | ${wl-copy}
bind = $mainMod, 2, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/2.txt | ${wl-copy}

View File

@@ -33,6 +33,7 @@ in
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
services.xserver.wacom.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
@@ -61,6 +62,8 @@ in
p7zip
qbittorrent
brightnessctl
wacomtablet
osu-lazer-bin
(wrapOBS {
plugins = with obs-studio-plugins; [
obs-pipewire-audio-capture