Sway: Difference between revisions

imported>Artturin
add to window managers
imported>Artturin
add theming and additional packages
Line 1: Line 1:
Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3's features, plus a few extras.  
Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3's features, plus a few extras.  
[https://github.com/swaywm/sway/wiki/i3-Migration-Guide i3 migration guide]


== Installation ==
== Installation ==
Line 36: Line 37:
   mako # notification daemon
   mako # notification daemon
   alacritty # Alacritty is the default terminal in the config
   alacritty # Alacritty is the default terminal in the config
   dmenu # Dmenu is the default in the config but i recommend wofi since its wayland native ];
   dmenu # Dmenu is the default in the config but i recommend wofi since its wayland native
]
];
</syntaxhighlight>
</syntaxhighlight>


Line 96: Line 97:
exec ~/.nix-profile/libexec/polkit-gnome-authentication-agent-1
exec ~/.nix-profile/libexec/polkit-gnome-authentication-agent-1
</syntaxhighlight>
</syntaxhighlight>
=== Theming ===
==== Gtk ====
<syntaxhighlight lang="nix">
environment.systemPackages = with pkgs; [
  gtk-engine-murrine
  gtk_engines
  gsettings-desktop-schemas
  lxappearance
];
</syntaxhighlight>
open lxappearance and pick your themes
read [https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland GTK3 settings on Wayland]
==== Qt ====
<syntaxhighlight lang="nix">
programs.qt5ct.enable = true;
</syntaxhighlight>
open qt5ct and pick your theme
=== Additional packages ===
{{app|waybar|Highly customizable Wayland bar for Sway and Wlroots based compositors|https://github.com/Alexays/Waybar|waybar}}
{{app|autotiling|Script for sway and i3 to automatically switch the horizontal / vertical window split orientation|https://github.com/nwg-piotr/autotiling|autotiling}}
{{app|gammastep|Reduces bluelight and saves your eyes|https://gitlab.com/chinstrap/gammastep|gammastep}}
{{app|clipman|Simple clipboard manager for Wayland|https://github.com/yory8/clipman/|clipman}}
{{app|wofi|Launcher/menu program for wlroots based wayland compositors such as sway|https://hg.sr.ht/~scoopta/wofi|wofi}}
{{app|flashfocus|Simple focus animations for tiling window managers|https://github.com/fennerm/flashfocus|flashfocus}}
{{app|wf-recorder|Screen recorder for wlroots-based compositors such as sway|https://github.com/ammen99/wf-recorder|wf-recorder}}
more packages here [https://github.com/swaywm/sway/wiki/i3-Migration-Guide i3 migration guide]


=== Systemd integration ===
=== Systemd integration ===