summaryrefslogtreecommitdiff
path: root/scripts/gamma.sh
diff options
context:
space:
mode:
authordavidovki <david@davidovski.xyz>2023-03-10 17:06:03 +0000
committerdavidovki <david@davidovski.xyz>2023-03-10 17:06:03 +0000
commitb71fd9bbb97c32cd90a2d8f1c817cd601a79fff6 (patch)
treeeb8f4f7ffde01b464ba412ed25fdfef9b92ebe0e /scripts/gamma.sh
parent3538699954861f86ab89019c30a3ff1d332b7511 (diff)
Fix websearch to use browser env var
Diffstat (limited to 'scripts/gamma.sh')
-rwxr-xr-xscripts/gamma.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gamma.sh b/scripts/gamma.sh
index c470275..796b561 100755
--- a/scripts/gamma.sh
+++ b/scripts/gamma.sh
@@ -1,10 +1,10 @@
#!/bin/bash
-MAIN_DP=DP-1;
+MAIN_DP=eDP1;
v=$1
if [ $# -ne 0 ]; then
xrandr --output $MAIN_DP --gamma $(paste -d" " <(xrandr | grep " connected" | cut -f1 -d " ") <(xrandr --current --verbose | grep "Gamma" | cut -f7 -d" " | cut -f1 -d":" | xargs -I % echo "1/%") | grep $MAIN_DP | cut -d" " -f2 | xargs -I % echo "%*$v" | bc -l)
else
- xrandr --output $MAIN_DP --gamma 1.3
+ xrandr --output $MAIN_DP --gamma 1
fi