This commit is contained in:
unexplrd
2025-02-23 20:03:22 +02:00
parent 4d3c1695d8
commit 9758aef906
2 changed files with 25 additions and 9 deletions

View File

@ -1279,6 +1279,18 @@ in {
"x-scheme-handler/unknown" = web_browser;
};
};
desktopEntries = {
zen-browser-profile = {
name = "Zen Browser (Choose profile)";
icon = "app.zen_browser.zen";
exec = "flatpak run --branch=stable --arch=x86_64 --command=launch-script.sh --file-forwarding app.zen_browser.zen --ProfileManager @@u %u @@";
};
logseq-wayland = {
name = "Logseq Desktop (Wayland)";
icon = "com.logseq.Logseq";
exec = "flatpak run --branch=stable --arch=x86_64 --command=run.sh --file-forwarding com.logseq.Logseq @@u %U @@ --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-features=WaylandWindowDecorations";
};
};
};
systemd.user = {
settings.Manager.DefaultEnvironment = {

View File

@ -1,7 +1,7 @@
{
config,
inputs,
pkgs,
# inputs,
# pkgs,
lib,
...
}:
@ -15,7 +15,7 @@ in {
config = mkIf cfg.enable {
programs.wezterm = {
enable = true;
package = inputs.wezterm.packages.${pkgs.system}.default;
# package = inputs.wezterm.packages.${pkgs.system}.default;
extraConfig = ''
local wezterm = require 'wezterm'
local act = wezterm.action
@ -59,16 +59,20 @@ in {
{ key = 'v', mods = 'SHIFT|CTRL', action = act.PasteFrom 'Clipboard' },
{ key = 'PageUp', mods = 'CTRL', action = act.ActivateTabRelative(-1) },
{ key = 'PageDown', mods = 'CTRL', action = act.ActivateTabRelative(1) },
{ key = 'LeftArrow', mods = 'CTRL', action = act.ActivatePaneDirection 'Left' },
{ key = 'RightArrow', mods = 'CTRL', action = act.ActivatePaneDirection 'Right' },
{ key = 'UpArrow', mods = 'CTRL', action = act.ActivatePaneDirection 'Up' },
{ key = 'DownArrow', mods = 'CTRL', action = act.ActivatePaneDirection 'Down' },
{ key = ',', mods = 'SHIFT|CTRL', action = act.SplitVertical { domain = 'CurrentPaneDomain' }, },
{ key = '.', mods = 'SHIFT|CTRL', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
{ key = '%', mods = 'SHIFT|CTRL', action = act.SplitVertical { domain = 'CurrentPaneDomain' }, },
{ key = '"', mods = 'SHIFT|CTRL', action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
{ key = 'n', mods = 'CTRL', action = act.ActivatePaneDirection 'Left', },
{ key = 'i', mods = 'CTRL', action = act.ActivatePaneDirection 'Right', },
-- pane navigation
{ key = 'LeftArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Left' },
{ key = 'DownArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Down' },
{ key = 'UpArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Up' },
{ key = 'RightArrow', mods = 'LEADER', action = act.ActivatePaneDirection 'Right' },
{ key = 'n', mods = 'LEADER', action = act.ActivatePaneDirection 'Left' },
{ key = 'e', mods = 'LEADER', action = act.ActivatePaneDirection 'Down' },
{ key = 'i', mods = 'LEADER', action = act.ActivatePaneDirection 'Up' },
{ key = 'o', mods = 'LEADER', action = act.ActivatePaneDirection 'Right' },
{ key = 't', mods = 'SHIFT|CTRL', action = act.SpawnTab 'CurrentPaneDomain' },
{ key = 'w', mods = 'SHIFT|CTRL', action = act.CloseCurrentTab{ confirm = false } },
{ key = 'f', mods = 'SHIFT|CTRL', action = act.CloseCurrentPane{ confirm = false } },