Switch default terminal emulator back to Konsole

Pin konsole and firefox to task launcher again

Move Emacs package management out of NixOS, handle in Emacs config
instead
This commit is contained in:
Evie Litherland-Smith 2024-07-24 08:25:37 +01:00
parent 220595235b
commit 653ac9b6c7
4 changed files with 29 additions and 41 deletions

View file

@ -3,7 +3,6 @@
# Programs
./desktop/default.nix
./shell/default.nix
./alacritty/default.nix
./emacs/default.nix
./browser/default.nix
# Services

View file

@ -62,13 +62,6 @@
};
hotkeys.commands = {
"launch-terminal" = let
command = config.programs.plasma.configFile.kdeglobals.General.TerminalApplication.value;
in {
inherit command;
name = "Launch ${command} emulator";
key = "Ctrl+Alt+T";
};
"launch-emacs" = {
name = "Launch Emacs Client Window";
key = "Meta+Alt+X";
@ -103,8 +96,10 @@
maxStripes = "1";
showToolTips = "true";
launchers = [
"preferred://filemanager"
"applications:org.kde.konsole.desktop"
"applications:emacs.desktop"
"preferred://filemanager"
"preferred://browser"
];
};
}
@ -169,7 +164,6 @@
"InvertWindow" = "Meta+Ctrl+U";
"Invert Screen Colors" = [];
};
"services/org.kde.konsole.desktop"."_launch" = [];
"services/org.kde.krunner.desktop"."_launch" = ["Meta+Space" "Search" "Alt+F2"];
};
@ -234,14 +228,8 @@
in {
inherit AccentColor;
LastUsedCustomAccentColor = AccentColor;
TerminalApplication =
if config.programs.alacritty.enable
then "alacritty"
else "konsole";
TerminalService =
if config.programs.alacritty.enable
then "Alacritty.desktop"
else "org.kde.konsole.desktop";
TerminalApplication = "konsole";
TerminalService = "org.kde.konsole.desktop";
};
WM = {
# TODO convert to base16 colours at some point

View file

@ -1,8 +1,4 @@
{
pkgs,
fonts,
...
}: {
{fonts, ...}: {
programs.konsole = {
enable = true;
defaultProfile = "One-Light";
@ -16,16 +12,28 @@
};
extraConfig = {
"Interaction Options" = {
"TextEditorCmd" = 6;
"TextEditorCmdCustom" = "emacsclient -c +LINE:COLUMN PATH";
"UnderlineFilesEnabled" = "true";
"OpenLinksByDirectClickEnabled" = "true";
TextEditorCmd = 6;
TextEditorCmdCustom = "emacsclient -c +LINE:COLUMN PATH";
UnderlineFilesEnabled = true;
OpenLinksByDirectClickEnabled = true;
};
"Terminal Features" = {
"BlinkingCursorEnabled" = "true";
"VerticalLine" = "false";
BlinkingCursorEnabled = true;
VerticalLine = false;
};
};
};
extraConfig = {
MainWindow = {
MenuBar = "Disabled";
};
TabBar = {
ExpandTabWidth = true;
NewTabButton = true;
};
ThumbnailsSettings = {
ThumbnailAlt = true;
};
};
};
}

View file

@ -50,29 +50,22 @@
(add-to-list 'custom-safe-themes "${custom-theme-hash}")
(load-theme '${custom-theme-name})
'';
extraPackages = epkgs:
with epkgs;
[
# Tree-sitter grammars, not a real Emacs package
treesit-grammars.with-all-grammars
# Maildir utils with linked Emacs package
mu4e
]
++ (import ./emacs-packages.nix epkgs);
extraPackages = epkgs: with epkgs; [treesit-grammars.with-all-grammars mu4e];
};
home.packages = with pkgs; [
# Emacs requirements
imagemagick
languagetool
wordnet
graphviz # For org-roam graph
mp3info # For EMMS
# Language-specific requirements
# Plugin requirements
gcc
sqlite
pandoc
ghostscript
poppler_utils
graphviz
mp3info
# Customised LaTeX install
(texlive.combine