From 2e8bf077aeeced9800c53e07a12fc39012e775a0 Mon Sep 17 00:00:00 2001 From: shinya Date: Wed, 29 Jan 2025 16:10:52 +0100 Subject: [PATCH] qutebrowser cleanup --- flake.nix | 2 +- nixos/home/apps/hacking.nix | 2 ++ nixos/home/desktop/hyprland/hyprland.nix | 10 +++++++++- nixos/home/packages/applications/qutebrowser.nix | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 3e01a23..950ee73 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ shell = "zsh"; # bash, zsh terminal = "kitty"; # kitty, alacritty, gnome-terminal - browser = "librewolf"; # firefox, librewolf, qutebrowser + browser = "qutebrowser"; # firefox, librewolf, qutebrowser editor = "neovim"; # neovim, vscode # List all themes: $ nix build nixpkgs#base16-schemes && ls result/share/themes diff --git a/nixos/home/apps/hacking.nix b/nixos/home/apps/hacking.nix index 6af4f21..3ac0171 100644 --- a/nixos/home/apps/hacking.nix +++ b/nixos/home/apps/hacking.nix @@ -22,6 +22,8 @@ sqlmap tor-browser android-udev-rules + postman + gdb ]; }; } diff --git a/nixos/home/desktop/hyprland/hyprland.nix b/nixos/home/desktop/hyprland/hyprland.nix index b863b43..88d70e8 100644 --- a/nixos/home/desktop/hyprland/hyprland.nix +++ b/nixos/home/desktop/hyprland/hyprland.nix @@ -2,6 +2,7 @@ lib, config, pkgs, + userSettings, ... }: { options = { @@ -143,7 +144,12 @@ "$term" = "${pkgs.kitty}/bin/kitty"; "$editor" = "${pkgs.vscode}/bin/code"; "$file" = "${pkgs.nautilus}/bin/nautilus"; - "$browser" = "${pkgs.librewolf-wayland}/bin/librewolf"; + "$browser" = + if userSettings.browser == "librewolf" + then "${pkgs.librewolf-wayland}/bin/librewolf" + else if userSettings.browser == "qutebrowser" + then "${pkgs.qutebrowser}/bin/qutebrowser" + else "${pkgs.firefox-wayland}/bin/firefox"; animations = { "enabled" = "yes"; @@ -408,6 +414,8 @@ "float,class:^(post_processing_gui.py)$" "float,title:^(Picture-in-Picture)$" + "size 960 600,class:^(.blueman-manager-wrapped)$" + "pin,title:^(Picture-in-Picture)$" "move 1280 680,title:^(Picture-in-Picture)$" "float,title:^(KDE Connect)$" diff --git a/nixos/home/packages/applications/qutebrowser.nix b/nixos/home/packages/applications/qutebrowser.nix index cc8fc6a..2c342d4 100644 --- a/nixos/home/packages/applications/qutebrowser.nix +++ b/nixos/home/packages/applications/qutebrowser.nix @@ -232,7 +232,7 @@ in c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}&ia=web', 'd' : 'https://duckduckgo.com/?q={}&ia=web', 'aw' : 'https://wiki.archlinux.org/index.php?search={}&title=Special%3ASearch&wprov=acrw1', - 'nw' : 'https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query={}', + 'np' : 'https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query={}', 'mn' : 'https://mynixos.com/search?q={}', 'yt' : 'https://www.youtube.com/results?search_query={}', 'gh' : 'https://github.com/search?q={}&type=repositories',