mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 14:52:24 +05:30
Cleaning up hyprprofile/qutecontainer implementation
This commit is contained in:
parent
cd4de928e8
commit
87980af597
9 changed files with 36 additions and 6 deletions
|
@ -26,8 +26,35 @@ in
|
|||
fi
|
||||
fi
|
||||
'')
|
||||
(pkgs.writeScriptBin "qutebrowser-hyprprofile" ''
|
||||
#!/bin/sh
|
||||
profile="$(cat ~/.hyprprofile)"
|
||||
if [[ $profile ]]; then
|
||||
container-open $profile $1;
|
||||
else
|
||||
qutebrowser --qt-flag enable-gpu-rasterization --qt-flag enable-native-gpu-memory-buffers --qt-flag num-raster-threads=4 $1;
|
||||
fi
|
||||
'')
|
||||
(pkgs.makeDesktopItem {
|
||||
name = "qutebrowser-hyprprofile";
|
||||
desktopName = "Qutebrowser Hyprprofile";
|
||||
exec = "qutebrowser-hyprprofile %u";
|
||||
categories = ["Network" "WebBrowser"];
|
||||
keywords = ["Browser"];
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
noDisplay = false;
|
||||
icon = "qutebrowser";
|
||||
})
|
||||
(pkgs.writeScriptBin "hyprprofile-dmenu" dmenuScript)
|
||||
];
|
||||
xdg.mimeApps.defaultApplications = lib.mkForce {
|
||||
"text/html" = "qutebrowser-hyprprofile.desktop";
|
||||
"x-scheme-handler/http" = "qutebrowser-hyprprofile.desktop";
|
||||
"x-scheme-handler/https" = "qutebrowser-hyprprofile.desktop";
|
||||
"x-scheme-handler/about" = "qutebrowser-hyprprofile.desktop";
|
||||
"x-scheme-handler/unknown" = "qutebrowser-hyprprofile.desktop";
|
||||
};
|
||||
home.file.".config/hyprprofiles/" = {
|
||||
source = ./profiles;
|
||||
recursive = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue