# Default config for sway # # Copy this to ~/.config/sway/config and edit it to your liking. # # Read `man 5 sway` for a complete reference. font Agave Nerd Font 12 ### Variables # # Logo key. Use Mod1 for Alt. set $alt Mod1 set $mod Mod4 # Home row direction keys, like vim set $left h set $down j set $up k set $right l # Your preferred terminal emulator # set $term env WAYLAND_DISPLAY= WINIT_X11_SCALE_FACTOR=1.0 alacritty # set $term alacritty set $term ghostty # set $term env WAYLAND_DISPLAY= WINIT_X11_SCALE_FACTOR=1.0 WINIT_UNIX_BACKEND=x11 alacritty # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. # set $menu dmenu_path | dmenu | xargs swaymsg exec -- set $menu wofi --show drun set $window_switcher ~/.config/wofi/wofi-window-switch.sh set $window_workspace_switcher ~/.config/wofi/wofi-current-workspace.sh set $cursor_theme Sweet-cursors set $cursor_size 24 set $cursor_big_size 64 ### Output configuration # # Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/) # output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill output * bg /home/jay/.config/sway/wallpaper.png fill # # Example configuration: # # output HDMI-A-1 resolution 1920x1080 position 1920,0 # # You can get the names of your outputs by running: swaymsg -t get_outputs exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway # exec systemctl --user restart xdg-desktop-portal xdg-desktop-portal-wlr # exec_always xdg-desktop-portal -r # exec_always /usr/libexec/xdg-desktop-portal-wlr # exec env XDG_CONFIG_HOME=/home/jay/.config gentoo-pipewire-launcher restart & exec_always kanshi exec dex -a -e sway -s /etc/xdg/autostart/:~/.config/autostart/ exec mako exec udiskie --smart-tray exec_always ~/.config/eww/open-main.sh # for sway overview #exec_always rm -f /tmp/sovpipe && mkfifo /tmp/sovpipe && tail -f /tmp/sovpipe | sov -t 100 ### Idle configuration # # Example configuration: # exec swayidle -w \ timeout 300 'swaylock -f -i ~/.config/sway/bg2.png -s fill' \ timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ before-sleep 'swaylock -f -i ~/.config/sway/bg2.png -s fill' # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. # # Status Bar: # # Read `man 5 sway-bar` for more information about this section. # bar { # # position top # # When the status_command prints a new line to stdout, swaybar updates. # # The default just shows the current date and time. # # status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done # # status_command ~/.config/waybar/launch.sh # swaybar_command waybar # colors { # statusline #ffffff # background #323232 # inactive_workspace #32323200 #32323200 #5c5c5c # } # } seat seat0 { xcursor_theme Adwaita 24 } gaps outer 5 gaps inner 5 # default_border pixel 5 for_window [app_id="^.*"] border pixel 4 for_window [class="^.*"] border pixel 4 for_window [workspace=8] floating enable for_window [workspace=9] floating enable focus_follows_mouse no xwayland enable # include @sysconfdir@/sway/config.d/* include ~/.config/sway/conf.d/*