2022-12-15 12:35:38 +08:00
|
|
|
#+TITLE: Play with Swaywm and Nixos
|
2022-12-20 22:19:59 +08:00
|
|
|
#+DESCRIPTION: 返璞归真
|
2022-09-15 17:18:00 +08:00
|
|
|
#+DATE: <2022-08-07 日>
|
2022-09-10 22:00:14 +08:00
|
|
|
#+OPTIONS: toc:nil
|
2022-08-09 18:15:04 +08:00
|
|
|
|
|
|
|
* Solution
|
2022-12-03 22:40:09 +08:00
|
|
|
** VirtualBox
|
|
|
|
*** cursor
|
|
|
|
=WLR_NO_HARDWARE_CURSORS=1=
|
|
|
|
*** egl error
|
|
|
|
enable 3D acceleration in VirtualBox
|
|
|
|
** unable to drop root
|
|
|
|
donot run under root
|
|
|
|
*** in normal user, libseat permission deniened
|
|
|
|
add user in =video= group
|
|
|
|
login as user, not root
|
2022-08-09 18:15:04 +08:00
|
|
|
** iBus
|
2022-11-06 12:58:25 +08:00
|
|
|
*** [[https://www.reddit.com/r/swaywm/comments/djkj5m/ibus_on_swaywm/][reddit: ibus on swaywm]]
|
2022-12-03 22:40:09 +08:00
|
|
|
so I use emacs pyim
|
2022-08-09 18:15:04 +08:00
|
|
|
** Authorization required, but no authorization protocol specified
|
2022-08-18 13:33:48 +08:00
|
|
|
*** =sudo -E=
|
2022-11-06 12:58:25 +08:00
|
|
|
*** lxpolkit(directly execute) or polkit-gnome(prettier, at /usr/libexec/polkit-gnome-authentication-agent-1)
|
2022-08-09 18:15:04 +08:00
|
|
|
** cannot start sway on lightdm
|
2022-12-02 20:36:53 +08:00
|
|
|
:PROPERTIES:
|
|
|
|
:CUSTOM_ID: dm
|
|
|
|
:END:
|
2022-11-06 12:58:25 +08:00
|
|
|
yes, still not stable, and it can't remenber which DE you used last time
|
2022-08-17 18:32:09 +08:00
|
|
|
+so use gdm is a better choice?+
|
|
|
|
SDDM is fantastic! [[https://youtu.be/2p7FINJSlAk][It is themeable]],
|
2022-11-06 12:58:25 +08:00
|
|
|
I'm using *~elarun~*, a oxygen-like smooth crystal theme, materia-kde is also a good choice
|
2022-12-02 20:36:53 +08:00
|
|
|
*** Fedora 37 don't work
|
2022-12-03 09:54:24 +08:00
|
|
|
sddm don't work on fedora37, so switch to gdm
|
|
|
|
*** environment variable missing?
|
|
|
|
trick: add =Exec=zsh -c sway= in =/usr/share/wayland-sessions/sway.desktop=
|
2022-08-09 19:36:10 +08:00
|
|
|
** obs
|
2022-12-03 09:54:24 +08:00
|
|
|
don't remove the =include= line in sway/config, and it will be fine
|
2022-08-14 17:04:27 +08:00
|
|
|
** cursor theme not working
|
|
|
|
[[https://github.com/swaywm/sway/issues/6931][from this issue]]
|
2022-11-06 12:58:25 +08:00
|
|
|
add =seat seat0 xcursor_theme Oxygen_White= in sway config file
|
2022-08-14 17:04:27 +08:00
|
|
|
** touchpad gesture like gnome
|
2022-11-06 12:58:25 +08:00
|
|
|
use libinput-gestures
|
2022-08-14 17:04:27 +08:00
|
|
|
*** [[https://github.com/swaywm/sway/issues/1514][issue #1514: touchpad gestures to switch workspaces]]
|
|
|
|
**** [[https://github.com/swaywm/sway/pull/4952][pull #4952]]
|
|
|
|
*** r/swaywm
|
|
|
|
**** [[https://www.reddit.com/r/swaywm/comments/px5vmw/how_are_you_configuring_touchpad_gestures/]]
|
|
|
|
**** [[https://www.reddit.com/r/swaywm/comments/em0jnx/can_sway_handle_threefour_finger_touchpad_gestures/]]
|
2022-08-20 21:42:16 +08:00
|
|
|
** TODO [[https://github.com/WayfireWM/wayfire/issues/1329][Wayfire crashes when closing foot terminal]]
|
2022-08-26 15:36:28 +08:00
|
|
|
** emacs tool-bar not working(cannot toggle and icon theme missing)
|
|
|
|
*** cannot toggle: disable custon =default-frame-alist=, or just use floating mode
|
|
|
|
*** TODO icon theme missing: ?
|
2022-09-24 12:41:34 +08:00
|
|
|
** [[https://www.reddit.com/r/swaywm/comments/scz5k6/option_create_on_workspace_prev_on_outputnext_on/][Option --create on workspace prev_on_output|next_on_output?]]
|
2022-11-06 12:58:25 +08:00
|
|
|
this feature is not compatible with i3, so sway didn't accept the pr
|
2022-09-24 12:41:34 +08:00
|
|
|
*** [[https://www.reddit.com/r/swaywm/comments/mmfwnu/sway_command_workspace_next/][shell script solution]]
|
|
|
|
*** [[https://github.com/oati/sway-workspace-manager][rust, probably useful]]
|
2022-12-20 22:19:59 +08:00
|
|
|
** grim + slurp screenshot pause the screen
|
|
|
|
[[https://github.com/jtheoof/swappy][swappy]] is probably an idea
|
|
|
|
I odn't want to make it too complicated,
|
|
|
|
just shot the whole screen and edit with GIMP later
|
2022-08-18 13:33:48 +08:00
|
|
|
|
2022-08-07 13:08:23 +08:00
|
|
|
|
|
|
|
* Ref
|
|
|
|
** [[https://coda.world/sway-explore-and-giveup][Sway: 从尝试到放弃]]
|
|
|
|
** [[https://shinta.ro/posts/migration-from-xorg-to-wayland/][从 Xorg 迁移到 Wayland]]
|
2022-08-09 18:15:04 +08:00
|
|
|
** [[https://github.com/emersion/xdg-desktop-portal-wlr/wiki/Screencast-Compatibility#obs][xdg-desktop-portal wiki: obs]]
|
2022-08-17 18:32:09 +08:00
|
|
|
** [[https://www.reddit.com/r/swaywm/comments/ehqsuw/autochanging_background_for_sway/][reddit: auto-changing sway background]]
|
2022-11-06 12:58:25 +08:00
|
|
|
** Configs
|
|
|
|
*** [[https://github.com/ziap/dotfiles]]
|
|
|
|
a great config
|
|
|
|
*** [[https://github.com/Ruixi-rebirth/sway-dotfiles][Ruixi-rebirth's dotfiles]]
|
2022-08-17 18:32:09 +08:00
|
|
|
sway, very beautiful, from COSSIG
|
2022-11-06 12:58:25 +08:00
|
|
|
*** [[https://www.reddit.com/r/unixporn/comments/vc9912/river_riced_river_a_dynamic_tiling_wayland/][a Paid config]]
|
|
|
|
this is excellent, but...not for me, I'd like something simpler
|
|
|
|
**** [[https://archcraft.io][archcraft]]
|
|
|
|
*** [[https://github.com/rxyhn/yoru][夜 - Yoru]]
|
2022-08-20 21:42:16 +08:00
|
|
|
awesome config!
|
2022-12-03 22:40:09 +08:00
|
|
|
|
|
|
|
* NixOS related
|
2022-12-20 10:03:59 +08:00
|
|
|
:PROPERTIES:
|
|
|
|
:CUSTOM_ID: nix
|
|
|
|
:END:
|
2022-12-03 22:40:09 +08:00
|
|
|
** [[https://sr.ht/~guido/nixos-init-freedom/][nixos without systemd?]]
|
|
|
|
** [[https://gist.github.com/kborling/76805ade81ac5bfdd712df294208c878][a really useful example config]]
|
|
|
|
** [[https://xeiaso.net/blog/super-bootable-64-2020-05-06][Xe: Super Bootable 64]]
|