Compare commits
4 Commits
4fa1d623bd
...
38ee918732
Author | SHA1 | Date | |
---|---|---|---|
38ee918732 | |||
f7b659fdd9 | |||
8425d4b953 | |||
621ec9a722 |
13
external-monitor.sh
Executable file
13
external-monitor.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if xrandr | grep 'HDMI-A-0' | grep connected >/dev/null; then
|
||||||
|
# Turn off laptop monitor
|
||||||
|
xrandr --output eDP --off
|
||||||
|
# Make sure it's running at 144hz
|
||||||
|
xrandr --output HDMI-A-0 --mode 1920x1080 --rate 144
|
||||||
|
# Enable tear free
|
||||||
|
xrandr --output HDMI-A-0 --set TearFree on
|
||||||
|
else
|
||||||
|
# Just enable tearfree
|
||||||
|
xrandr --output eDP --set TearFree on
|
||||||
|
fi
|
3
start-dwl
Executable file
3
start-dwl
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec dbus-launch --exit-with-session dwl
|
3
start-hyprland
Executable file
3
start-hyprland
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec dbus-launch --exit-with-session Hyprland
|
21
toggle-xrandr
Executable file
21
toggle-xrandr
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
doIt() {
|
||||||
|
if xrandr | grep 'HDMI-A-0' | grep connected >/dev/null; then
|
||||||
|
xrandr --output HDMI-A-0 --set TearFree "$1"
|
||||||
|
else
|
||||||
|
xrandr --output eDP --set TearFree "on"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
"on")
|
||||||
|
doIt "on"
|
||||||
|
;;
|
||||||
|
"off")
|
||||||
|
doIt "off"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "That option doesn't exist"
|
||||||
|
;;
|
||||||
|
esac
|
8
vpn
8
vpn
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
up () {
|
up () {
|
||||||
transmission-remote --exit
|
transmission-remote --exit
|
||||||
sudo wg-quick up myvpn
|
sudo wg-quick up $1
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
down () {
|
down () {
|
||||||
sudo wg-quick down myvpn
|
sudo wg-quick down $1
|
||||||
start-program transmission-daemon
|
start-program transmission-daemon
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$1" = "up" ] && up
|
[ "$2" = "up" ] && up $1
|
||||||
[ "$1" = "down" ] && down
|
[ "$2" = "down" ] && down $1
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user