Created
May 13, 2025 04:28
-
-
Save apsun/59dbed713839202cbfde88b7ad6df9e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set brightness | |
bright() { | |
dbus-send \ | |
--dest=com.ddcutil.DdcutilService \ | |
--type=method_call \ | |
/com/ddcutil/DdcutilObject \ | |
com.ddcutil.DdcutilInterface.SetVcp \ | |
int32:1 string: byte:0x10 uint16:"$1" uint32:0 | |
} | |
# Set volume | |
vol() { | |
dbus-send \ | |
--dest=com.ddcutil.DdcutilService \ | |
--type=method_call \ | |
/com/ddcutil/DdcutilObject \ | |
com.ddcutil.DdcutilInterface.SetVcp \ | |
int32:1 string: byte:0x62 uint16:"$1" uint32:0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment