mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
Alacritty: StartupNotify workaround
This commit is contained in:
parent
3997195644
commit
2a4b3bbb79
1 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
config = (pkgs.formats.toml { }).generate "alacritty.toml"
|
||||
|
@ -21,8 +21,18 @@ let
|
|||
import = [ "${pkgs.alacritty-theme}/tango_dark.toml" ];
|
||||
};
|
||||
|
||||
# Alacritty seems to not communicate well with gnome-shell. Quick fix:
|
||||
notify-fix = pkgs.runCommand "alacritty-fix" { } ''
|
||||
dt=share/applications/Alacritty.desktop
|
||||
install -D ${pkgs.alacritty}/$dt $out/$dt
|
||||
sed -i 's/^StartupNotify=.*//' $out/$dt
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
environment.etc."xdg/alacritty.toml".source = config;
|
||||
environment.systemPackages = [ pkgs.alacritty ];
|
||||
environment.systemPackages = [
|
||||
(lib.hiPrio notify-fix)
|
||||
pkgs.alacritty
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue