{"id":20709020,"url":"https://github.com/difrex/sway","last_synced_at":"2025-04-23T02:52:15.811Z","repository":{"id":71929261,"uuid":"175214132","full_name":"Difrex/sway","owner":"Difrex","description":"My Sway configuration","archived":false,"fork":false,"pushed_at":"2024-03-21T13:03:17.000Z","size":52687,"stargazers_count":24,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T21:22:30.663Z","etag":null,"topics":["config","dotfiles","swaywm","tiling"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Difrex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-03-12T13:11:44.000Z","updated_at":"2025-02-18T08:58:47.000Z","dependencies_parsed_at":"2024-03-21T14:29:25.469Z","dependency_job_id":null,"html_url":"https://github.com/Difrex/sway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Difrex%2Fsway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Difrex%2Fsway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Difrex%2Fsway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Difrex%2Fsway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Difrex","download_url":"https://codeload.github.com/Difrex/sway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360249,"owners_count":21417718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","dotfiles","swaywm","tiling"],"created_at":"2024-11-17T01:34:32.928Z","updated_at":"2025-04-23T02:52:15.769Z","avatar_url":"https://github.com/Difrex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swaywm configuration\n\nThis is my daily setup of the Sway.\n\n![screenshot](screenshots/shot2.png)\n\n## Components\n\n* [Waybar](https://github.com/Alexays/Waybar) -- panel\n* [mako](https://github.com/emersion/mako) -- notification daemon\n* [swayidle](https://github.com/swaywm/swayidle) -- idle management daemon. Replacement for the `xautolock`\n* [rofi](https://github.com/davatorium/rofi) -- application launcher and dmenu replacement\n* [swaylock](https://github.com/swaywm/swaylock) -- lock screen\n\n### Installation\n\n```\npacman -S sway swayidle swaybg waybar mako rofi\n```\n\n## Configs\n\nSome interesting configs.\n\n### Transparent windows\n\nBuild:\n```sh\ngo get github.com/Difrex/gosway/ipc\ncd scripts \u0026\u0026 go build -o ~/.local/bin/tr_in transparent_inctive.go\n```\n\nEnable:\n```sh\ncd conf-enabled\nln -s ../conf-available/transparent-windows.conf\n```\n\n### List of floating windows(scratchpads) in Rofi\n\nBuild:\n```sh\ngo get github.com/Difrex/gosway/ipc\ncd scripts \u0026\u0026 go build -o ~/.config/sway/scripts/floating_windows floating_windows.go\n```\n\nEnable:\n```sh\ncd conf-enabled\nln -s ../conf-available/scratchpads-select.conf\n```\n\nKeybinding: **$mod+Alt+w**\n\n### Autolayouting\n\nYou need a [swaymgr](https://github.com/Difrex/swaymgr) installed.\n\nEnable:\n```sh\ncd conf-enabled\nln -s ../conf-available/autolayout.conf\n```\n\n### Other configs\n\n* `autostart.conf` -- start applications on the startup\n* `idle.conf` -- swayidle settings\n* `wallpapers.conf` -- wallpapers configuration. Keybing to setup random wallpaper is: **$mod+Shift+w**\n* `layout.conf` -- keyboard layout configuration\n\n## Themes\n\nI always use Solarized themes.\n\n### Dark colors\n\n```sh\ncd conf-enabled\nln -s ../conf-available/colors-dark.conf\nln -s ../conf-available/mako-dark.conf\nln -s ../conf-available/termninal-dark.conf\ncd ../waybar-enabled\nln -s ../waybar-available/style-dark.css style.css\n```\n\n### Light colors\n\n```sh\ncd conf-enabled\nln -s ../conf-available/colors-light.conf\nln -s ../conf-available/mako-light.conf\nln -s ../conf-available/termninal-light.conf\ncd ../waybar-enabled\nln -s ../waybar-available/style-light.css style.css\n```\n\n## Keybindigns\n\n`$mod` is a Super(with windows logo) key.\n\n* Kill focused window: **$mod+q**\n* Launch a terminal: **$mod+Return**\n* Rofi launcher: **$mod+d**\n* Emacsclient: **$mod+a**\n* Copy password with the [pm](https://github.com/himidori/pm): **$mod+p**\n* Lock screen with the swaylock: **$mod+l**\n* Resize: **$mod+r**\n* Make a screenshot(you need the [grim](https://github.com/emersion/grim) and [slurp](https://github.com/emersion/slurp)): **$mod+c**\n* Move window to the scratchpad: **$mod+Shift+minus**\n* Show scratchpad: **$mod+minus**\n* Show modeline for monitors configuration: **$mod+x**\n\nFor a theme switching you need a [wal](https://github.com/dylanaraps/pywal)\n* Switch to light theme: **$mod+Ctrl+Shift+l**\n* Switch to dark theme: **$mod+Ctrl+Shift+d**\n\n* Reload config: **$mod+Shift+c**\n* Shutdown a session: **$mod+Shift+e**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifrex%2Fsway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdifrex%2Fsway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifrex%2Fsway/lists"}