Add bin scripts
This commit is contained in:
parent
40d3235275
commit
a68a460131
7
bin/switch-to-laptop-screen.sh
Executable file
7
bin/switch-to-laptop-screen.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -ueo pipefail
|
||||||
|
|
||||||
|
xrandr \
|
||||||
|
--output eDP-1 --mode 1920x1200 \
|
||||||
|
--output DP-3 --off
|
7
bin/switch-to-monitor.sh
Executable file
7
bin/switch-to-monitor.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -ueo pipefail
|
||||||
|
|
||||||
|
xrandr \
|
||||||
|
--output DP-3 --mode 2560x1440 \
|
||||||
|
--output eDP-1 --off
|
11
bin/watch-changes
Executable file
11
bin/watch-changes
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$1" ] && [ "$2" ]; then
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
inotifywait --event modify --exclude ".null-ls_*" --recursive $1 2> /dev/null
|
||||||
|
$2
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "usage: watch-changes <file> <command>"
|
||||||
|
fi
|
Loading…
Reference in a new issue