1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_linux_desktop_setup.git synced 2024-09-14 19:54:51 +02:00

Copy start script

This commit is contained in:
L3D 2018-11-23 17:34:43 +01:00
parent 1550884e5d
commit 74cc88fee3
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 23 additions and 0 deletions

15
files/start.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
i3s=$(i3-msg -t get_workspaces)
if [ '[]' == "$i3s" ]; then
echo "i3 not running"
else
if [ ! -f /tmp/autostart ]; then
tmux new-session -s i3-pannel -n etc -d 'sleep 5; /usr/bin/nm-applet --no-agent'
tmux new-window -t i3-pannel:1 -n nextcloud 'sleep 30; /usr/bin/nextcloud'
touch /tmp/autostart
else
ddate
fi
fi

View file

@ -16,3 +16,11 @@
group: "{{ user }}" group: "{{ user }}"
mode: 0644 mode: 0644
- name: copy start
copy:
src: files/start.sh
dest: /opt/start.sh
owner: "root"
group: "root"
mode: 0644