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:
parent
1550884e5d
commit
74cc88fee3
2 changed files with 23 additions and 0 deletions
15
files/start.sh
Executable file
15
files/start.sh
Executable 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue