Sway: Difference between revisions
m Added a section for a basic screenshot setup |
mNo edit summary |
||
| Line 10: | Line 10: | ||
{ | { | ||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout | wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout | ||
mako # notification system developed by swaywm maintainer | mako # notification system developed by swaywm maintainer | ||
| Line 180: | Line 178: | ||
};|name=/etc/nixos/home.nix|lang=nix}}For an on screen display for audio and brightness, check [[swayosd]]. | };|name=/etc/nixos/home.nix|lang=nix}}For an on screen display for audio and brightness, check [[swayosd]]. | ||
=== Touchpad === | === Input === | ||
==== Touchpad ==== | |||
See the [https://www.mankier.com/5/sway-input sway-input man page] for options. | See the [https://www.mankier.com/5/sway-input sway-input man page] for options. | ||
{{File|3=wayland.windowManager.sway = | {{File|3=wayland.windowManager.sway = | ||
| Line 419: | Line 419: | ||
File managers that support [https://wiki.gnome.org/Projects/gvfs GVfs], such as [[Thunar]], can mount MTP devices using GVfs. See the page on [[MTP]] for related information. | File managers that support [https://wiki.gnome.org/Projects/gvfs GVfs], such as [[Thunar]], can mount MTP devices using GVfs. See the page on [[MTP]] for related information. | ||
{{File|3=services.gvfs.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}} | {{File|3=services.gvfs.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}} | ||
=== SwayFX === | |||
SwayFX is a fork of Sway that adds eye-candy effects, installing it is as simple as replacing your Sway package with SwayFX. | |||
{{File|3=wayland.windowManager.sway = { | |||
enable = true; | |||
package = pkgs.swayfx; | |||
# Needed to build without errors | |||
checkConfig = false; | |||
# Options must be configured through extraConfig. | |||
extraConfig = '' | |||
shadows enable | |||
corner_radius 11 | |||
blur_radius 7 | |||
blur_passes 2 | |||
''; | |||
};|name=/etc/nixos/home.nix|lang=nix}} | |||
=== Screen dimming with wl-gammarelay-rs === | === Screen dimming with wl-gammarelay-rs === | ||