Skip to content

Commit

Permalink
update screens
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Jul 13, 2022
1 parent 264fe7e commit f55ad71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ set $base0F #FF5370

# Start i3bar to display a workspace bar (plus the system information i3status if available)
bar {
status_command i3status -c ~/.dotfiles/.config/i3status/config_$(hostname) | ~/.dotfiles/.config/i3status/i3spotifystatus/pystatus.py
status_command i3status -c ~/.dotfiles/.config/i3status/config_$(hostname)
position top

## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
Expand Down
12 changes: 8 additions & 4 deletions bin/xrandr.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh

#LISTMONITORS=$(xrandr --current --listmonitors | grep -v '^Monitors' | awk '{print $2}' | sed 's/+//' | sed 's/*//' | sort)
LISTMONITORS=$(xrandr --current --listmonitors | grep -v '^Monitors' | awk '{print $NF}' | sort | tr '\n' ' ' | sed 's/ $//g')

[ -f /proc/acpi/button/lid/LID0/state ] && LID_STATE=$(grep -oE '[^ ]+$' /proc/acpi/button/lid/LID0/state)
Expand All @@ -14,13 +13,18 @@ case "${LISTMONITORS}" in
i3-msg "workspace 2, move workspace to output HDMI-3"
;;
'DP1-1 DP3 eDP1')
#xrandr --setprovideroutputsource modesetting NVIDIA-0
# xrandr --dpi 96 \
# --output eDP1 --auto --scale .5x.5 \
# --output DP3 --primary --auto --left-of eDP1 \
# --output DP1-1 --auto --left-of DP3 --rotate right
xrandr --dpi 96 \
--output eDP1 --auto --scale .5x.5 \
--output DP3 --primary --auto --left-of eDP1 \
--output eDP1 --off \
--output DP3 --primary --auto \
--output DP1-1 --auto --left-of DP3 --rotate right
i3-msg "workspace 1, move workspace to output DP3"
i3-msg "workspace 2, move workspace to output DP1-1"
i3-msg "workspace 3, move workspace to output eDP1"
#i3-msg "workspace 3, move workspace to output eDP1"
pkill xautolock ; xset s off ; xset -dpms ; xset s noblank
;;
'DP-1-1 DP-3 eDP-1')
Expand Down

0 comments on commit f55ad71

Please sign in to comment.