mirror of
https://github.com/JonasunderscoreJones/i3-dotfiles.git
synced 2025-10-23 16:09:19 +02:00
added dotfiles
This commit is contained in:
parent
f6ad05459b
commit
fd3d05434f
466 changed files with 27935 additions and 1 deletions
16
.config/i3/scripts/displayconfig
Executable file
16
.config/i3/scripts/displayconfig
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
#while true
|
||||
#do
|
||||
|
||||
if [[ $(xrandr -d :0 -q | grep ' connected' | wc -l) = "2" ]]; then
|
||||
|
||||
xrandr --output eDP1 --mode 1920x1080 --pos 0x128 --rotate normal --output DP1 --off --output DP1-1 --off --output DP1-2 --primary --mode 1920x1200 --pos 1920x0 --rotate normal --output DP1-3 --off --output DP2 --off --output HDMI1 --off --output HDMI2 --off --output VIRTUAL1 --off
|
||||
|
||||
else
|
||||
|
||||
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP1-1 --off --output DP1-2 --off --output DP1-3 --off --output DP2 --off --output HDMI1 --off --output HDMI2 --off --output VIRTUAL1 --off
|
||||
|
||||
fi
|
||||
#sleep 3
|
||||
#done
|
Loading…
Add table
Add a link
Reference in a new issue