I3: Difference between revisions

From NixOS Wiki
imported>Grahamc
noted dconf
imported>Grahamc
mNo edit summary
Line 29: Line 29:
If your settings aren't being saved, like the size of file selection windows, you need to enable dconf:
If your settings aren't being saved, like the size of file selection windows, you need to enable dconf:


{{file|/etc/nixos/configuration.nix|nix|
<nowiki>
<nowiki>
   programs.dconf.enable = true;
   programs.dconf.enable = true;
   services.dbus.packages = [ pkgs.gnome3.dconf ];
   services.dbus.packages = [ pkgs.gnome3.dconf ];
</nowiki>
</nowiki>
}}
=== Wallpaper ===
=== Wallpaper ===
If <code>~/.background-image</code> exists then it will be displayed as a wallpaper. Options <code>services.xserver.desktopManager.wallpaper.combineScreens</code> and <code>.mode</code> control exactly how it is displayed.
If <code>~/.background-image</code> exists then it will be displayed as a wallpaper. Options <code>services.xserver.desktopManager.wallpaper.combineScreens</code> and <code>.mode</code> control exactly how it is displayed.

Revision as of 02:02, 12 July 2018

i3 is a tiling window manager for X.

Enabling

To use i3 set service.xserver.windowManager.i2.enable to true. For example:

/etc/nixos/configuration.nix
{ config, pkgs, callPackage, ... }: {
  ...
  services.xserver = {
    enable = true;
    desktopManager = {
      default = "none";
      xterm.enable = false;
    };
    windowManager.i3.enable = true;
  };
  ...
}

With a desktop manager

i3 is a window manager and does not provide "cosmetic" services like managing multiple monitor configuration or media keys. This is what is usually delegated to a desktop manager. To use xfce as a desktop manager on top of i3, see Xfce#Using_as_a_desktop_manager_and_not_a_window_manager.

DConf

If your settings aren't being saved, like the size of file selection windows, you need to enable dconf:

/etc/nixos/configuration.nix
  programs.dconf.enable = true;
  services.dbus.packages = [ pkgs.gnome3.dconf ];

Wallpaper

If ~/.background-image exists then it will be displayed as a wallpaper. Options services.xserver.desktopManager.wallpaper.combineScreens and .mode control exactly how it is displayed.