diff --git a/.config/i3/config b/.config/i3/config index 440fa18..9cb3208 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -129,7 +129,7 @@ set $ws10 "10" # Define monitor outputs set $internal eDP1 -set $external_1 DP2-3 +set $external_1 DP2-2 set $external_tv DP2-1 # switch to workspace @@ -257,7 +257,7 @@ bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightne bindsym XF86Tools exec $HOME/scripts/toggleTouchpad.sh # toggle touchpad # Media player controls -bindsym XF86AudioPlay exec playerctl play +bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPause exec playerctl pause bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous diff --git a/bin/monitor-layout b/bin/monitor-layout deleted file mode 100755 index e51b3bb..0000000 --- a/bin/monitor-layout +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/bash - -XRANDR=$(which xrandr) - -MONITORS=( $( ${XRANDR} | awk '( $2 == "connected" ){ print $1 }' ) ) - - -NUM_MONITORS=${#MONITORS[@]} - -TITLES=() -COMMANDS=() - - -function gen_xrandr_only() -{ - selected=$1 - - cmd="xrandr --output ${MONITORS[$selected]} --auto " - - for entry in $(seq 0 $((${NUM_MONITORS}-1))) - do - if [ $selected != $entry ] - then - cmd="$cmd --output ${MONITORS[$entry]} --off" - fi - done - - echo $cmd -} - - - -declare -i index=0 -TILES[$index]="Cancel" -COMMANDS[$index]="true" -index+=1 - - -for entry in $(seq 0 $((${NUM_MONITORS}-1))) -do - TILES[$index]="Only ${MONITORS[$entry]}" - COMMANDS[$index]=$(gen_xrandr_only $entry) - index+=1 -done - -## -# Dual screen options -## -for entry_a in $(seq 0 $((${NUM_MONITORS}-1))) -do - for entry_b in $(seq 0 $((${NUM_MONITORS}-1))) - do - if [ $entry_a != $entry_b ] - then - TILES[$index]="Dual Screen ${MONITORS[$entry_a]} -> ${MONITORS[$entry_b]}" - COMMANDS[$index]="xrandr --output ${MONITORS[$entry_a]} --auto \ - --output ${MONITORS[$entry_b]} --auto --left-of ${MONITORS[$entry_a]}" - - index+=1 - fi - done -done - - -## -# Clone monitors -## -for entry_a in $(seq 0 $((${NUM_MONITORS}-1))) -do - for entry_b in $(seq 0 $((${NUM_MONITORS}-1))) - do - if [ $entry_a != $entry_b ] - then - TILES[$index]="Clone Screen ${MONITORS[$entry_a]} -> ${MONITORS[$entry_b]}" - COMMANDS[$index]="xrandr --output ${MONITORS[$entry_a]} --auto \ - --output ${MONITORS[$entry_b]} --auto --same-as ${MONITORS[$entry_a]}" - - index+=1 - fi - done -done - - -## -# Generate entries, where first is key. -## -function gen_entries() -{ - for a in $(seq 0 $(( ${#TILES[@]} -1 ))) - do - echo $a ${TILES[a]} - done -} - -# Call menu -SEL=$( gen_entries | rofi -dmenu -p "Monitor Setup:" -a 0 -no-custom | awk '{print $1}' ) - -# Call xrandr -$( ${COMMANDS[$SEL]} )