summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-03-29 22:41:03 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-03-30 11:42:04 -0700
commit4c97a6f5379fca8fd35660a2933e6dea21a6d37b (patch)
tree2db329c795fa269619aa2e0b3486bfab7344724c /bin
parent2b88c7bc5159946fb4c900df53a5e0dd945933f2 (diff)
downloaddotfiles-4c97a6f5379fca8fd35660a2933e6dea21a6d37b.tar.gz
archive set-half-brightness
/usr/local/bin/set-brightness not installed by consfig atm.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/i3-startup-always4
-rwxr-xr-xbin/set-half-brightness5
2 files changed, 2 insertions, 7 deletions
diff --git a/bin/i3-startup-always b/bin/i3-startup-always
index 0954ef2e..fd643ca0 100755
--- a/bin/i3-startup-always
+++ b/bin/i3-startup-always
@@ -59,7 +59,7 @@ fi
# machine-specific display settings
if [ "$(hostname -f)" = "iris.silentflame.com" ]; then
- set-half-brightness
+ # set-half-brightness
if xrandr | grep "VGA-1 connected"; then
xrandr \
--output VGA-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal \
@@ -70,7 +70,7 @@ if [ "$(hostname -f)" = "iris.silentflame.com" ]; then
--output LVDS-1 --primary --mode 1366x768 --pos 0x0 --rotate normal
fi
elif [ "$(hostname -f)" = "melete.silentflame.com" ]; then
- set-half-brightness
+ # set-half-brightness
# need this to set --primary, to ensure that i3 tray icons appear on
# laptop monitor
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
diff --git a/bin/set-half-brightness b/bin/set-half-brightness
deleted file mode 100755
index 5f2efa60..00000000
--- a/bin/set-half-brightness
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/perl -w
-
-open $fh, "<", "/sys/class/backlight/intel_backlight/max_brightness";
-$max = <$fh>;
-system qw|sudo set-brightness|, $max/2;