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

19 lines
275 B
Bash
Executable File

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