38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
# Output configuration
|
|
output * bg "~/.config/sway/bg.png" fill
|
|
output DP-1 resolution 3840x2160 scale 1.5 position 1080,0 color_profile icc "~/.config/sway/yuki.icc"
|
|
output HDMI-A-1 resolution 1920x1080 scale 1.0 position 0,-300 transform 90
|
|
output HDMI-A-1 disable
|
|
|
|
# Input configuration
|
|
input type:pointer {
|
|
accel_profile adaptive
|
|
pointer_accel -0.5
|
|
}
|
|
|
|
# Monitor setup
|
|
set $mode_monitor Monitor (s) single, (d) dual
|
|
mode "$mode_monitor" {
|
|
bindsym s output HDMI-A-1 disable, mode "default"
|
|
bindsym d output HDMI-A-1 enable, mode "default"
|
|
bindsym Return mode "default"
|
|
bindsym mod3+Return mode "default"
|
|
bindsym Escape mode "default"
|
|
bindsym mod3+Escape mode "default"
|
|
}
|
|
bindcode $mod+Shift+58 mode "$mode_monitor"
|
|
|
|
# Audio setup
|
|
set $mode_audio Audio Output (h) HDMI, (s) S/PDIF
|
|
mode "$mode_audio" {
|
|
bindsym h exec pactl set-card-profile alsa_card.pci-0000_00_1f.3 output:hdmi-stereo, mode "default"
|
|
bindsym s exec pactl set-card-profile alsa_card.pci-0000_00_1f.3 output:iec958-stereo, mode "default"
|
|
bindsym Return mode "default"
|
|
bindsym mod3+Return mode "default"
|
|
bindsym Escape mode "default"
|
|
bindsym mod3+Escape mode "default"
|
|
}
|
|
bindcode $mod+Shift+40 mode "$mode_audio"
|
|
|
|
|
|
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|