From 9758aef9064f50f9a13d62e8bad5e5a5cafcf7f3 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Sun, 23 Feb 2025 20:03:22 +0200 Subject: [PATCH] teto --- modules/home/desktop/hyprland/default.nix | 12 ++++++++++++ modules/home/programs/terminal/wezterm.nix | 22 +++++++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/modules/home/desktop/hyprland/default.nix b/modules/home/desktop/hyprland/default.nix index aca06da..835cbc2 100644 --- a/modules/home/desktop/hyprland/default.nix +++ b/modules/home/desktop/hyprland/default.nix @@ -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 = { diff --git a/modules/home/programs/terminal/wezterm.nix b/modules/home/programs/terminal/wezterm.nix index 88a83e0..4d385d7 100644 --- a/modules/home/programs/terminal/wezterm.nix +++ b/modules/home/programs/terminal/wezterm.nix @@ -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 } },