sway窗口管理器

programs.sway.enable=true;
# 可以看到配置路径:
cat /nix/store/ww5s13gfilkklq61j493hvvdic7av5p7-sway-unwrapped-1.7/etc/sway/config
# 注销,登录时候选择sway即可
  • 配置

# 用户配置目录
mkdir -p ~/.config/sway/
# 复制配置文件,
cp /etc/sway/config ~/.config/sway/config

# 退出窗口管理器
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'

# 打开快捷起动器
bindsym $mod+d exec $menu
bindsym $mod+r mode "resize"

# 关闭窗口
bindsym $mod+Shift+q kill
# 横/纵打开窗口
bindsym $mod+b splith
bindsym $mod+v splitv
# 全屏
bindsym $mod+f fullscreen
  • 启动器

wofi
# https://cloudninja.pw/docs/wofi.html
set $menu wofi