aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-11-03 18:20:52 +0100
committerDavid Runge <dave@sleepmap.de>2017-11-03 18:20:52 +0100
commit7c83b3d1839711e6266fab2cd64f694c88cea7e9 (patch)
tree322c869e0fd0d1f7f549beab2fe88ab567737a5a /bin
parent7b820c99dbc1f2fbba8ea86212a0d6d911f0b4ec (diff)
downloaddotfiles-7c83b3d1839711e6266fab2cd64f694c88cea7e9.tar.gz
dotfiles-7c83b3d1839711e6266fab2cd64f694c88cea7e9.tar.bz2
dotfiles-7c83b3d1839711e6266fab2cd64f694c88cea7e9.tar.xz
dotfiles-7c83b3d1839711e6266fab2cd64f694c88cea7e9.zip
bin/setup_screens: Fixing if statements.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/setup_screens12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/setup_screens b/bin/setup_screens
index 995dab6..1a84bba 100755
--- a/bin/setup_screens
+++ b/bin/setup_screens
@@ -78,14 +78,14 @@ function set_configuration()
if [ -n "$action" ]; then
case "$action" in
"open")
- if [ $(get_configuration_fingerprint "docked-open") = "$fingerprint" ]; then
+ if [ $(get_configuration_fingerprint "docked-open") == "$fingerprint" ]; then
echo "Loading docked-open."
state=1
autorandr -l docked-open
fi
;;
"close")
- if [ $(get_configuration_fingerprint "docked-closed") = "$fingerprint" ]; then
+ if [ $(get_configuration_fingerprint "docked-closed") == "$fingerprint" ]; then
echo "Loading docked-closed."
state=1
autorandr -l docked-closed
@@ -96,14 +96,14 @@ function set_configuration()
# check the lid state
case "$lid_state" in
"open")
- if [ $(get_configuration_fingerprint "docked-open") = "$fingerprint" ]; then
+ if [[ $(get_configuration_fingerprint "docked-open") == "$fingerprint" ]]; then
echo "Loading docked-open."
state=1
autorandr -l docked-open
fi
;;
"closed")
- if [ $(get_configuration_fingerprint "docked-closed") = "$fingerprint" ]; then
+ if [[ $(get_configuration_fingerprint "docked-closed") == "$fingerprint" ]]; then
echo "Loading docked-closed."
state=1
autorandr -l docked-closed
@@ -118,7 +118,7 @@ function set_configuration()
# else if not docked
else
if [ "$action" = "open" ]; then
- if [ $(get_configuration_fingerprint "external") = "$fingerprint" ]; then
+ if [[ $(get_configuration_fingerprint "external") == "$fingerprint" ]]; then
echo "Loading external."
state=1
autorandr -l external
@@ -127,7 +127,7 @@ function set_configuration()
fi
# if the screen still has not been setup, try using internal
if [ $state -ne 1 ]; then
- if [ $(get_configuration_fingerprint "internal") = "$fingerprint" ]; then
+ if [[ $(get_configuration_fingerprint "internal") == "$fingerprint" ]]; then
echo "Loading internal."
autorandr -l internal
fi