Files
sway-new-config/add-144hz-mode.sh
2025-07-08 09:36:40 +03:00

13 lines
537 B
Bash
Executable File

#!/bin/bash
# Script to add 144Hz mode to Sway
# Based on the xrandr command: xrandr --newmode "2560x1440_144.00_rb2" 586.59 2560 2568 2600 2640 1440 1529 1537 1543 +hsync -vsync
echo "Adding 144Hz mode to Sway..."
# Add the custom mode using modeline (same timing as xrandr)
swaymsg output HDMI-A-1 modeline "2560x1440_144.00_rb2" 586.59 2560 2568 2600 2640 1440 1529 1537 1543 +hsync -vsync
# Set the mode
swaymsg output HDMI-A-1 mode 2560x1440_144.00_rb2
echo "144Hz mode should now be active. Check with: swaymsg -t get_outputs"