diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-21 01:28:17 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-21 01:28:17 +0100 |
commit | 29585ffbff59b33b39159c42c66b86720804764a (patch) | |
tree | 0267a8bd4c209fada1cf3806eadb921df194944a | |
parent | 8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1 (diff) | |
download | Ansible-29585ffbff59b33b39159c42c66b86720804764a.tar.gz Ansible-29585ffbff59b33b39159c42c66b86720804764a.tar.zst Ansible-29585ffbff59b33b39159c42c66b86720804764a.zip |
add autorun for pcmanfm and a check for tmux_dev
-rw-r--r-- | roles/lxde/files/config_files/pcmanfm/LXDE/pcmanfm.conf | 3 | ||||
-rw-r--r-- | roles/shell/bash/templates/bashrc.j2 | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/roles/lxde/files/config_files/pcmanfm/LXDE/pcmanfm.conf b/roles/lxde/files/config_files/pcmanfm/LXDE/pcmanfm.conf index facaa64..75e164d 100644 --- a/roles/lxde/files/config_files/pcmanfm/LXDE/pcmanfm.conf +++ b/roles/lxde/files/config_files/pcmanfm/LXDE/pcmanfm.conf | |||
@@ -6,6 +6,9 @@ mount_on_startup=1 | |||
6 | mount_removable=1 | 6 | mount_removable=1 |
7 | autorun=1 | 7 | autorun=1 |
8 | 8 | ||
9 | [autorun] | ||
10 | x-content/bootable-media=pcmanfm | ||
11 | |||
9 | [ui] | 12 | [ui] |
10 | always_show_tabs=0 | 13 | always_show_tabs=0 |
11 | max_tab_chars=32 | 14 | max_tab_chars=32 |
diff --git a/roles/shell/bash/templates/bashrc.j2 b/roles/shell/bash/templates/bashrc.j2 index 91311e5..bf5acfa 100644 --- a/roles/shell/bash/templates/bashrc.j2 +++ b/roles/shell/bash/templates/bashrc.j2 | |||
@@ -74,12 +74,15 @@ function tmux_dev() { | |||
74 | tmux new-session -d -c $start_dir -s "$type" \; \ | 74 | tmux new-session -d -c $start_dir -s "$type" \; \ |
75 | $m -t "$type" \; \ | 75 | $m -t "$type" \; \ |
76 | new-window -c $start_dir | 76 | new-window -c $start_dir |
77 | else | 77 | elif [ -d "$HOME/workdir/$type" ]; then |
78 | tmux new-session -d -c "$HOME/workdir/$type" -s "$type" \; \ | 78 | tmux new-session -d -c "$HOME/workdir/$type" -s "$type" \; \ |
79 | $m -t "$type" \; \ | 79 | $m -t "$type" \; \ |
80 | send-keys "../start" C-m \; \ | 80 | send-keys "../start" C-m \; \ |
81 | rename-window "running" \; \ | 81 | rename-window "running" \; \ |
82 | new-window -c "$HOME/workdir/$type" | 82 | new-window -c "$HOME/workdir/$type" |
83 | else | ||
84 | echo "Unknown session" >&2 | ||
85 | false | ||
83 | fi | 86 | fi |
84 | fi | 87 | fi |
85 | } | 88 | } |