-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make less known wayland compositors usable (#32285)
* bemenu: init at 2017-02-14 * velox: 2015-11-03 -> 2017-07-04 * orbment, velox: don't expose subprojects the development of orbment and velox got stuck their subprojects (bemenu, dmenu-wayland, st-wayland) don't work correctly outside of parent projects so hide them to not confuse people swc and wld libraries are unpopular and unlike wlc are not used by anything except velox * pythonPackages.pydbus: init at 0.6.0 * way-cooler: 0.5.2 -> 0.6.2 * nixos/way-cooler: add module * dconf module: use for wayland non-invasive approach for #31293 see discussion at #32210 * sway: embed LD_LIBRARY_PATH for #32755 * way-cooler: switch from buildRustPackage to buildRustCrate #31150
- Loading branch information
Showing
24 changed files
with
3,524 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ config, pkgs, lib, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.programs.way-cooler; | ||
way-cooler = pkgs.way-cooler; | ||
|
||
wcWrapped = pkgs.writeShellScriptBin "way-cooler" '' | ||
${cfg.extraSessionCommands} | ||
exec ${pkgs.dbus.dbus-launch} --exit-with-session ${way-cooler}/bin/way-cooler | ||
''; | ||
wcJoined = pkgs.symlinkJoin { | ||
name = "way-cooler-wrapped"; | ||
paths = [ wcWrapped way-cooler ]; | ||
}; | ||
configFile = readFile "${way-cooler}/etc/way-cooler/init.lua"; | ||
spawnBar = '' | ||
util.program.spawn_at_startup("lemonbar"); | ||
''; | ||
in | ||
{ | ||
options.programs.way-cooler = { | ||
enable = mkEnableOption "way-cooler"; | ||
|
||
extraSessionCommands = mkOption { | ||
default = ""; | ||
type = types.lines; | ||
example = '' | ||
export XKB_DEFAULT_LAYOUT=us,de | ||
export XKB_DEFAULT_VARIANT=,nodeadkeys | ||
export XKB_DEFAULT_OPTIONS=grp:caps_toggle, | ||
''; | ||
description = '' | ||
Shell commands executed just before way-cooler is started. | ||
''; | ||
}; | ||
|
||
extraPackages = mkOption { | ||
type = with types; listOf package; | ||
default = with pkgs; [ | ||
westonLite xwayland dmenu | ||
]; | ||
example = literalExample '' | ||
with pkgs; [ | ||
westonLite xwayland dmenu | ||
] | ||
''; | ||
description = '' | ||
Extra packages to be installed system wide. | ||
''; | ||
}; | ||
|
||
enableBar = mkOption { | ||
type = types.bool; | ||
default = true; | ||
description = '' | ||
Whether to enable an unofficial bar. | ||
''; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
environment.systemPackages = [ wcJoined ] ++ cfg.extraPackages; | ||
|
||
security.pam.services.wc-lock = {}; | ||
environment.etc."way-cooler/init.lua".text = '' | ||
${configFile} | ||
${optionalString cfg.enableBar spawnBar} | ||
''; | ||
|
||
hardware.opengl.enable = mkDefault true; | ||
fonts.enableDefaultFonts = mkDefault true; | ||
programs.dconf.enable = mkDefault true; | ||
}; | ||
|
||
meta.maintainers = with maintainers; [ gnidorah ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -519,7 +519,6 @@ in | |
ftp = {}; | ||
i3lock = {}; | ||
i3lock-color = {}; | ||
swaylock = {}; | ||
screen = {}; | ||
vlock = {}; | ||
xlock = {}; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ stdenv, fetchFromGitHub, cmake, pkgconfig | ||
, pango, wayland, libxkbcommon }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "bemenu-2017-02-14"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Cloudef"; | ||
repo = "bemenu"; | ||
rev = "d6261274cf0b3aa51ce8ea7418a79495b20ad558"; | ||
sha256 = "08bc623y5yjbz7q83lhl6rb0xs6ji17z79c260bx0fgin8sfj5x8"; | ||
}; | ||
|
||
nativeBuildInputs = [ cmake pkgconfig ]; | ||
|
||
buildInputs = [ pango wayland libxkbcommon ]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A dynamic menu library and client program inspired by dmenu"; | ||
homepage = src.meta.homepage; | ||
license = with licenses; [ gpl3 lgpl3 ]; | ||
maintainers = with maintainers; [ gnidorah ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{stdenv, fetchFromGitHub #, libX11, libXinerama, enableXft, libXft, zlib | ||
, swc, wld, wayland, libxkbcommon, pixman, fontconfig | ||
}: | ||
|
||
with stdenv.lib; | ||
|
||
stdenv.mkDerivation rec { | ||
name = "dmenu-velox-${version}"; | ||
version = "git-2017-04-07"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "michaelforney"; | ||
repo = "dmenu"; | ||
rev = "f385d9d18813071b4b4257bf8d4d572daeda0e70"; | ||
sha256 = "14j8jv0nlybinhzkgd6dplvng9zy8p292prlx39w0k4fm6x5nv6y"; | ||
}; | ||
|
||
buildInputs = [ swc wld wayland libxkbcommon pixman fontconfig ]; | ||
|
||
postPatch = '' | ||
sed -ri -e 's!\<(dmenu|dmenu_path)\>!'"$out/bin"'/&!g' dmenu_run | ||
''; | ||
|
||
preConfigure = [ | ||
''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g; s@/usr/share/swc@${swc}/share/swc@g" config.mk'' | ||
]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
meta = { | ||
description = "A generic, highly customizable, and efficient menu for the X Window System"; | ||
homepage = http://tools.suckless.org/dmenu; | ||
license = stdenv.lib.licenses.mit; | ||
maintainers = with stdenv.lib.maintainers; [ ]; | ||
platforms = with stdenv.lib.platforms; all; | ||
}; | ||
} |
Oops, something went wrong.