{"id":15059188,"url":"https://github.com/mbrignall/sway-dotfiles","last_synced_at":"2025-10-05T01:31:37.454Z","repository":{"id":65416119,"uuid":"591519211","full_name":"mbrignall/sway-dotfiles","owner":"mbrignall","description":"Crafting a desktop experience with Fedora 37 and Sway. ","archived":true,"fork":false,"pushed_at":"2023-07-12T16:51:52.000Z","size":13514,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T20:34:11.757Z","etag":null,"topics":["doom-emacs","emacs","fedora","fedora-workstation","fuzzel","linux","mako","sway","swaylock","swaywm","waybar","wayland"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/mbrignall.png","metadata":{"files":{"readme":"README.org","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,"publiccode":null,"codemeta":null}},"created_at":"2023-01-21T00:39:20.000Z","updated_at":"2023-12-22T19:13:02.000Z","dependencies_parsed_at":"2025-01-23T20:42:13.632Z","dependency_job_id":null,"html_url":"https://github.com/mbrignall/sway-dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mbrignall/sway-dotfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrignall%2Fsway-dotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrignall%2Fsway-dotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrignall%2Fsway-dotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrignall%2Fsway-dotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbrignall","download_url":"https://codeload.github.com/mbrignall/sway-dotfiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbrignall%2Fsway-dotfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278399628,"owners_count":25980330,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["doom-emacs","emacs","fedora","fedora-workstation","fuzzel","linux","mako","sway","swaylock","swaywm","waybar","wayland"],"created_at":"2024-09-24T22:39:03.287Z","updated_at":"2025-10-05T01:31:36.627Z","avatar_url":"https://github.com/mbrignall.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+title: Sway on Fedora 37\n#+author: mbrignall\n#+options:   toc:2\n\n* Crafting a desktop experience\n\n#+ATTR_HTML: :align center\n[[./img/logo.png]]\n\nnb: I've moved to nixOS now and have been updating this repo with my dotfiles. If you're keen to see the configuration.nix go [[https://www.github.com/mbrignall/nixos-config][here]].\n\n** What is this all about?\n\nHere is what 'my' Sway looks like:\n\n#+ATTR_HTML: :align center :width 300px\n[[./img/desktopnew.png]]\n\nI received a test laptop from our work supplier. It's a Lenovo ThinkPad P16s. Initial boot had some issues with the laptop lid and resume (i.e. when I closed the lid the laptop screen would turn off but not wake up after suspend resumed)\n\n#+begin_src\nsudo dmidecode -s bios-version\n#+end_src\n\nIf the response is less than 1.30/1.10 then I recommend upgrading.\n\nThe fix for this was to [[https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-p-series-laptops/thinkpad-p16s-gen-1-type-21bt-21bu/21bt/21bt000vuk/pf3z0wnh/downloads/driver-list/component?name=BIOS%2FUEFI][update the BIOS]]. Lenovo released a new version on 22nd December 2022 which addressed this issue and some others for Linux.\n\nA weird thing happened with Chrome when I installed it, is that I could not use file browser (Nautilus) to 'save as' on images for example. I had to go to the chrome://flags/ and search Ozone and change the platform to Wayland. Firefox however operated as expected.\n\n*Some things* I personally need in a desktop experience:\n\n - Monitor management\n - Bluetooth and audio input/output management\n - Ability to logically navigate windows with keybindings\n - Lock screen and normal idle/suspend behaviour must be present\n - Screenshot (grim) and edit (swappy/slurp)\n\n   /Updated: 16/03/23 - it's been a while since I did anything on here./\n - Added script to symbolically link folders back to the repo folder (it can be used without editing)\n - Some more CSS adjustments, kinda moved away from the initial waybar layout and included a wallpaper I preferred\n - [TODO] More to come on this...\n\n\n** Themes\n\nI've been using Doom Emacs recently and got inspiration from a built in theme 'doom-shades-of-purple'. I've tried to link the colour and theme to all the features added below. This is very much WIP and I will continue as I test the device.\n\n*** [[https://codeberg.org/dnkl/fuzzel][Fuzzel]]\n\n#+ATTR_HTML: :align center\n[[./img/fuzzel.png]]\n\nFuzzel does what it needs to do and is styled like the rest of the theme using the colors of shades-of-purple. Fuzzel seems really easy to configure.\n\n*** [[https://github.com/emersion/mako][Mako]]\n\nMako is an alternative to Dunst/Rofication. I use [[https://github.com/dunst-project/dunst][Dunst]] in my Regolith set up which works really well. Mako is just as cusomisable. I amended my config file to include all the parameters from the man page so I can build it out in time. Keen to explore the menu option.\n\n - added battery notification for low and critical:\n\n#+begin_src\n\"states\": {\n    \"warning\": 15,\n    \"critical\": 5\n}\n#+end_src\n\n*** [[https://github.com/emersion/grim][Grim]] and [[https://github.com/jtheoof/swappy][Slurp/Swappy]]\n\nI use screengrab and area grabs a lot. Some I just need to go straight to clipboard and others I want to add context with an editor.\n\n*** [[https://swaywm.org/][Sway]]\n\nAdded many Regolith keybindings and some more nice to haves - like switch to window resize (mod+r) and arrows for resize plus hold shift for a bigger jump.\n\n#+begin_src shell\ninput  \"1267:12811:ELAN0683:00_04F3:320B_Touchpad\" {\n    accel_profile \"adaptive\"\n    pointer_accel 0.80\n}\n\nbindgesture swipe:right workspace prev\nbindgesture swipe:left workspace next\nbindgesture swipe:up exec $term\n#+end_src\n\nWas keen to add some config to the touchpad of the Thinkpad. Amended sensitivity using adaptive and accel value. The bindgesture is a new feature in Sway apparently.\n\n- Swipe right/left: Workspace switch\n- Swipe up: launch terminal\n\n*** [[https://github.com/swaywm/swaylock][Swaylock]]\n\nStyled a bit, but more a WIP. Note: Gave up on swaylock-effects as I found it was crashing if I plugged external monitors in whilst locked. This didn't seem like a great idea so I've now changed back to the swaylock in installed with dnf.\n\n*** [[https://github.com/Alexays/Waybar][Waybar]]\n\n#+ATTR_HTML: :align center\n[[./img/waybar.png]]\n\nWaybar is a really cool, sway specific equivalent to something like [[https://polybar.github.io/][Polybar]]. I really like Waybar and using CSS to style it. This is different to Polybar which feels it has a higher entry level for tweaking.\n\n*** Plymouth theme\n\n    I amended the theme to remove the Fedora logo on the splash screen (spinner theme) in favour of the Sway logo:\n\n    note: You will need to check the current theme and replace anything after /themes/ below.\n\n    #+begin_src\n    sudo mv /usr/share/plymouth/themes/theme/currentlogo.png /usr/share/themes/theme/currentlogo.png.bac\n    sudo cp /path/to/logo.png /usr/share/plymouth/themes/theme/nameofcurrentlogo.png\n\n    # Then refresh the theme:\n    plymouth-set-default-theme -R theme\n    #+end_src\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrignall%2Fsway-dotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbrignall%2Fsway-dotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbrignall%2Fsway-dotfiles/lists"}