#linux #macos
Asahi linux
→ Installation
→ Screen problems
- asahi linux does not really support Xorg
- wayland has some drawbacks such as :
- no support for sharing screen
- problem to identify pop-up / notification in the
swaymsg -t get_tree
-> use mako
→ Keyboard troubles
- xkb setup
- apparently there is also a keyd tool for that
- f-keys needs fn. however it is possible to change that behavior. see details
# this works but disapears at reboot echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode # This needs to rebuild the boot echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf sudo update-initramfs -u -k all sudo reboot # optional
→ Browser troubles
snap chromium does not work with slack
snap chromium only share tabs during meet
there is no arm64 chromium without snap on ubuntu (mint only support amd64)
snap chromium does not support password store
~~firefox does not share tabs during meet~~
~~firefox 120 seg fault with arm64 (snap and deb)~~ fixed with 120.0.1
firefox-esr (115) deb works fine
firefox shortkey can be removed (see wiki web browser)
firefox supports natively wayland
vivaldi allows to share tabs
vivaldi provides deb arm64
vivaldi supports slack
vivaldi supports password store
vivaldi natively supports wayland via configs but I got tabs freeze and focus lost from tabs so I don't use it
vivaldi lags i don't know why
→ Intellij troubles
there is no
insert
key, then copy via vim can be enabledidea works with xwayland, but support for wayland is coming
markdown fails with error but there is a workaround
idea does not honour xkb_variant nor xmodmap
however it honours xkb_options
so I did:
- default layout :
ctrl_l - alt_l - super_l - space - super_r - alt_r
caps:escape,ctrl:swap_lwin_lctl,lv3:ralt_alt,lv3:lalt_switch,altwin:alt_super_win
- resulting layout :
iso_lv3_shift - ctrl_l - space - alt_r - alt_r
- used keys :
iso_lv3_shift - ctrl_l - space - alt_r
Thats a good compromise with my other pc which:
default layout:
ctrl_l - fn - super_l - alt_l - space - iso_lv3_shift - menu - ctrl_r
caps:swapescape,ctrl:swap_lalt_lctl,lv3:ralt_alt,lv3:lwin_switch,ctrl:menu_rctrl
resulting layout
super_l - fn - iso_lv3_shift - ctrl_l - space - alt_r - menu
used keys
iso_lv3_shift - ctrl_l - space - alt_r
a long standing bug with tmux can be fixed by seting
:set status-position top
→ Trouble with gtk
- gtk configs are not honoured
- the only way to apply dark theme was to use this workaround by
ADW_DEBUG_COLOR_SCHEME=prefer-dark to /etc/environment
- emacs key binding or gtk.css does not work either
- apparently related to recent gnome
→ gnome-text-editor
Gtk-WARNING **: 20:28:39.175: Theme parser error: gtk.css:1:1-13: Unknown @ rule
Gtk-WARNING **: 20:28:39.175: Theme parser error: gtk.css:43:3-19: No property named "gtk-key-bindings"
Adwaita-WARNING **: 20:12:48.637: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
- it uses gtk4 (no way to set key binding ?) -> remove
.config/gtk-4.0/gtk.css
- dark theme works by setting
ADW_DEBUG_COLOR_SCHEME
→ file-roller, evince, firefox ...
Using GtkSettings:gtk-application-prefer-dark-theme together with HdyStyleManager is unsupported. Please use HdyStyleManager:color-scheme instead
- apparently gtk3+
gsettings set org.gnome.desktop.interface color-scheme default
fixes the dark theme- copy
/usr/share/themes/Emacs/gtk-3.0/gtk-keys.css
into.config/gtk-3.0/gtk.css
then emacs key binding works
→ Sound
- only jack sound works
- install
pavucontrol
to allow configuring both head/mic sound - install
pactl
to allow up/down on head sound from keyboard
→ Screen sharing
- worked with gnome but not in sway initially (both wayland)
- installed
sudo apt install xdg-desktop-portal-wlr
(not sure useful?) - got some working advices here
- exec the below in sway:
# cat bin/screen-sharing
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
systemctl --user stop pipewire pipewire-pulse.socket xdg-desktop-portal xdg-desktop-portal-wlr wireplumber pipewire.socket
systemctl --user start pipewire pipewire-pulse.socket xdg-desktop-portal xdg-desktop-portal-wlr wireplumber pipewire.socket