Advertisement
Ri0n

del sr mode on exit connected output

Mar 6th, 2024
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. output=$(xrandr | grep -o '.* connected' | awk '{print $1}')
  4. xrandr --listModes | grep 'SR-1_' | awk '{print $2}' | while read -r mode; do
  5.     xrandr --delmode "$output" "$mode"
  6. done
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement