diff --git a/hosts/sarien/users/user/flatpak.nix b/hosts/sarien/users/user/flatpak.nix index d2cc927..167f0db 100644 --- a/hosts/sarien/users/user/flatpak.nix +++ b/hosts/sarien/users/user/flatpak.nix @@ -17,7 +17,7 @@ ]; packages = [ # misc - "io.github.zen_browser.zen" + "app.zen_browser.zen" "net.mullvad.MullvadBrowser" "com.obsproject.Studio" "com.bitwarden.desktop" diff --git a/modules/home/desktop/niri/default.nix b/modules/home/desktop/niri/default.nix index 892cbec..bcffa82 100644 --- a/modules/home/desktop/niri/default.nix +++ b/modules/home/desktop/niri/default.nix @@ -638,7 +638,6 @@ in { Mod+Return repeat=false { spawn "${terminal}"; } Mod+Space repeat=false { spawn "${launcher}"; } - Mod+Shift+Space repeat=false { spawn "walker" "-m" "windows"; } Mod+Alt+L repeat=false { spawn "${lockscreen}"; } Mod+Alt+B repeat=false { spawn "${browser}"; } Mod+Alt+V repeat=false { spawn "copyq" "toggle"; } @@ -1092,347 +1091,6 @@ in { } ''; }; - programs.walker = { - enable = true; - package = pkgs.walker; - runAsService = true; - config = { - activation_mode.labels = "neiotsra"; - # theme = "stylix"; - as_window = false; - builtins = { - applications = { - actions = {enabled = true;}; - context_aware = true; - name = "applications"; - placeholder = "Applications"; - prioritize_new = true; - refresh = true; - show_generic = false; - show_icon_when_single = true; - show_sub_when_single = true; - weight = 5; - }; - calc = { - icon = "accessories-calculator"; - min_chars = 4; - name = "calc"; - placeholder = "Calculator"; - weight = 5; - }; - clipboard = { - image_height = 300; - max_entries = 10; - name = "clipboard"; - placeholder = "Clipboard"; - switcher_only = true; - weight = 5; - }; - commands = { - icon = "utilities-terminal"; - name = "commands"; - placeholder = "Commands"; - switcher_only = true; - weight = 5; - }; - custom_commands = { - icon = "utilities-terminal"; - name = "custom_commands"; - placeholder = "Custom Commands"; - weight = 5; - }; - dmenu = { - name = "dmenu"; - placeholder = "Dmenu"; - switcher_only = true; - weight = 5; - }; - emojis = { - history = true; - name = "emojis"; - placeholder = "Emojis"; - switcher_only = true; - typeahead = true; - weight = 5; - }; - finder = { - concurrency = 8; - icon = "folder"; - ignore_gitignore = true; - name = "finder"; - placeholder = "Finder"; - refresh = true; - switcher_only = true; - weight = 5; - }; - runner = { - generic_entry = false; - history = true; - icon = "utilities-terminal"; - name = "runner"; - placeholder = "Runner"; - refresh = true; - typeahead = true; - weight = 5; - }; - ssh = { - history = true; - icon = "preferences-system-network"; - name = "ssh"; - placeholder = "SSH"; - refresh = true; - switcher_only = true; - weight = 5; - }; - switcher = { - name = "switcher"; - placeholder = "Switcher"; - prefix = "/"; - weight = 5; - }; - # websearch = { - # engines = ["google"]; - # icon = "applications-internet"; - # name = "websearch"; - # placeholder = "Websearch"; - # weight = 5; - # }; - windows = { - icon = "view-restore"; - name = "windows"; - placeholder = "Windows"; - weight = 5; - }; - }; - disable_click_to_close = false; - force_keyboard_focus = true; - list = { - max_entries = 50; - show_initial_entries = true; - single_click = true; - }; - search = { - delay = 0; - force_keyboard_focus = true; - history = true; - placeholder = "Search..."; - }; - }; - theme = { - layout = { - ui = { - anchors = { - bottom = false; - left = false; - right = false; - top = false; - }; - window = { - h_align = "center"; - v_align = "center"; - box = { - width = 500; - height = 300; - h_align = "center"; - v_align = "center"; - spacing = 12; - orientation = "vertical"; - # margins = { - # bottom = 200; - # top = 200; - # start = 200; - # }; - search = { - margins = { - # bottom = 0; - # top = 0; - start = 8; - end = 8; - }; - spacing = 12; - # v_align = "baseline"; - h_align = "top"; - h_expand = true; - v_expand = true; - }; - scroll = { - h_align = "fill"; - v_align = "fill"; - h_expand = false; - overlay_scrolling = true; - list = { - # max_height = 300; - margins = { - bottom = 8; - top = 0; - start = 8; - end = 8; - }; - always_show = true; - v_align = "fill"; - h_align = "bottom"; - h_expand = false; - v_expand = true; - item = { - icon.theme = "${config.gtk.iconTheme.name}"; - spacing = 4; - activation_label = { - h_align = "end"; - # v_align = "bottom"; - h_expand = false; - justify = "right"; - spacing = 4; - margins.end = 12; - # x_align = 1; - }; - text = { - h_align = "start"; - h_expand = true; - revert = true; - wrap = true; - }; - }; - }; - }; - }; - }; - }; - }; - style = let - stylix = config.lib.stylix.colors; - in '' - @define-color base00 #${stylix.base00}; - @define-color base01 #${stylix.base01}; - @define-color base02 #${stylix.base02}; - @define-color base03 #${stylix.base03}; - @define-color base04 #${stylix.base04}; - @define-color base05 #${stylix.base05}; - @define-color base06 #${stylix.base06}; - @define-color base07 #${stylix.base07}; - @define-color base08 #${stylix.base08}; - @define-color base09 #${stylix.base09}; - @define-color base0A #${stylix.base0A}; - @define-color base0B #${stylix.base0B}; - @define-color base0C #${stylix.base0C}; - @define-color base0D #${stylix.base0D}; - @define-color base0E #${stylix.base0E}; - @define-color base0F #${stylix.base0F}; - - #window, - #box, - #search, - #password, - #input, - #typeahead, - #spinner, - #list, - child, - scrollbar, - slider, - #item, - #text, - #label, - #sub, - #activationlabel { - all: unset; - } - - #window { - background: none; - color: @base05; - } - - #box { - border-radius: 20px; - border-width: 4px; - border-color: @base0D; - background: @base00; - } - - #search { - background: @base01; - border-radius: 12px; - padding: 8px; - } - - #password, - #input, - #typeahead { - background: none; - box-shadow: none; - border-radius: 12px; - } - - #input > *:first-child, - #typeahead > *:first-child { - margin-right: 12px; - border-radius: 12px; - } - - /* #spinner { - } */ - - #typeahead { - color: @base05; - } - - #input placeholder { - opacity: 0.5; - } - - #list { - padding: 8px; - border-radius: 12px; - background: @base01; - } - - child { - box-shadow: none; - } - - child:selected, - child:hover { - box-shadow: none; - border-radius: 8px; - background: @base02; - } - - #item { - padding: 4px; - } - - /* #icon { - } - - #text { - } - - #label { - } */ - - #sub { - font-size: smaller; - opacity: 0.5; - } - - #activationlabel { - opacity: 0.5; - } - - .activation #activationlabel { - opacity: 1; - color: @base05; - } - - .activation #text, - .activation #icon, - .activation #search { - opacity: 0.5; - } - ''; - }; - }; - programs.wpaperd.enable = true; home.packages = with pkgs; [ (ifLaptop brightnessctl) @@ -1497,18 +1155,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"; - }; - }; + # 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 = {