Files
dotfiles/.config/sway/config
T
2025-10-12 22:56:18 -04:00

40 lines
1.7 KiB
Plaintext

for_window [class="^.*"] border pixel 0
for_window [class="com.mitchellh.ghostty"] move container to workspace 1
for_window [class="librewolf"] move container to workspace 2
for_window [class="steam"] move container to workspace 3
font pango: Maple Mono SemiBold 10
gaps inner 5
gaps outer 2
exec_always gentoo-pipewire-launcher
exec_always sh -c 'if ! tmux has-session -t main 2>/dev/null; then tmux new-session -d -s main; fi'
exec_always sh -c 'pkill swaybg && img="$(find /home/andrew/.config/sway/bgs -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
bindsym $mod+Return exec ghostty -e tmux a
bindsym $mod+Shift+s exec steam
bindsym $mod+f exec librewolf
bindsym $mod+q 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%
bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle
include /etc/sway/config.d/*