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:
parent
220595235b
commit
653ac9b6c7
|
@ -3,7 +3,6 @@
|
||||||
# Programs
|
# Programs
|
||||||
./desktop/default.nix
|
./desktop/default.nix
|
||||||
./shell/default.nix
|
./shell/default.nix
|
||||||
./alacritty/default.nix
|
|
||||||
./emacs/default.nix
|
./emacs/default.nix
|
||||||
./browser/default.nix
|
./browser/default.nix
|
||||||
# Services
|
# Services
|
||||||
|
|
|
@ -62,13 +62,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
hotkeys.commands = {
|
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" = {
|
"launch-emacs" = {
|
||||||
name = "Launch Emacs Client Window";
|
name = "Launch Emacs Client Window";
|
||||||
key = "Meta+Alt+X";
|
key = "Meta+Alt+X";
|
||||||
|
@ -103,8 +96,10 @@
|
||||||
maxStripes = "1";
|
maxStripes = "1";
|
||||||
showToolTips = "true";
|
showToolTips = "true";
|
||||||
launchers = [
|
launchers = [
|
||||||
"preferred://filemanager"
|
"applications:org.kde.konsole.desktop"
|
||||||
"applications:emacs.desktop"
|
"applications:emacs.desktop"
|
||||||
|
"preferred://filemanager"
|
||||||
|
"preferred://browser"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -169,7 +164,6 @@
|
||||||
"InvertWindow" = "Meta+Ctrl+U";
|
"InvertWindow" = "Meta+Ctrl+U";
|
||||||
"Invert Screen Colors" = [];
|
"Invert Screen Colors" = [];
|
||||||
};
|
};
|
||||||
"services/org.kde.konsole.desktop"."_launch" = [];
|
|
||||||
"services/org.kde.krunner.desktop"."_launch" = ["Meta+Space" "Search" "Alt+F2"];
|
"services/org.kde.krunner.desktop"."_launch" = ["Meta+Space" "Search" "Alt+F2"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -234,14 +228,8 @@
|
||||||
in {
|
in {
|
||||||
inherit AccentColor;
|
inherit AccentColor;
|
||||||
LastUsedCustomAccentColor = AccentColor;
|
LastUsedCustomAccentColor = AccentColor;
|
||||||
TerminalApplication =
|
TerminalApplication = "konsole";
|
||||||
if config.programs.alacritty.enable
|
TerminalService = "org.kde.konsole.desktop";
|
||||||
then "alacritty"
|
|
||||||
else "konsole";
|
|
||||||
TerminalService =
|
|
||||||
if config.programs.alacritty.enable
|
|
||||||
then "Alacritty.desktop"
|
|
||||||
else "org.kde.konsole.desktop";
|
|
||||||
};
|
};
|
||||||
WM = {
|
WM = {
|
||||||
# TODO convert to base16 colours at some point
|
# TODO convert to base16 colours at some point
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{fonts, ...}: {
|
||||||
pkgs,
|
|
||||||
fonts,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.konsole = {
|
programs.konsole = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultProfile = "One-Light";
|
defaultProfile = "One-Light";
|
||||||
|
@ -16,16 +12,28 @@
|
||||||
};
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
"Interaction Options" = {
|
"Interaction Options" = {
|
||||||
"TextEditorCmd" = 6;
|
TextEditorCmd = 6;
|
||||||
"TextEditorCmdCustom" = "emacsclient -c +LINE:COLUMN PATH";
|
TextEditorCmdCustom = "emacsclient -c +LINE:COLUMN PATH";
|
||||||
"UnderlineFilesEnabled" = "true";
|
UnderlineFilesEnabled = true;
|
||||||
"OpenLinksByDirectClickEnabled" = "true";
|
OpenLinksByDirectClickEnabled = true;
|
||||||
};
|
};
|
||||||
"Terminal Features" = {
|
"Terminal Features" = {
|
||||||
"BlinkingCursorEnabled" = "true";
|
BlinkingCursorEnabled = true;
|
||||||
"VerticalLine" = "false";
|
VerticalLine = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
extraConfig = {
|
||||||
|
MainWindow = {
|
||||||
|
MenuBar = "Disabled";
|
||||||
|
};
|
||||||
|
TabBar = {
|
||||||
|
ExpandTabWidth = true;
|
||||||
|
NewTabButton = true;
|
||||||
|
};
|
||||||
|
ThumbnailsSettings = {
|
||||||
|
ThumbnailAlt = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,29 +50,22 @@
|
||||||
(add-to-list 'custom-safe-themes "${custom-theme-hash}")
|
(add-to-list 'custom-safe-themes "${custom-theme-hash}")
|
||||||
(load-theme '${custom-theme-name})
|
(load-theme '${custom-theme-name})
|
||||||
'';
|
'';
|
||||||
extraPackages = epkgs:
|
extraPackages = epkgs: with epkgs; [treesit-grammars.with-all-grammars mu4e];
|
||||||
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);
|
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Emacs requirements
|
# Emacs requirements
|
||||||
imagemagick
|
imagemagick
|
||||||
languagetool
|
languagetool
|
||||||
wordnet
|
wordnet
|
||||||
graphviz # For org-roam graph
|
|
||||||
mp3info # For EMMS
|
|
||||||
|
|
||||||
# Language-specific requirements
|
# Plugin requirements
|
||||||
|
gcc
|
||||||
sqlite
|
sqlite
|
||||||
pandoc
|
pandoc
|
||||||
ghostscript
|
ghostscript
|
||||||
poppler_utils
|
poppler_utils
|
||||||
|
graphviz
|
||||||
|
mp3info
|
||||||
|
|
||||||
# Customised LaTeX install
|
# Customised LaTeX install
|
||||||
(texlive.combine
|
(texlive.combine
|
||||||
|
|
Loading…
Reference in a new issue