13 lines
537 B
Bash
Executable File
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" |