From b1d6e5d5a68b93c8da8e3662cd94ef7c8e4aa405 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 19 Jun 2024 17:54:35 +0100 Subject: [PATCH] Add Konsole customisations --- programs/desktop/plasma6/default.nix | 11 ++--- programs/desktop/plasma6/konsole.nix | 24 ++++++++++ programs/desktop/plasma6/linux.keytab | 45 ------------------- programs/desktop/plasma6/one_light.profile | 25 ----------- ...light.colorscheme => onelight.colorscheme} | 0 5 files changed, 30 insertions(+), 75 deletions(-) create mode 100644 programs/desktop/plasma6/konsole.nix delete mode 100644 programs/desktop/plasma6/linux.keytab delete mode 100644 programs/desktop/plasma6/one_light.profile rename programs/desktop/plasma6/{one_light.colorscheme => onelight.colorscheme} (100%) diff --git a/programs/desktop/plasma6/default.nix b/programs/desktop/plasma6/default.nix index 9e9ee69..e9e1a89 100644 --- a/programs/desktop/plasma6/default.nix +++ b/programs/desktop/plasma6/default.nix @@ -3,6 +3,7 @@ fonts, ... }: { + imports = [./konsole.nix]; home.packages = with pkgs; [ wl-clipboard volantes-cursors @@ -47,9 +48,9 @@ }; hotkeys.commands = { - "launch-terminal" = { - name = "Launch Konsole Terminal Emulator"; - key = "Meta+Alt+T"; + "launch-konsole" = { + name = "Launch Konsole"; + key = "Meta+Alt+K"; command = "konsole"; }; "launch-emacs" = { @@ -121,8 +122,8 @@ baloofilerc = {"Basic Settings"."Indexing-Enabled" = false;}; kdeglobals = { General = { - TerminalApplication = "alacritty"; - TerminalService = "Alacritty.desktop"; + TerminalApplication = "konsole"; + TerminalService = "org.kde.konsole.desktop"; }; }; kscreenlockerrc = { diff --git a/programs/desktop/plasma6/konsole.nix b/programs/desktop/plasma6/konsole.nix new file mode 100644 index 0000000..0f97acb --- /dev/null +++ b/programs/desktop/plasma6/konsole.nix @@ -0,0 +1,24 @@ +{fonts, ...}: { + programs.konsole = { + enable = true; + defaultProfile = "One-Light"; + customColorSchemes.onelight = ./onelight.colorscheme; + profiles.onelight = { + name = "One-Light"; + colorScheme = "onelight"; + font.name = fonts.monospace.name; + extraConfig = { + "Interaction Options" = { + "TextEditorCmd" = 6; + "TextEditorCmdCustom" = "emacsclient -c +LINE:COLUMN PATH"; + "UnderlineFilesEnabled" = "true"; + "OpenLinksByDirectClickEnabled" = "true"; + }; + "Terminal Features" = { + "BlinkingCursorEnabled" = "true"; + "VerticalLine" = "false"; + }; + }; + }; + }; +} diff --git a/programs/desktop/plasma6/linux.keytab b/programs/desktop/plasma6/linux.keytab deleted file mode 100644 index 6fa6ae9..0000000 --- a/programs/desktop/plasma6/linux.keytab +++ /dev/null @@ -1,45 +0,0 @@ -keyboard "Linux console" -key F2 : "\E[[B" -key Enter-NewLine : "\r" -key Enter+NewLine : "\r\n" -key F8 : "\E[19~" -key Home : "\E[1~" -key Tab : "\t" -key PgDown+Shift+Ctrl : ScrollPromptDown -key PgDown+Shift-Ctrl : ScrollPageDown -key PgDown-Shift : "\E[6~" -key PgUp+Shift+Ctrl : ScrollPromptUp -key PgUp+Shift-Ctrl : ScrollPageUp -key PgUp-Shift : "\E[5~" -key Ins-Shift : "\E[2~" -key F3 : "\E[[C" -key F6 : "\E[17~" -key F9 : "\E[20~" -key F5 : "\E[[E" -key End : "\E[4~" -key Right-Shift+Ansi-AppCursorKeys : "\E[C" -key Right-Shift+Ansi+AppCursorKeys : "\EOC" -key Right-Shift-Ansi : "\EC" -key F1 : "\E[[A" -key Up+Shift : ScrollLineUp -key Up-Shift+Ansi-AppCursorKeys : "\E[A" -key Up-Shift+Ansi+AppCursorKeys : "\EOA" -key Up-Shift-Ansi : "\EA" -key F10 : "\E[21~" -key Down+Shift : ScrollLineDown -key Down-Shift+Ansi-AppCursorKeys : "\E[B" -key Down-Shift+Ansi+AppCursorKeys : "\EOB" -key Down-Shift-Ansi : "\EB" -key Left-Shift+Ansi-AppCursorKeys : "\E[D" -key Left-Shift+Ansi+AppCursorKeys : "\EOD" -key Left-Shift-Ansi : "\ED" -key Backspace : "\x7f" -key F4 : "\E[[D" -key F12 : "\E[24~" -key F11 : "\E[23~" -key Return+NewLine : "\r\n" -key Return-NewLine : "\r" -key Esc : "\E" -key Del : "\E[3~" -key Space+Ctrl : "\x00" -key F7 : "\E[18~" diff --git a/programs/desktop/plasma6/one_light.profile b/programs/desktop/plasma6/one_light.profile deleted file mode 100644 index f91ba45..0000000 --- a/programs/desktop/plasma6/one_light.profile +++ /dev/null @@ -1,25 +0,0 @@ -[Appearance] -ColorScheme=One Light -LineSpacing=0 - -[Cursor Options] -CursorShape=0 - -[General] -Name=One Light -Parent=FALLBACK/ -TerminalCenter=false -TerminalMargin=2 - -[Interaction Options] -OpenLinksByDirectClickEnabled=true -TextEditorCmd=6 -TextEditorCmdCustom=emacsclient -c +LINE:COLUMN PATH -UnderlineFilesEnabled=true - -[Keyboard] -KeyBindings=linux - -[Terminal Features] -BlinkingCursorEnabled=true -VerticalLine=false diff --git a/programs/desktop/plasma6/one_light.colorscheme b/programs/desktop/plasma6/onelight.colorscheme similarity index 100% rename from programs/desktop/plasma6/one_light.colorscheme rename to programs/desktop/plasma6/onelight.colorscheme