Compare commits

..

5 Commits

Author SHA1 Message Date
5a35cd04a6 feat: nvim update terminal keybindings 2025-10-19 16:03:29 +02:00
5648224062 fix(nb): force signal-desktop to use X11 with --ozone-platform=x11
Electron 38 has built-in Wayland auto-detection. Even without
ELECTRON_OZONE_PLATFORM_HINT, it detects WAYLAND_DISPLAY and tries
to use Wayland, triggering the empty window bug in Signal Desktop.

Explicitly force X11/XWayland mode with --ozone-platform=x11 flag
to prevent auto-detection and fix the empty window issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 15:56:24 +02:00
bbb9cacd71 fix(nb): remove wayland flags from signal-desktop to fix empty window
Signal Desktop has a known Electron bug where the window never appears
when using Wayland Ozone platform flags. The ready-to-show event doesn't
fire properly on Wayland. Running in XWayland mode resolves this issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 15:28:42 +02:00
40743442e9 fix: use autoupgrade only on AC 2025-10-19 13:31:31 +02:00
7564c5d740 fix: nb change signal flags 2025-10-19 13:25:48 +02:00
3 changed files with 26 additions and 8 deletions

View File

@@ -2,16 +2,24 @@
{ pkgs, ... }:
let
signalDesktopItem = pkgs.makeDesktopItem {
name = "signal-desktop";
desktopName = "Signal";
icon = "signal-desktop";
exec = "signal-desktop --ozone-platform=x11 --enable-features=VaapiVideoDecoder -- %u";
};
signalWorkDesktopItem = pkgs.makeDesktopItem {
name = "signal-work";
desktopName = "Signal with work profile";
icon = "signal-desktop";
exec = "signal-desktop --enable-dev-tools --enable-features=VaapiVideoDecoder --user-data-dir=/home/dominik/.config/Signal-work -- %u";
exec = "signal-desktop --ozone-platform=x11 --enable-features=VaapiVideoDecoder --enable-dev-tools --user-data-dir=/home/dominik/.config/Signal-work -- %u";
};
in {
environment.systemPackages = [
environment.systemPackages = [
pkgs.signal-cli
pkgs.signal-desktop
signalDesktopItem
pkgs.zbar
signalWorkDesktopItem
];

View File

@@ -37,10 +37,13 @@ local config = {
-- lvim.builtin.terminal.execs[#lvim.builtin.terminal.execs+1] = {"gdb", "tg", "GNU Debugger"}
-- TODO: pls add mappings in which key and refactor this
execs = {
{ vim.o.shell, "<M-1>", "Horizontal Terminal", "horizontal", 0.3 },
{ vim.o.shell, "<M-2>", "Vertical Terminal", "vertical", 0.4 },
{ vim.o.shell, "<M-3>", "Float Terminal", "float", nil },
{ vim.o.shell, "<C-a>", "AI Agent Terminal", "float", nil },
-- { vim.o.shell, "<M-1>", "Horizontal Terminal", "horizontal", 0.3 },
-- { vim.o.shell, "<M-2>", "Vertical Terminal", "vertical", 0.4 },
{ vim.o.shell, "<M-1>", "Float Terminal 1", "float", nil },
{ vim.o.shell, "<M-2>", "Float Terminal 2", "float", nil },
{ vim.o.shell, "<M-3>", "Float Terminal 3", "float", nil },
{ vim.o.shell, "<M-4>", "Float Terminal 4", "float", nil },
{ vim.o.shell, "<M-5>", "Float Terminal 5", "float", nil },
},
}
@@ -81,7 +84,7 @@ Add_exec = function(opts)
end
vim.keymap.set({ "n", "t" }, opts.keymap, function()
M._exec_toggle { cmd = opts.cmd, count = opts.count, direction = opts.direction, size = opts.size() }
_exec_toggle { cmd = opts.cmd, count = opts.count, direction = opts.direction, size = opts.size() }
end, { desc = opts.label, noremap = true, silent = true })
end

View File

@@ -1,6 +1,13 @@
{ config, ... }:
{ config, lib, pkgs, ... }:
{
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = false;
# Skip auto-upgrade when on battery to save power
systemd.services.nixos-upgrade = {
unitConfig = {
ConditionACPower = true;
};
};
}