Attempt to remove sensitive stuff from notifications
This commit is contained in:
parent
fbd94fb3f9
commit
385c0c55f9
2 changed files with 35 additions and 2 deletions
|
|
@ -14,6 +14,37 @@ let
|
|||
fi
|
||||
'';
|
||||
|
||||
makoInhibitorTest = pkgs.writeShellScript "mako-inhibitor-test" ''
|
||||
export PATH=${pkgs.lib.makeBinPath (with pkgs; [pkgs.libnotify])}
|
||||
notify-send "test"
|
||||
notify-send "bla $1"
|
||||
'';
|
||||
setMakoMode = pkgs.writeShellScript "set-mako-mode" ''
|
||||
export PATH=${pkgs.lib.makeBinPath (with pkgs; [pkgs.mako])}
|
||||
|
||||
if [[ "$2" = "toggle" ]]; then
|
||||
if makoctl mode | grep -Fxq "$1"; then
|
||||
action = "add"
|
||||
else
|
||||
action = "remove"
|
||||
fi
|
||||
else
|
||||
action = "$2"
|
||||
fi
|
||||
|
||||
case "$action" in
|
||||
add)
|
||||
makoctl mode -a "$1"
|
||||
;;
|
||||
remove)
|
||||
makoctl mode -d "$1"
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
'';
|
||||
|
||||
# for fine-grained control over spacing
|
||||
thinsp = " ";
|
||||
|
||||
|
|
@ -75,6 +106,7 @@ in
|
|||
activated = " ";
|
||||
deactivated = " ";
|
||||
};
|
||||
on-click = "${makoInhibitorTest} {}";
|
||||
};
|
||||
"custom/screencast" = {
|
||||
exec = pkgs.writeScript "screencast-monitor" /* python */ ''
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@ lib.mkIf config.jalr.gui.enable {
|
|||
enable = true;
|
||||
# FIXME: move to home manager
|
||||
extraPackages = with pkgs; [
|
||||
grim
|
||||
mako
|
||||
gammastep
|
||||
grim
|
||||
libnotify # notify-send
|
||||
mako
|
||||
slurp
|
||||
wl-clipboard
|
||||
xwayland
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue