Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/difrex/sway
My Sway configuration
https://github.com/difrex/sway
config dotfiles swaywm tiling
Last synced: 1 day ago
JSON representation
My Sway configuration
- Host: GitHub
- URL: https://github.com/difrex/sway
- Owner: Difrex
- Created: 2019-03-12T13:11:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-21T13:03:17.000Z (8 months ago)
- Last Synced: 2024-06-19T02:09:08.675Z (5 months ago)
- Topics: config, dotfiles, swaywm, tiling
- Language: Python
- Size: 50.2 MB
- Stars: 19
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swaywm configuration
This is my daily setup of the Sway.
![screenshot](screenshots/shot2.png)
## Components
* [Waybar](https://github.com/Alexays/Waybar) -- panel
* [mako](https://github.com/emersion/mako) -- notification daemon
* [swayidle](https://github.com/swaywm/swayidle) -- idle management daemon. Replacement for the `xautolock`
* [rofi](https://github.com/davatorium/rofi) -- application launcher and dmenu replacement
* [swaylock](https://github.com/swaywm/swaylock) -- lock screen### Installation
```
pacman -S sway swayidle swaybg waybar mako rofi
```## Configs
Some interesting configs.
### Transparent windows
Build:
```sh
go get github.com/Difrex/gosway/ipc
cd scripts && go build -o ~/.local/bin/tr_in transparent_inctive.go
```Enable:
```sh
cd conf-enabled
ln -s ../conf-available/transparent-windows.conf
```### List of floating windows(scratchpads) in Rofi
Build:
```sh
go get github.com/Difrex/gosway/ipc
cd scripts && go build -o ~/.config/sway/scripts/floating_windows floating_windows.go
```Enable:
```sh
cd conf-enabled
ln -s ../conf-available/scratchpads-select.conf
```Keybinding: **$mod+Alt+w**
### Autolayouting
You need a [swaymgr](https://github.com/Difrex/swaymgr) installed.
Enable:
```sh
cd conf-enabled
ln -s ../conf-available/autolayout.conf
```### Other configs
* `autostart.conf` -- start applications on the startup
* `idle.conf` -- swayidle settings
* `wallpapers.conf` -- wallpapers configuration. Keybing to setup random wallpaper is: **$mod+Shift+w**
* `layout.conf` -- keyboard layout configuration## Themes
I always use Solarized themes.
### Dark colors
```sh
cd conf-enabled
ln -s ../conf-available/colors-dark.conf
ln -s ../conf-available/mako-dark.conf
ln -s ../conf-available/termninal-dark.conf
cd ../waybar-enabled
ln -s ../waybar-available/style-dark.css style.css
```### Light colors
```sh
cd conf-enabled
ln -s ../conf-available/colors-light.conf
ln -s ../conf-available/mako-light.conf
ln -s ../conf-available/termninal-light.conf
cd ../waybar-enabled
ln -s ../waybar-available/style-light.css style.css
```## Keybindigns
`$mod` is a Super(with windows logo) key.
* Kill focused window: **$mod+q**
* Launch a terminal: **$mod+Return**
* Rofi launcher: **$mod+d**
* Emacsclient: **$mod+a**
* Copy password with the [pm](https://github.com/himidori/pm): **$mod+p**
* Lock screen with the swaylock: **$mod+l**
* Resize: **$mod+r**
* Make a screenshot(you need the [grim](https://github.com/emersion/grim) and [slurp](https://github.com/emersion/slurp)): **$mod+c**
* Move window to the scratchpad: **$mod+Shift+minus**
* Show scratchpad: **$mod+minus**
* Show modeline for monitors configuration: **$mod+x**For a theme switching you need a [wal](https://github.com/dylanaraps/pywal)
* Switch to light theme: **$mod+Ctrl+Shift+l**
* Switch to dark theme: **$mod+Ctrl+Shift+d*** Reload config: **$mod+Shift+c**
* Shutdown a session: **$mod+Shift+e**