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

19 lines
275 B
Bash
Raw Normal View History

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