Compare commits
5 commits
76ecdba67e
...
04163b2c79
| Author | SHA1 | Date | |
|---|---|---|---|
| 04163b2c79 | |||
| 3f0333b4a0 | |||
| d7c245ed8e | |||
| 83831f6a75 | |||
| 9be3caddbc |
8 changed files with 208 additions and 2 deletions
|
|
@ -97,7 +97,7 @@
|
|||
};
|
||||
|
||||
# Set up time zone.
|
||||
# time.timeZone = "Europe/Madrid";
|
||||
time.timeZone = lib.mkDefault "Europe/Madrid";
|
||||
services.automatic-timezoned.enable = true;
|
||||
|
||||
nixpkgs.overlays = [
|
||||
|
|
@ -178,6 +178,9 @@
|
|||
stateVersion = "25.05";
|
||||
# Nix on nixos 23.05 does not have dirtyRev
|
||||
configurationRevision = flakeSelf.sourceInfo.rev or flakeSelf.sourceInfo.dirtyRev or "dirty";
|
||||
nixos.variant_id = lib.strings.toLower config.networking.hostName;
|
||||
nixos.variant_id = lib.mkDefault (lib.strings.toLower config.networking.hostName);
|
||||
};
|
||||
image.modules.iso = {
|
||||
system.nixos.variant_id = "${lib.strings.toLower config.networking.hostName}-iso";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@
|
|||
./avahi.nix
|
||||
./tailscale.nix
|
||||
./syncthing.nix
|
||||
./kmscon.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
29
roles/common/services/kmscon.nix
Normal file
29
roles/common/services/kmscon.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{pkgs, ...}: {
|
||||
services.kmscon = {
|
||||
enable = true;
|
||||
useXkbConfig = true;
|
||||
fonts = [
|
||||
{
|
||||
name = "JetBrains Mono Nerd Font";
|
||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||
}
|
||||
];
|
||||
extraConfig = ''
|
||||
term=xterm-256color
|
||||
font-size=10
|
||||
'';
|
||||
package = pkgs.kmscon.overrideAttrs (old: {
|
||||
patches =
|
||||
old.patches
|
||||
++ [
|
||||
# https://github.com/kmscon/kmscon/issues/133
|
||||
(
|
||||
pkgs.fetchpatch {
|
||||
url = "https://github.com/Aetf/kmscon/pull/135.patch";
|
||||
hash = "sha256-hJrKkONdQmz9gGMXbk11+4MF8Vn4guE3Bl1Ni6SGDw4=";
|
||||
}
|
||||
)
|
||||
];
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
@ -23,6 +23,9 @@
|
|||
pkgs.noto-fonts-cjk-serif
|
||||
];
|
||||
|
||||
# Already use electron apps (discord) so this only adds 20 mb more
|
||||
environment.systemPackages = [pkgs.tetrio-desktop];
|
||||
|
||||
hardware.keyboard.qmk.enable = true;
|
||||
home-manager.users.toast.home.packages = [pkgs.qmk];
|
||||
|
||||
|
|
|
|||
|
|
@ -3,3 +3,4 @@ Plasma 6.6.0:
|
|||
Pr 3256 https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3256
|
||||
Pr 3259 https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3259
|
||||
Pr 3269 https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3269
|
||||
Pr 3356 https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3356
|
||||
|
|
|
|||
37
roles/kde/patches/plasma-desktop/pr3356.patch
Normal file
37
roles/kde/patches/plasma-desktop/pr3356.patch
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
From 04c747a41d8c01248c7baeec5c852c2298f76fc3 Mon Sep 17 00:00:00 2001
|
||||
From: Christoph Wolk <cwo.kde@posteo.net>
|
||||
Date: Mon, 1 Dec 2025 14:36:09 +0100
|
||||
Subject: [PATCH] applets/kickoff: also close when triggering from footer menu
|
||||
|
||||
Kickoff already closes when one of the power/session buttons from the
|
||||
menu is pressed, but the same does not happen if the same action is
|
||||
shown in the overflow menu.
|
||||
|
||||
Instead, also close kickoff in that case.
|
||||
|
||||
CCBUG: 508725
|
||||
---
|
||||
applets/kickoff/LeaveButtons.qml | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/applets/kickoff/LeaveButtons.qml b/applets/kickoff/LeaveButtons.qml
|
||||
index c9a14dc3254..acf83639341 100644
|
||||
--- a/applets/kickoff/LeaveButtons.qml
|
||||
+++ b/applets/kickoff/LeaveButtons.qml
|
||||
@@ -214,7 +214,12 @@ RowLayout {
|
||||
|
||||
text: model.display
|
||||
icon: model.decoration
|
||||
- onClicked: filteredMenuItemsModel.trigger(index)
|
||||
+ onClicked: {
|
||||
+ filteredMenuItemsModel.trigger(index)
|
||||
+ if (kickoff.hideOnWindowDeactivate) {
|
||||
+ kickoff.expanded = false;
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
onObjectAdded: (index, object) => contextMenu.addMenuItem(object)
|
||||
onObjectRemoved: (index, object) => contextMenu.removeMenuItem(object)
|
||||
--
|
||||
GitLab
|
||||
|
||||
|
|
@ -1,2 +1,5 @@
|
|||
Pr 462 https://invent.kde.org/plasma/spectacle/-/merge_requests/462
|
||||
Pr 487 https://invent.kde.org/plasma/spectacle/-/merge_requests/487
|
||||
|
||||
Plasma 6.6.0:
|
||||
Pr 493 https://invent.kde.org/plasma/spectacle/-/merge_requests/493
|
||||
|
|
|
|||
129
roles/kde/patches/spectacle/pr493.patch
Normal file
129
roles/kde/patches/spectacle/pr493.patch
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
From 49c615c1989d9fcfce7ed1be805538a9dca6a8a8 Mon Sep 17 00:00:00 2001
|
||||
From: Taras Oleksyn <taras.oleksyn@gmail.com>
|
||||
Date: Sat, 29 Nov 2025 10:17:28 +0200
|
||||
Subject: [PATCH] Add cancel button to capture window to improve touchscreen
|
||||
usability
|
||||
|
||||
BUG: 490980
|
||||
---
|
||||
src/CMakeLists.txt | 1 +
|
||||
src/Gui/CancelAction.qml | 11 +++++++++++
|
||||
src/Gui/CaptureOverlay.qml | 14 ++++++++++++++
|
||||
src/Gui/CaptureWindow.cpp | 5 +++++
|
||||
src/Gui/CaptureWindow.h | 1 +
|
||||
src/PlasmaVersion.h | 2 +-
|
||||
6 files changed, 33 insertions(+), 1 deletion(-)
|
||||
create mode 100644 src/Gui/CancelAction.qml
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 23fc4f483..f4957bda7 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -158,6 +158,7 @@ qt_target_qml_sources(spectacle
|
||||
Gui/AnnotationOptionsToolBarContents.qml
|
||||
Gui/AnnotationsToolBarContents.qml
|
||||
Gui/ButtonGrid.qml
|
||||
+ Gui/CancelAction.qml
|
||||
Gui/CaptureModeButtonsColumn.qml
|
||||
Gui/CaptureOptions.qml
|
||||
Gui/CaptureOverlay.qml
|
||||
diff --git a/src/Gui/CancelAction.qml b/src/Gui/CancelAction.qml
|
||||
new file mode 100644
|
||||
index 000000000..74bf54816
|
||||
--- /dev/null
|
||||
+++ b/src/Gui/CancelAction.qml
|
||||
@@ -0,0 +1,11 @@
|
||||
+/* SPDX-FileCopyrightText: 2025 Noah Davis <noahadvs@gmail.com>
|
||||
+ * SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
+ */
|
||||
+
|
||||
+import QtQuick.Templates as T
|
||||
+
|
||||
+T.Action {
|
||||
+ icon.name: "dialog-cancel"
|
||||
+ text: i18nc("@action cancel selection", "Cancel")
|
||||
+ onTriggered: contextWindow.cancel()
|
||||
+}
|
||||
diff --git a/src/Gui/CaptureOverlay.qml b/src/Gui/CaptureOverlay.qml
|
||||
index e5089934d..5c15d9939 100644
|
||||
--- a/src/Gui/CaptureOverlay.qml
|
||||
+++ b/src/Gui/CaptureOverlay.qml
|
||||
@@ -491,6 +491,11 @@ MouseArea {
|
||||
visible: action.enabled
|
||||
action: AcceptAction {}
|
||||
}
|
||||
+ ToolButton {
|
||||
+ display: TtToolButton.TextBesideIcon
|
||||
+ visible: action.enabled
|
||||
+ action: CancelAction {}
|
||||
+ }
|
||||
ToolButton {
|
||||
display: TtToolButton.IconOnly
|
||||
visible: action.enabled
|
||||
@@ -527,6 +532,10 @@ MouseArea {
|
||||
visible: action.enabled
|
||||
action: AcceptAction {}
|
||||
}
|
||||
+ ToolButton {
|
||||
+ visible: action.enabled
|
||||
+ action: CancelAction {}
|
||||
+ }
|
||||
ToolButton {
|
||||
visible: action.enabled
|
||||
action: SaveAction {}
|
||||
@@ -560,6 +569,11 @@ MouseArea {
|
||||
visible: action.enabled
|
||||
action: RecordAction {}
|
||||
}
|
||||
+ ToolButton {
|
||||
+ display: TtToolButton.TextBesideIcon
|
||||
+ visible: action.enabled
|
||||
+ action: CancelAction {}
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/src/Gui/CaptureWindow.cpp b/src/Gui/CaptureWindow.cpp
|
||||
index cb8ce97ab..c263d1b45 100644
|
||||
--- a/src/Gui/CaptureWindow.cpp
|
||||
+++ b/src/Gui/CaptureWindow.cpp
|
||||
@@ -129,6 +129,11 @@ bool CaptureWindow::accept()
|
||||
return SelectionEditor::instance()->acceptSelection();
|
||||
}
|
||||
|
||||
+void CaptureWindow::cancel()
|
||||
+{
|
||||
+ SpectacleCore::instance()->cancelScreenshot();
|
||||
+}
|
||||
+
|
||||
void CaptureWindow::save()
|
||||
{
|
||||
SelectionEditor::instance()->acceptSelection(ExportManager::Save | ExportManager::UserAction);
|
||||
diff --git a/src/Gui/CaptureWindow.h b/src/Gui/CaptureWindow.h
|
||||
index b5e87a834..0d50aac90 100644
|
||||
--- a/src/Gui/CaptureWindow.h
|
||||
+++ b/src/Gui/CaptureWindow.h
|
||||
@@ -34,6 +34,7 @@ public:
|
||||
|
||||
public Q_SLOTS:
|
||||
bool accept();
|
||||
+ void cancel();
|
||||
void save() override;
|
||||
void saveAs() override;
|
||||
void copyImage() override;
|
||||
diff --git a/src/PlasmaVersion.h b/src/PlasmaVersion.h
|
||||
index 08502c895..9518da62b 100644
|
||||
--- a/src/PlasmaVersion.h
|
||||
+++ b/src/PlasmaVersion.h
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
static quint32 get();
|
||||
|
||||
/**
|
||||
- * Use this for plasama versions the same way you'd use QT_VERSION_CHECK()
|
||||
+ * Use this for plasma versions the same way you'd use QT_VERSION_CHECK()
|
||||
*/
|
||||
static quint32 check(quint8 major, quint8 minor, quint8 patch);
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue