start-post-i3 524 Bytes
Newer Older
Nico Schottelius's avatar
init  
Nico Schottelius committed
1 2 3
#!/bin/sh

# Restore layouts
4 5
i3-msg 'workspace 1; append_layout ~/.i3/workspace-1.json'
i3-msg 'workspace 2; append_layout ~/.i3/workspace-2.json'
Nico Schottelius's avatar
Nico Schottelius committed
6
i3-msg 'workspace 10'
Nico Schottelius's avatar
init  
Nico Schottelius committed
7 8

# Start programs afterwards and watch matching
Nico Schottelius's avatar
Nico Schottelius committed
9 10
if command -v firefox; then
    firefox &
Nico Schottelius's avatar
Nico Schottelius committed
11
if command -v chromium; then
Nico Schottelius's avatar
Nico Schottelius committed
12
    chromium &
Nico Schottelius's avatar
Nico Schottelius committed
13
elif command -v chromium-browser; then
Nico Schottelius's avatar
Nico Schottelius committed
14 15
    chromium-browser &
fi
16

17 18 19 20 21
if [ -f /etc/arch-release ]; then
    SSH_ASKPASS=/usr/bin/qt4-ssh-askpass ssh-add </dev/null && mainemacs &
else
    ssh-add </dev/null && mainemacs &
fi