mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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
|
let
|
||||||
config = (pkgs.formats.toml { }).generate "alacritty.toml"
|
config = (pkgs.formats.toml { }).generate "alacritty.toml"
|
||||||
|
@ -21,8 +21,18 @@ let
|
||||||
import = [ "${pkgs.alacritty-theme}/tango_dark.toml" ];
|
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
|
in
|
||||||
{
|
{
|
||||||
environment.etc."xdg/alacritty.toml".source = config;
|
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