mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-26 18:44:52 +00:00
fix to aerc running with kitty instead of wezterm
This commit is contained in:
parent
b691895e05
commit
11625adbe8
@ -30,6 +30,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
terminal = "${pkgs.wezterm}/bin/wezterm";
|
terminal = "${pkgs.wezterm}/bin/wezterm";
|
||||||
|
terminalLaunchCommand = "${config.terminal} start --";
|
||||||
|
|
||||||
home-manager.users.${config.user} = {
|
home-manager.users.${config.user} = {
|
||||||
|
|
||||||
|
@ -169,7 +169,8 @@
|
|||||||
filters = {
|
filters = {
|
||||||
"text/plain" = "${pkgs.aerc}/libexec/aerc/filters/colorize";
|
"text/plain" = "${pkgs.aerc}/libexec/aerc/filters/colorize";
|
||||||
"text/calendar" = "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/libexec/aerc/filters/calendar";
|
"text/calendar" = "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/libexec/aerc/filters/calendar";
|
||||||
"text/html" = "${pkgs.aerc}/libexec/aerc/filters/html | ${pkgs.aerc}/libexec/aerc/filters/colorize"; # Requires w3m, dante
|
"text/html" =
|
||||||
|
"${pkgs.aerc}/libexec/aerc/filters/html | ${pkgs.aerc}/libexec/aerc/filters/colorize"; # Requires w3m, dante
|
||||||
# "text/*" =
|
# "text/*" =
|
||||||
# ''${pkgs.bat}/bin/bat -fP --file-name="$AERC_FILENAME "'';
|
# ''${pkgs.bat}/bin/bat -fP --file-name="$AERC_FILENAME "'';
|
||||||
"message/delivery-status" = "${pkgs.aerc}/libexec/aerc/filters/colorize";
|
"message/delivery-status" = "${pkgs.aerc}/libexec/aerc/filters/colorize";
|
||||||
@ -192,26 +193,23 @@
|
|||||||
|
|
||||||
xdg.desktopEntries.aerc = lib.mkIf (pkgs.stdenv.isLinux && config.gui.enable) {
|
xdg.desktopEntries.aerc = lib.mkIf (pkgs.stdenv.isLinux && config.gui.enable) {
|
||||||
name = "aerc";
|
name = "aerc";
|
||||||
exec = "${config.terminal} aerc %u";
|
exec = "${config.terminalLaunchCommand} aerc %u";
|
||||||
};
|
};
|
||||||
xsession.windowManager.i3.config.keybindings = lib.mkIf pkgs.stdenv.isLinux {
|
xsession.windowManager.i3.config.keybindings = lib.mkIf pkgs.stdenv.isLinux {
|
||||||
"${
|
"${config.home-manager.users.${config.user}.xsession.windowManager.i3.config.modifier}+Shift+e" =
|
||||||
config.home-manager.users.${config.user}.xsession.windowManager.i3.config.modifier
|
"exec ${
|
||||||
}+Shift+e" = "exec ${
|
# Don't name the script `aerc` or it will affect grep
|
||||||
# Don't name the script `aerc` or it will affect grep
|
builtins.toString (
|
||||||
builtins.toString (
|
pkgs.writeShellScript "focus-mail.sh" ''
|
||||||
pkgs.writeShellScript "focus-mail.sh" ''
|
count=$(ps aux | grep -c aerc)
|
||||||
count=$(ps aux | grep -c aerc)
|
if [ "$count" -eq 1 ]; then
|
||||||
if [ "$count" -eq 1 ]; then
|
i3-msg "exec --no-startup-id ${config.terminal} start --class aerc -- aerc"
|
||||||
i3-msg "exec --no-startup-id ${
|
sleep 0.25
|
||||||
config.home-manager.users.${config.user}.programs.rofi.terminal
|
fi
|
||||||
} --class aerc aerc"
|
i3-msg "[class=aerc] focus"
|
||||||
sleep 0.25
|
''
|
||||||
fi
|
)
|
||||||
i3-msg "[class=aerc] focus"
|
}";
|
||||||
''
|
|
||||||
)
|
|
||||||
}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.fish.shellAbbrs = {
|
programs.fish.shellAbbrs = {
|
||||||
|
@ -51,6 +51,11 @@
|
|||||||
description = "Path to executable for terminal emulator program.";
|
description = "Path to executable for terminal emulator program.";
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
terminalLaunchCommand = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.str;
|
||||||
|
description = "Command for using the terminal to launch a new window with a program.";
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
wallpaper = lib.mkOption {
|
wallpaper = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
description = "Wallpaper background image file";
|
description = "Wallpaper background image file";
|
||||||
|
Loading…
Reference in New Issue
Block a user