dotfiles/i3/.i3/scripts/work-layout.sh

21 lines
315 B
Bash
Executable File

#!/bin/sh
ENV_FILE="/home/jfm/.i3/env"
/bin/cat <<EOM >$ENV_FILE
export LAPTOP="eDP1"
export PRIMARY="DP1-2"
export SECONDARY="DP1-3"
export LDPI_PROFILE="default"
export HDPI_PROFILE="laptop"
EOM
. $ENV_FILE
killall polybar &
sleep 1
polybar primary &
polybar secondary &
polybar laptop &
nitrogen --restore &