Agregar a sway en /etc/sway/config para moverse al último workspace

Una vez dejaron de andar los shortcuts de sway por xdg-desktop-portal, así que si te pasa eso borralo de /etc/sway/config y reiniciá la PC (reinciando sway no funciona).

Toggle workspaces

Para grabar la pantalla en OBS.

sudo pacman -S xdg-desktop-portal xdg-desktop-portal-wlr 
# PARA OBS
# Set XDG_CURRENT_DESKTOP for proper Wayland support
# No me sirvió
exec --no-startup-id dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway


# Start xdg-desktop-portal services (ensure wlr starts first)
# No me sirvió
# exec --no-startup-id /usr/lib/xdg-desktop-portal-wlr &
# exec --no-startup-id /usr/lib/xdg-desktop-portal -r

#### Me sirvió
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DISPLAY
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway 

assign [app_id="falkon"]3
assign [app_id="telegram-desktop"]3
assign [app_id="whatsie"]2
assign [app_id="smtube"]2
assign [app_id="thunderbird"]4

exec falkon
exec foot
exec foot
exec telegram-desktop
exec smtube
exec whatsie
exec thunderbird




bindsym --locked XF86HomePage exec firefox
bindsym --locked XF86AudioPlay exec smtube
bindsym --locked XF86Mail exec thunderbird



#### Para cambiar workspaces TAB.
bindsym $mod+Tab workspace back_and_forth

input * {
    xkb_layout "es"
}

Y en reemplazá el status_command por la siguiente línea para que muestre información sobre la batería:

status_command while true; do echo "Battery: $(cat /sys/class/power_supply/BAT1/capacity)% $(date +'%Y-%m-%d %X')"; sleep 1; done

https://wiki.linuxquestions.org/wiki/XF86_keyboard_symbols

Actions
  • Mod + Enter New terminal
  • Mod + F Make current window fullscreen
  • Mod + Shift + Q Quit program
  • Mod + Shift + E Exit Sway
  • Mod + Shift + C Reload Sway configuration
  • Mod + Shift + - Move window to scratchpad
  • Mod + - Show scratchpad
Workspaces keys
  • Mod + 0..9 Change current workspace
  • Mod + Shift + 0..9 Move current window to designated workspace
  • Mod + B Horizontal layout
  • Mod + V Vertical layout
  • Mod + S Stacking layout
  • Mod + E Toggle split layout
  • Mod + W Tabbed layout
  • Mod + A Focus on parent container
  • Mod + Space Swap focus between tiling and floating
  • Mod + Shift + Space Toggle floating mode
  • Mod + Tab Next workspace
  • Mod + Shift + Tab Previous workspace
  • Mod + Left/Right/Up/Down Move focus of the window
  • Mod + Shift + Left/Right/Up/Down Move the focused window in the workspace
Resize mode

To resize windows, you must enter resize mode, with the Mod + R keybinding. After you enter resize mode you can resize windows with Left/Right/Up/Down keys, and press enter or escape to return to default mode.


https://wiki.gentoo.org/wiki/Sway

Sway (abreviado de SirCmpwn’s Wayland compositor) es un compositor de Wayland basado en wlroots de código abierto que está diseñado para ser compatible con el gestor de ventanas i3.

USE flags (banderas)
for gui-wm/sway
  • +filecaps: Use Linux file capabilities to control privilege rather than set*id (this is orthogonal to USE=caps which uses capabilities at runtime e.g. libcap)
  • +man: Build and install man pages
  • +swaybar: Install ‘swaybar’: sway’s status bar component
  • +swaynag: Install ‘swaynag’: shows a message with buttons
  • X: Enable support for X11 applications (XWayland)
  • tray: Enable support for StatusNotifierItem tray specification
  • wallpapers: Install sway’s default wallpaper image