DISPLAY_PROTOCOL Variable and separate monitor resolutions (On X11)

Added a DISPLAY_PROTOCOL variable
Resolution information has been converted to a Golang function and now lists different monitors separately
This commit is contained in:
2024-05-15 16:37:09 +03:00
parent 2984a7da5f
commit 7ed54ec1a5
4 changed files with 61 additions and 22 deletions
-6
View File
@@ -9,12 +9,6 @@ command_exists() {
fi
}
get_screen_resolution() {
if xhost >& /dev/null && command_exists xdpyinfo; then
xdpyinfo | grep dimensions | tr -s ' ' | cut -d " " -f3
fi
}
get_packages() {
ARRAY=()
if command_exists dpkg; then