Advertisement
Celes_

Untitled

May 4th, 2025 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. monitor="DP-3" #Your monitor name
  4. file="Your_hyprland.conf_path"
  5. bckpfile="$file.bak"
  6.  
  7. cp "$file" "$bckpfile"
  8.  
  9. sed -i "s/^monitor = $monitor,.*/monitor = $monitor,disable/" "$file"
  10. sleep 10
  11.  
  12. mv "$bckpfile" "$file"
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement