dotfiles/README-sway.md

123 lines
3.6 KiB
Markdown
Raw Normal View History

2022-05-01 10:43:18 +02:00
dotfiles - My tiling Sway configuration (for Arch/Devuan/Debian)
2022-03-26 14:41:16 +01:00
================================================================
2021-12-11 15:02:56 +01:00
### My configurations:
2022-04-23 22:11:52 +02:00
* [Qtile](README-qtile.md)
2022-05-01 10:44:13 +02:00
* [i3](README-i3.md)
2022-05-01 10:39:57 +02:00
* [Sway](README-sway.md)
2022-05-01 11:58:42 +02:00
* [Dwm](README-dwm.md)
2022-05-01 10:39:57 +02:00
* [Spectrwm](README-spectrwm.md)
2021-12-11 15:02:56 +01:00
![sway](examples/sway.png)
### Installation:
* **`Install dependencies:`**
2022-03-26 14:41:16 +01:00
* Read [`How install dependencies on Arch and Devuan/Debian`](Dependencies.md)
2021-12-11 15:02:56 +01:00
* **`Install configuration (dotfiles):`**
* Clone repository and copy files to your home:
```shell
$ git clone https://github.com/q3aql/dotfiles
$ cd dotfiles
2022-03-26 14:41:16 +01:00
$ chmod +x install-config.sh
$ ./install-config.sh
2022-05-01 03:00:26 +02:00
$ cp -rfv ~/.config/waybar/config.icons ~/.config/waybar/config
2021-12-11 15:02:56 +01:00
````
### Configuration:
* **`Network Manager (Connman or NetWorkManager):`**
* By default is enabled `NetWorkManager` as network manager:
2021-12-18 11:41:26 +01:00
* If you prefer `Connman`, edit the file `~/.config/sway/config`:
2021-12-11 15:02:56 +01:00
```shell
#exec --no-startup-id connman-gtk --tray &
exec --no-startup-id nm-applet &
````
* **`Monitor & resolution:`**
* The configuration load my monitor configuration:
* Use the command `wlr-randr` for show your config & edit the file `~/.config/sway/startwlrrandr.sh`:
```shell
wlr-randr --output DP-1 --custom-mode 1280x1024@75Hz --pos 288,0
wlr-randr --output DP-2 --custom-mode 1280x1024@75Hz --transform 90 --pos 1568,0
````
2021-12-12 17:54:28 +01:00
* **`Screensaver:`**
2021-12-13 21:55:51 +01:00
* The configuration file use my monitor configuration and set the time in 20 minutes:
2021-12-12 17:54:28 +01:00
* Use the command `wlr-randr` for show your monitors & edit the file `~/.config/sway/startwlrscreensaver.sh`:
```shell
# Basic configuration variables
2021-12-13 21:55:51 +01:00
ScreensaverTime="1200" # 20 minutes
2021-12-12 17:54:28 +01:00
monitorOne="DP-1" # First monitor
monitorTwo="DP-2" # Second monitor
monitorThree="" # Third monitor
````
* **`Wallpaper:`**
2021-12-11 15:02:56 +01:00
* By default, the config load wallpaper on `~/wallpapers/dark-city.jpg`:
* Edit `~/.config/sway/config` for set your favorite wallpaper:
```shell
exec --no-startup-id "swaybg -i ~/wallpapers/dark-city.jpg -m fill"
````
* **`Layout:`**
* By default, the config load my spanish layout.:
* Edit `~/.config/sway/config` for set your configuration:
```shell
# Input layout
input * {
#xkb_layout "us"
xkb_layout "es"
#xkb_variant "colemak"
}
````
### Keys configuration:
My list of extra combinations:
- Super + d = Open Dmenu
- Super + p = Open Wofi (run mode)
- Super + q = Open Rofi (window mode)
- Super + o = Open Wofi (drun mode)
- Super + b = Open Firefox
- Super + n = Open PCManFM
- Super + t = Open Wayland-Screenshooter
- Super + g = Open Geany
- Super + m = Open Telegram
- Super + z = Open Wf-Recorder (Screen video recorder)
- Super + x = Open Wdisplays
- Super + u = Open Xterm
- Super + i = Open LXAppearance
- Super + c = Open NetWorkManager
- Volume-Up = Volume +5
- Volume-Down = Volume -5
- VolumeMute = Mute Volume
2021-12-12 17:54:28 +01:00
- Super + Ctrl + Shift + l = Poweroff/Start screen (Screensaver step needed)
- Super + Shift + e = Logout
2021-12-11 15:02:56 +01:00
- Super + Backspace = Open menu Logout/Reboot/Shutdown
### External links:
* [Antonio Sarosi](https://github.com/antoniosarosi/dotfiles/)
* [Derek Taylor](https://gitlab.com/dwt1/dotfiles/)
* [TWB0109](https://github.com/TWB0109/PDots)
* [i3-style](https://github.com/altdesktop/i3-style)
* [addy-dclxvi](https://github.com/addy-dclxvi/i3-starterpack)
* [i3-gaps](https://github.com/Airblader/i3)