Created: November 19, 2020

Last modified: May 11, 2023

sway configuration

I use sway as my wayland compositor/window manager of choice with the following configuration

input "type:mouse" {
      scroll_factor 0.01
}
input "type:keyboard" {
    repeat_delay 150
    repeat_rate 50
    xkb_layout dvorak
}
swaybg_command -
output Virtual-1 scale 1.5

workspace_layout tabbed
default_border none
hide_edge_borders --i3 none

set $mod Mod1

bindsym $mod+Shift+1 output Virtual-1 mode 2880x1800
bindsym $mod+Shift+2 output Virtual-1 mode 3840x2160

bindsym $mod+l layout toggle all
bindsym $mod+0 focus next
# bindsym $mod+bracketleft focus prev
# bindsym $mod+bracketright focus next

bindsym $mod+Escape floating toggle
floating_modifier $mod normal

bindsym $mod+Shift+q kill
bindsym $mod+Shift+0 exec swaynag -t warning -m "exit?" -B "yes" "swaymsg exit"

bindsym $mod+Return exec emacsclient -c

# https://github.com/NixOS/nixpkgs/issues/119445
exec dbus-update-activation-environment WAYLAND_DISPLAY
exec gpgconf --launch gpg-agent
exec emacs
[Settings]
gtk-application-prefer-dark-theme = true
gtk-theme-name = Adwaita
gtk-cursor-theme-name = Adwaita
gtk-cursor-theme-size = 24
gtk-key-theme-name = Emacs

Backlinks: