move all existing in subfolders

This commit is contained in:
trnq1ll0 committed 2025-03-11 23:16:02 +01:00
1 parent cc069f63ef
commit 6491336e60
48 files changed

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#! /bin/bash
export DISPLAY=:0
export XAUTHORITY=/home/rob/.Xauthority
function connect(){
#echo "HDMI angesteckt" >> /home/rob/hdmi1.txt
#xrandr --output HDMI1 --above LVDS1 --preferred --primary --output LVDS1 --preferred
xrandr --output HDMI1 --mode 1920x1080 --pos 0x0 --primary --output LVDS1 --preferred --mode 1366x768 --pos 274x1080
}
function disconnect(){
#echo "HDMI rausgezogen" >> /home/rob/hdmi1.txt
xrandr --output HDMI1 --off
xrandr --output LVDS1 --preferred --mode 1366x768
}
xrandr | grep "HDMI1 connected" &> /dev/null && connect || disconnect