Some fixes for helix
This commit is contained in:
parent
8e68fdc41f
commit
9bf4aab609
@ -41,8 +41,8 @@
|
|||||||
"application/vnd.oasis.opendocument.text" = text_processor;
|
"application/vnd.oasis.opendocument.text" = text_processor;
|
||||||
"text/csv" = spreadsheet;
|
"text/csv" = spreadsheet;
|
||||||
"application/vnd.oasis.opendocument.spreadsheet" = spreadsheet;
|
"application/vnd.oasis.opendocument.spreadsheet" = spreadsheet;
|
||||||
"text/plain" =
|
"text/plain" = editor;
|
||||||
editor; # This actually makes Emacs an editor for everything... XDG is wierd
|
"text/*" = editor;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,9 +1,40 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
defaultApplications.editor = {
|
defaultApplications.editor = {
|
||||||
cmd = "${pkgs.helix}/bin/helix";
|
cmd = "${pkgs.helix}/bin/hx";
|
||||||
desktop = "helix";
|
desktop = "helix";
|
||||||
};
|
};
|
||||||
home-manager.users.balsoft = {
|
home-manager.users.balsoft = {
|
||||||
|
home.packages = [
|
||||||
|
(pkgs.makeDesktopItem {
|
||||||
|
name = "helix";
|
||||||
|
desktopName = "Helix editor";
|
||||||
|
terminal = true;
|
||||||
|
categories = [ "Utility" "TextEditor" "Development" "IDE" ];
|
||||||
|
mimeTypes = [
|
||||||
|
"inode/directory"
|
||||||
|
"text/english"
|
||||||
|
"text/plain"
|
||||||
|
"text/x-makefile"
|
||||||
|
"text/x-c++hdr"
|
||||||
|
"text/x-c++src"
|
||||||
|
"text/x-chdr"
|
||||||
|
"text/x-csrc"
|
||||||
|
"text/x-java"
|
||||||
|
"text/x-moc"
|
||||||
|
"text/x-pascal"
|
||||||
|
"text/x-tcl"
|
||||||
|
"text/x-tex"
|
||||||
|
"application/x-shellscript"
|
||||||
|
"application/json"
|
||||||
|
"application/xml"
|
||||||
|
"text/xml"
|
||||||
|
"text/x-c"
|
||||||
|
"text/x-c++"
|
||||||
|
];
|
||||||
|
exec = "${pkgs.helix}/bin/hx %F";
|
||||||
|
icon = "helix";
|
||||||
|
})
|
||||||
|
];
|
||||||
xdg.configFile."helix/languages.toml".text = ''
|
xdg.configFile."helix/languages.toml".text = ''
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "nix"
|
name = "nix"
|
||||||
@ -100,7 +131,7 @@
|
|||||||
};
|
};
|
||||||
"ui.cursor.match" = { bg = base01; };
|
"ui.cursor.match" = { bg = base01; };
|
||||||
"string" = base0B;
|
"string" = base0B;
|
||||||
"variable.other.member" = base0B;
|
# "variable.other.member" = base0B;
|
||||||
"constant.character.escape" = base0E;
|
"constant.character.escape" = base0E;
|
||||||
"function" = base05;
|
"function" = base05;
|
||||||
"constructor" = base0A;
|
"constructor" = base0A;
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.pass-secret-service ];
|
environment.systemPackages = [ pkgs.pass-secret-service ];
|
||||||
|
|
||||||
|
environment.gnome.excludePackages = [ pkgs.gnome-console ];
|
||||||
|
|
||||||
services.dbus.packages = [ pkgs.pass-secret-service ];
|
services.dbus.packages = [ pkgs.pass-secret-service ];
|
||||||
xdg.portal.extraPortals = [ pkgs.pass-secret-service ];
|
xdg.portal.extraPortals = [ pkgs.pass-secret-service ];
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@ with pkgs.my-lib; {
|
|||||||
smallestReadableFont =
|
smallestReadableFont =
|
||||||
"${fonts.main.family},${toString fonts.main.size},-1,5,57,0,0,0,0,0,Medium";
|
"${fonts.main.family},${toString fonts.main.size},-1,5,57,0,0,0,0,0,Medium";
|
||||||
toolBarFont = "${fonts.main.family},${toString fonts.main.size},-1,5,50,0,0,0,0,0";
|
toolBarFont = "${fonts.main.family},${toString fonts.main.size},-1,5,50,0,0,0,0,0";
|
||||||
|
TerminalApplication = "alacritty";
|
||||||
};
|
};
|
||||||
KDE = {
|
KDE = {
|
||||||
DoubleClickInterval = 400;
|
DoubleClickInterval = 400;
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
maxIconSize = 24;
|
maxIconSize = 24;
|
||||||
extraConfig = let
|
extraConfig = let
|
||||||
play = sound:
|
play = sound:
|
||||||
|
pkgs.writeShellScript "play-${sound}"
|
||||||
"${pkgs.mpv}/bin/mpv ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/${sound}.oga";
|
"${pkgs.mpv}/bin/mpv ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/${sound}.oga";
|
||||||
in ''
|
in ''
|
||||||
on-notify=exec ${play "message"}
|
on-notify=exec ${play "message"}
|
||||||
|
Loading…
Reference in New Issue
Block a user