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

21 lines
300 B
Bash
Raw Normal View History

2018-02-09 14:18:35 +01:00
#!/bin/sh
2018-04-22 18:44:43 +02:00
ENV_FILE="/home/jfm/.i3/env"
2018-02-09 14:18:35 +01:00
/bin/cat <<EOM >$ENV_FILE
export LAPTOP="DP1-3"
export PRIMARY="DP1-3"
export SECONDARY="DP1-2"
2018-02-09 14:18:35 +01:00
export LDPI_PROFILE="default"
export HDPI_PROFILE="laptop"
EOM
2018-02-09 14:18:35 +01:00
. $ENV_FILE
killall polybar &
sleep 1
polybar primary &
polybar secondary &
nitrogen --restore &