Sway-config/README.md
2023-11-19 20:59:52 +01:00

48 lines
2.8 KiB
Markdown

# Sway-Config
My current SwayWM Setup for Arch Linux. It uses bash Skripts and systemd-utilities. If you want to use it without them, help me improve it. If you want just a full setup for sway-desktop, have a look at [nwg-shell](https://nwg-piotr.github.io/nwg-shell/) at first.
![Screenshot des Desktops mit offenem Menü (veraltet)](https://forge.chaostreff-alzey.de/esche/Sway-config/raw/branch/main/screenshot-2023-03-23-170929.png)
### Includes:
- customizable scripts for menu, screenshots, gammastep and other functions
- many bindsyms ([neo2](https://www.neo-layout.org/) keyboard layout)
- already set up to support xwayland and wine (for wine also see [this issue](https://wiki.archlinux.org/title/Sway#Mouse_not_working_in_WINE_applications))
### Setting up
- install dependencies
- Place the files in .config in $XDG_CONFIG_HOME
- make shell-scripts executable ```chmod u+x .config/sway/*.sh```
- edit the .config/sway/gammastep.ini to your timezone
- edit the Output and Input Configuration in .config/sway/config, if neccessary
- set Environment
- start sway
- further information can be found in the [sway wiki](https://github.com/swaywm/sway/wiki/Running-programs-natively-under-wayland)
### Dependencies:
- [alacritty](https://github.com/alacritty/alacritty)
- [wofi](https://hg.sr.ht/~scoopta/wofi)
- emoji-font (e.g. [noto-emoji](https://github.com/googlefonts/noto-emoji))
- [gammastep](https://gitlab.com/chinstrap/gammastep)
- [grim](https://sr.ht/~emersion/grim/)
- [mako](https://github.com/emersion/mako)
- [polkit-gnome](https://gitlab.gnome.org/Archive/policykit-gnome)
- [slurp](https://github.com/emersion/slurp)
- [acpiclient](https://sourceforge.net/projects/acpiclient/files/acpiclient/)
- [playerctl](https://github.com/altdesktop/playerctl)
install all with: ```sudo pacman -Syu alacritty wofi noto-fonts-emoji gammastep grim mako polkit-gnome slurp acpi playerctl```\
optional: [xorg-xwayland](https://xorg.freedesktop.org/wiki/)
### Recommended Environment
These [Environment Variables](https://wiki.archlinux.org/title/Environment_Variables) are recommended for using sway:\
export XDG_CURRENT_DESKTOP=sway\
export XDG_SESSION_TYPE=wayland\
### Theming
For a consistent Theme across GTK and QT applications you can also set the Adwaita theme (libadwaita) which also has a adwaita-qt version in the AUR. Fontsettings can be done with [fontconfig](https://www.freedesktop.org/wiki/Software/fontconfig/).
A graphical Interface for this is [nwg-look](https://nwg-piotr.github.io/nwg-shell/nwg-look).
### Licences
the wallpaper is "Winter Fairies" by David Revoy, licensed under Creative Commons Attribution 4.0.
You can download it [here](https://www.peppercarrot.com/en/viewer/artworks-src__2020-12-21_Winter-Fairies_by-David-Revoy.html) or find more artworks [here](https://www.peppercarrot.com/en/artworks/artworks.html)