Scripts: Add scripts for work thinkpad management
This commit is contained in:
parent
be6f27ee3a
commit
39cc2a7d5e
4 changed files with 29 additions and 0 deletions
13
scripts/set_brightness_keyboard.sh
Executable file
13
scripts/set_brightness_keyboard.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
BRIGHTNESS_LEVEL="${1:-}"
|
||||
|
||||
if [ -z "$BRIGHTNESS_LEVEL" ]; then
|
||||
BRIGHTNESS_LEVEL=2
|
||||
echo "No brightness level provided. Setting brightness to: $BRIGHTNESS_LEVEL"
|
||||
fi
|
||||
|
||||
echo "Setting keyboard brightness to: $BRIGHTNESS_LEVEL"
|
||||
|
||||
echo "$BRIGHTNESS_LEVEL" | sudo tee /sys/class/leds/tpacpi::kbd_backlight/brightness
|
||||
|
||||
12
scripts/set_brightness_screen.sh
Executable file
12
scripts/set_brightness_screen.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
BRIGHTNESS_LEVEL="${1:-}"
|
||||
|
||||
if [ -z "$BRIGHTNESS_LEVEL" ]; then
|
||||
BRIGHTNESS_LEVEL=1
|
||||
echo "No brightness level provided. Setting brightness to: $BRIGHTNESS_LEVEL"
|
||||
fi
|
||||
|
||||
echo "Setting screen brightness to: $BRIGHTNESS_LEVEL"
|
||||
|
||||
xrandr --output eDP --brightness "$BRIGHTNESS_LEVEL"
|
||||
2
scripts/xrandr_3.sh
Executable file
2
scripts/xrandr_3.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP --primary --mode 1920x1200 --pos 3134x3757 --rotate normal --output HDMI-A-0 --mode 2560x1440 --pos 2814x2317 --rotate normal --output DisplayPort-0 --off --output DisplayPort-1 --mode 2560x1440 --pos 5374x2317 --rotate normal --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off
|
||||
2
scripts/xrandr_main-type_c.sh
Executable file
2
scripts/xrandr_main-type_c.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP --primary --mode 1920x1200 --pos 0x1124 --rotate normal --output HDMI-A-0 --off --output DisplayPort-0 --off --output DisplayPort-1 --mode 2560x1440 --pos 1920x0 --rotate normal --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off --output DisplayPort-5 --off
|
||||
Loading…
Reference in a new issue