Sway-config/README.md

67 lines
5.4 KiB
Markdown
Raw Normal View History

2023-11-20 11:10:44 +01:00
<img width=150 height=50 align=right src="https://archlinux.org/static/logos/archlinux-logo-light-1200dpi.7ccd81fd52dc.png">
2023-03-23 21:50:40 +01:00
# Sway-Config
2023-11-19 20:59:52 +01:00
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.
2023-03-23 21:50:06 +01:00
2023-11-19 19:43:22 +01:00
![Screenshot des Desktops mit offenem Menü (veraltet)](https://forge.chaostreff-alzey.de/esche/Sway-config/raw/branch/main/screenshot-2023-03-23-170929.png)
2023-03-23 16:18:15 +01:00
2023-03-23 16:30:07 +01:00
### Includes:
2023-03-23 21:47:07 +01:00
- 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))
2023-03-23 15:53:07 +01:00
2023-11-20 11:10:44 +01:00
### Installation
- install modules
2023-09-24 21:34:15 +02:00
- Place the files in .config in $XDG_CONFIG_HOME
2023-11-20 11:10:44 +01:00
- Make shell-scripts executable ```chmod u+x .config/sway/*.sh```
2023-03-23 16:30:07 +01:00
- edit the .config/sway/gammastep.ini to your timezone
2023-09-24 21:34:15 +02:00
- edit the Output and Input Configuration in .config/sway/config, if neccessary
- set Environment
2023-03-23 16:30:07 +01:00
- start sway
2023-03-26 10:43:10 +02:00
- further information can be found in the [sway wiki](https://github.com/swaywm/sway/wiki/Running-programs-natively-under-wayland)
2023-03-23 16:30:07 +01:00
2023-11-20 11:10:44 +01:00
### Modules and Dependencies
| **Module Type** | **Module Name** |
|:--------------------|:---------------------------------------------------------------------------------------------------------------------:|
| Shell | [GNU-bash](https://www.gnu.org/software/bash/bash.html) |
| 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 | [alacritty](https://github.com/alacritty/alacritty) |
| App Launcher | [wofi](https://hg.sr.ht/~scoopta/wofi) |
| Symbols/Emojis | emoji-font (e.g. [noto-emoji](https://github.com/googlefonts/noto-emoji)) |
| 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 gammastep grim mako neofetch noto-fonts-emoji playerctl polkit-gnome slurp sway swayidle swaylock wofi xorg-xwayland```
2023-09-24 21:34:15 +02:00
### Recommended Environment
2023-11-20 11:10:44 +01:00
These are [Environment Variables](https://wiki.archlinux.org/title/Environment_Variables) I recommend for using sway:\
2023-11-20 11:11:42 +01:00
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\
2023-11-20 11:10:44 +01:00
export MOZ_ENABLE_WAYLAND=1
2023-09-24 21:34:15 +02:00
2023-11-19 20:59:52 +01:00
### Theming
2023-11-20 11:10:44 +01:00
| **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/) |
A graphical Interface for Theming is [nwg-look](https://nwg-piotr.github.io/nwg-shell/nwg-look).
2023-03-23 21:39:04 +01:00
### Licences
2023-03-23 21:39:21 +01:00
the wallpaper is "Winter Fairies" by David Revoy, licensed under Creative Commons Attribution 4.0.
2023-03-23 21:39:04 +01:00
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)