Advertisement
Guest User

VLC PowerDevil workaround (KDE 5 / VLC / Linux)

a guest
Oct 22nd, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Comment lines:
  4.  
  5. sed -i '/\[AC\]\[DimDisplay\]/,/^$/{//!s/^/\#/}; s/\[AC\]\[DimDisplay\]/\#\[AC\]\[DimDisplay\]/g' $HOME/.config/powermanagementprofilesrc
  6.  
  7. vlc --started-from-file "${1}"
  8.  
  9. #Uncomment lines:
  10.  
  11. sed -i '/\#\[AC\]\[DimDisplay\]/,/^$/{//!s/\#//}; s/\#\[AC\]\[DimDisplay\]/\[AC\]\[DimDisplay\]/g' $HOME/.config/powermanagementprofilesrc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement