GNU bug report logs - #39271
Add a guide to the guix cookbook about setting up sway.

Previous Next

Package: guix-patches;

Reported by: jbranso <at> dismail.de

Date: Fri, 24 Jan 2020 17:04:02 UTC

Severity: normal

Done: Joshua Branson <jbranso <at> dismail.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39271 in the body.
You can then email your comments to 39271 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#39271; Package guix-patches. (Fri, 24 Jan 2020 17:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jbranso <at> dismail.de:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 24 Jan 2020 17:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jbranso <at> dismail.de
To: guix-patches <at> gnu.org
Subject: Add a guide to the guix cookbook about setting up sway.
Date: Fri, 24 Jan 2020 17:03:27 +0000
[Message part 1 (text/plain, inline)]
Hello,

I've created a brief and simple guide for users to set up sway. It
would probably be better for someone to create a sway-service-type
instead, but until that happens users need to configure sway manually.

In the guide, I include a code snippet of a minimal operating
configuration for sway. I tested the code last night with guix system
vm, and it did produce a run-able vm.

I hope this helps someone!

Thanks,

Joshua
[Message part 2 (text/html, inline)]
[0001-doc-Add-sway-to-the-cookbook.patch (application/octet-stream, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#39271; Package guix-patches. (Sun, 15 Mar 2020 19:55:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: jbranso--- via Guix-patches via <guix-patches <at> gnu.org>
Cc: 39271 <at> debbugs.gnu.org
Subject: Re: [bug#39271] Add a guide to the guix cookbook about setting up
 sway.
Date: Sun, 15 Mar 2020 15:54:04 -0400
On Fri, Jan 24, 2020 at 05:03:27PM +0000, jbranso--- via Guix-patches via wrote:
> Hello,
> 
> I've created a brief and simple guide for users to set up sway. It
> would probably be better for someone to create a sway-service-type
> instead, but until that happens users need to configure sway manually.
> 
> In the guide, I include a code snippet of a minimal operating
> configuration for sway. I tested the code last night with guix system
> vm, and it did produce a run-able vm.

Thanks for this!

I wonder, are you using sway on Guix with GDM? I think we should
establish whether or not GDM works with sway in Guix, and then base the
recipe on that.




Information forwarded to guix-patches <at> gnu.org:
bug#39271; Package guix-patches. (Sun, 15 Mar 2020 19:55:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#39271; Package guix-patches. (Tue, 02 Jun 2020 00:40:01 GMT) Full text and rfc822 format available.

Message #14 received at 39271 <at> debbugs.gnu.org (full text, mbox):

From: Joshua Branson <jbranso <at> dismail.de>
To: bug#39271 <39271 <at> debbugs.gnu.org>
Subject: Re: Status: Add a guide to the guix cookbook about setting up sway.
Date: Mon, 01 Jun 2020 20:38:46 -0400
I created an updated patch.

According to this email thread, GDM does not work with sway.

https://lists.gnu.org/archive/html/help-guix/2019-10/msg00205.html

Most users use SSDM.  I do not know how to get SSDM to work with sway.
Essentially I use the dvorak keyboard layout, and I do not know how to
get SSDM to use the dvorak layout to login.  BUT I should probably send
an updated patch to show one how to use sway with SSDM, because most
users use qwerty anyway...until then...

For now,  here is just an updated patch that moves the guix cookbook bit
to the proper spot: "Customizing a Window Manager".

Thanks,



--
Joshua Branson
Sent from Emacs and Gnus




Information forwarded to guix-patches <at> gnu.org:
bug#39271; Package guix-patches. (Tue, 02 Jun 2020 04:55:01 GMT) Full text and rfc822 format available.

Message #17 received at 39271 <at> debbugs.gnu.org (full text, mbox):

From: Joshua Branson <jbranso <at> dismail.de>
To: bug#39271 <39271 <at> debbugs.gnu.org>
Subject: Re: [bug#39271] Status: Add a guide to the guix cookbook about
 setting up sway.
Date: Tue, 02 Jun 2020 00:54:31 -0400
From 81cf42cebd6697f16a6b760618bd1a2265c8844e Mon Sep 17 00:00:00 2001
From: Joshua Branson <jbranso <at> dismail.de>
Date: Mon, 1 Jun 2020 20:12:15 -0400
Subject: [PATCH] doc: Add a sway configuration example.

* doc/guix-cookbook.texi (Sway): Add a sway configuration example.
---
 doc/guix-cookbook.texi | 94 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 94 insertions(+)

diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index 8651bc4429..a2ed25fdfc 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -1617,6 +1617,100 @@ Then you need to add the following code to a StumpWM configuration file
 (set-font (make-instance 'xft:font :family "DejaVu Sans Mono" :subfamily "Book" :size 11))
 @end lisp
 
+@node Sway
+@subsection Sway
+@cindex Sway
+
+Sway is a tiling window manager written for wayland.  Since sway does not
+officially support login managers, some users may need to execute
+"sway" at the virtual console after login.  However, according to Sway's
+developers, the GNOME display manager, usually works to start sway.
+
+To get started using sway, install sway, and the configuration
+file.
+
+@example
+$ guix package -i sway wget
+$ wget https://raw.githubusercontent.com/swaywm/sway/master/config.in
+$ mkdir -p ~/.config/sway/
+$ mv config.in ~/.config/sway/config
+# optionally remove wget
+$ guix package -r wget
+@end example
+
+Sway supports several configuration options including your default
+terminal and keyboard layout.  Read @code{man sway} for details.
+
+You will need to use @code{%desktop-services} to run sway.  Try to login
+into sway with gdm.  If gdm does not work then try to remove
+@code{gdm-service-type} like so.
+
+@lisp
+  (use-modules (gnu) (guix)
+   (srfi srfi-1))
+
+  (use-service-modules desktop xorg)
+
+  (operating-system
+   (host-name "dobby")
+   (timezone "America/Indiana/Indianapolis")
+   (locale "en_US.utf8")
+   ;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
+   ;; target hard disk, and "my-root" is the label of the target
+   ;; root file system.
+   (bootloader (bootloader-configuration
+                (bootloader grub-bootloader)
+                (target "/dev/sda")))
+
+   (file-systems
+    (cons* (file-system
+            (mount-point "/")
+            (device "/dev/sda1")
+            (type "btrfs"))
+           %base-file-systems))
+   (users (cons*
+           (user-account
+            (name "username")
+            (comment "user name")
+            (group "users")
+            (home-directory "/home/user")
+            (supplementary-groups
+             '("wheel" "netdev" "audio" "video")))
+           %base-user-accounts))
+
+   ;; Globally-installed packages.
+   (packages (append (map specification->package
+                          '("nss-certs"))
+                     %base-packages))
+
+   (services
+    (cons*
+     (modify-services
+      (remove (lambda (service)
+                (member (service-kind service)
+                        (list
+                         gdm-service-type
+                         )))
+              %desktop-services) ;;end of remove services
+      ))))
+
+@end lisp
+
+You can now login to sway after login to the virtual console by typing
+
+@example
+$ sway
+@end example
+
+You can also set up sway to autostart after you login. Add this to your
+~/.bash_profile
+
+@example
+if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
+  XKB_DEFAULT_LAYOUT=us exec sway
+fi
+@end example
+
 @node Session lock
 @subsection Session lock
 @cindex sessionlock
-- 
2.26.0





bug closed, send any further explanations to 39271 <at> debbugs.gnu.org and jbranso <at> dismail.de Request was from Joshua Branson <jbranso <at> dismail.de> to control <at> debbugs.gnu.org. (Fri, 08 Jul 2022 03:21:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 05 Aug 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.