brightnessctl
and qutebrowser
without xwayland
This commit is contained in:
parent
77e2a86231
commit
8175759a71
4 changed files with 15 additions and 3 deletions
|
@ -3,5 +3,4 @@
|
||||||
imports = [
|
imports = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
] ++ suites.base;
|
] ++ suites.base;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ in
|
||||||
amule = prev.callPackage (import ./amule) { };
|
amule = prev.callPackage (import ./amule) { };
|
||||||
digikam = nixpkgsUnstable.digikam;
|
digikam = nixpkgsUnstable.digikam;
|
||||||
cura = nixpkgsUnstable.cura;
|
cura = nixpkgsUnstable.cura;
|
||||||
|
qutebrowser = import ./qutebrowser { pkgs = prev; };
|
||||||
#firefox-unwrapped = nixpkgsUnstable.firefox-unwrapped;
|
#firefox-unwrapped = nixpkgsUnstable.firefox-unwrapped;
|
||||||
xdg-desktop-portal = nixpkgsUnstable.xdg-desktop-portal;
|
xdg-desktop-portal = nixpkgsUnstable.xdg-desktop-portal;
|
||||||
xdg-desktop-portal-gtk = nixpkgsUnstable.xdg-desktop-portal-gtk;
|
xdg-desktop-portal-gtk = nixpkgsUnstable.xdg-desktop-portal-gtk;
|
||||||
|
|
9
pkgs/qutebrowser/default.nix
Normal file
9
pkgs/qutebrowser/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs }:
|
||||||
|
|
||||||
|
pkgs.qutebrowser.overrideAttrs (old: {
|
||||||
|
buildInputs = old.buildInputs ++ [ pkgs.makeWrapper ];
|
||||||
|
postInstall = old.postInstall or "" + ''
|
||||||
|
wrapProgram "$out/bin/qutebrowser" --set QT_QPA_PLATFORM wayland --set QT_WAYLAND_DISABLE_WINDOWDECORATION 1
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [ wl-clipboard ];
|
home.packages = with pkgs; [ wl-clipboard ];
|
||||||
|
|
||||||
wayland = {
|
wayland = {
|
||||||
windowManager.sway =
|
windowManager.sway =
|
||||||
let
|
let
|
||||||
|
@ -60,6 +61,8 @@
|
||||||
"${modifier}+x" = "exec emacsclient -c";
|
"${modifier}+x" = "exec emacsclient -c";
|
||||||
"${modifier}+b" = "exec firefox";
|
"${modifier}+b" = "exec firefox";
|
||||||
"${modifier}+s" = "exec ${screenshotScript}";
|
"${modifier}+s" = "exec ${screenshotScript}";
|
||||||
|
"XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s +5%";
|
||||||
|
"XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 5%-";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
@ -125,8 +128,8 @@
|
||||||
|
|
||||||
backlight = {
|
backlight = {
|
||||||
format = "nit {percent}%";
|
format = "nit {percent}%";
|
||||||
on-scroll-up = "${pkgs.light}/bin/light -A 2";
|
on-scroll-up = "${pkgs.brightnessctl}/bin/brightnessctl s +5%";
|
||||||
on-scroll-down = "${pkgs.light}/bin/light -U 2";
|
on-scroll-down = "${pkgs.brightnessctl}/bin/brightnessctl s 5%-";
|
||||||
};
|
};
|
||||||
|
|
||||||
tray.spacing = 10;
|
tray.spacing = 10;
|
||||||
|
|
Loading…
Add table
Reference in a new issue