Sway-config/README.md
2024-09-30 20:28:03 +02:00

67 lines
5.5 KiB
Markdown

<img width=150 height=50 align=right src="https://archlinux.org/static/logos/archlinux-logo-light-1200dpi.7ccd81fd52dc.png">
# 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 just want 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))
### Installation
- install modules
- 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)
### Modules and Dependencies
| **Module Type** | **Module Name** |
|:--------------------|:---------------------------------------------------------------------------------------------------------------------:|
| Shell | [GNU-bash](https://www.gnu.org/software/bash/bash.html), [Bash-Completion](https://github.com/scop/bash-completion) |
| Window Manager | [sway](https://github.com/swaywm/sway) |
| Notification Deamon | [mako](https://github.com/emersion/mako) |
| Screen Locker | [swaylock](https://github.com/swaywm/swaylock) |
| Idle Manager | [swayidle](https://github.com/swaywm/swayidle) |
| Gamma | [gammastep](https://gitlab.com/chinstrap/gammastep) |
| Screenshot | [grim](https://sr.ht/~emersion/grim/) |
| System Info Tool | [acpiclient](https://sourceforge.net/projects/acpiclient/files/acpiclient/), [neofetch](https://github.com/dylanaraps/neofetch)|
| Terminal Emulator | [kitty](https://sw.kovidgoyal.net/kitty) |
| App Launcher | [wofi](https://hg.sr.ht/~scoopta/wofi) |
| polkit | [polkit-gnome](https://gitlab.gnome.org/Archive/policykit-gnome) |
| Screen Selector | [slurp](https://github.com/emersion/slurp) |
| Media Controls | [playerctl](https://github.com/altdesktop/playerctl) |
| X-Compatibility | [xorg-xwayland](https://xorg.freedesktop.org/wiki/) |
on Arch install all with: ```sudo pacman -Syu acpi alacritty bash bash-completion gammastep grim mako neofetch playerctl polkit-gnome slurp sway swayidle swaylock wofi xorg-xwayland```
### Recommended Environment
These are [Environment Variables](https://wiki.archlinux.org/title/Environment_Variables) I recommend for using sway:\
export XDG_SESSION_TYPE="wayland"\
export XDG_CURRENT_DESKTOP=sway\
export QT_QPA_PLATFORM="wayland;xcb"\
export SDL_VIDEODRIVER="wayland,x11"\
export _JAVA_AWT_WM_NONREPARENTING=1\
export MOZ_ENABLE_WAYLAND=1
### Theming
| **Module Type** | **Module Name** |
|:--------------------|:---------------------------------------------------------------------------------------------------------------------:|
| GTK Theme | [libadwaita](https://gnome.pages.gitlab.gnome.org/libadwaita/) |
| QT Theme | [adwaita-qt](https://github.com/FedoraQt/adwaita-qt) |
| Font Settings | [fontconfig](https://www.freedesktop.org/wiki/Software/fontconfig/) |
| Icons | [Flatery](https://github.com/cbrnix/Flatery) |
| Symbols/Emojis | emoji-font (e.g. [noto-emoji](https://github.com/googlefonts/noto-emoji)) |
A graphical Interface for Theming 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)