Files
dotfiles/.config/sway/config
T
2025-11-15 17:46:12 -05:00

45 lines
1.8 KiB
Plaintext

for_window [app_id="com.mitchellh.ghostty"] move container to workspace 1
for_window [app_id="librewolf"] move container to workspace 2
for_window [class="steam"] move container to workspace 3
for_window [app_id="org.prismlauncher.PrismLauncher"] move container to workspace 3
for_window [instance="engine"] floating enable
font pango: Maple Mono SemiBold 10
default_border pixel 0
gaps inner 5
gaps outer 2
exec_always gentoo-pipewire-launcher
exec_always sh -c 'if ! tmux has-session -t Home 2>/dev/null; then tmux new-session -d -s Home; fi'
exec_always sh -c 'pkill swaybg && img="$(find /home/andrew/.config/sway/bgs/samurai -type f | shuf -n1)" && swaybg -m fill -i "$img" &'
output HDMI-A-1 resolution 1920x1080@144Hz position 0,0
input * xkb_options ctrl:nocaps
input "1133:50504:Logitech_USB_Receiver_Mouse" {
accel_profile "flat"
pointer_accel -0.1
}
set $mod Mod1
floating_modifier $mod normal
bindsym $mod+Return exec ghostty -e tmux a
bindsym $mod+Shift+s exec steam
bindsym $mod+f exec librewolf
bindsym $mod+p exec prismlauncher
bindsym $mod+k kill
bindsym $mod+Shift+c reload
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+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%
bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%
include /etc/sway/config.d/*