doti3/bin/i3_switch_monitor_wrapper.sh

4 lines
127 B
Bash
Executable file

#!/bin/sh
exec ~/bin/i3_switch_monitor.sh $(xrandr | grep ' connected' | sed 's/ primary//' | awk '{print $3}' | cut -dx -f1)