Qtile: Difference between revisions
imported>Wisehh Source addition |
m Change link of qtile.org from http to https. Also, remove the www |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[ | [https://qtile.org/ Qtile] is a full-featured, hackable tiling window manager written and configured in Python. | ||
== Enabling == | == Enabling == | ||
To enable Qtile as your | To enable Qtile as your window manager, set <code>services.xserver.windowManager.qtile.enable = true</code>. For example: | ||
{{file|/etc/nixos/configuration.nix|nix| | {{file|/etc/nixos/configuration.nix|nix|}} | ||
< | <syntaxhighlight lang="nix"> | ||
{ | { | ||
services.xserver.windowManager.qtile.enable = true; | services.xserver.windowManager.qtile.enable = true; | ||
} | } | ||
</syntaxhighlight>To start Qtile on Wayland from your display manager (sddm, lightdm, etc) you have to add a Desktop Entry to your config like this.{{file|/etc/nixos/qtile.nix|nix|}} | |||
<syntaxHighlight lang=nix> | |||
{ config, pkgs, lib, ... }: | |||
{ | |||
}} | nixpkgs.overlays = [ | ||
(self: super: { | |||
qtile-unwrapped = super.qtile-unwrapped.overrideAttrs(_: rec { | |||
postInstall = let | |||
qtileSession = '' | |||
[Desktop Entry] | |||
Name=Qtile Wayland | |||
Comment=Qtile on Wayland | |||
Exec=qtile start -b wayland | |||
Type=Application | |||
''; | |||
in | |||
'' | |||
mkdir -p $out/share/wayland-sessions | |||
echo "${qtileSession}" > $out/share/wayland-sessions/qtile.desktop | |||
''; | |||
passthru.providedSessions = [ "qtile" ]; | |||
}); | |||
}) | |||
]; | |||
services.xserver.displayManager.sessionPackages = [ pkgs.qtile-unwrapped ]; | |||
} | |||
</syntaxHighlight> | |||
== Warning == | == Warning == |