From 29585ffbff59b33b39159c42c66b86720804764a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 21 Nov 2018 01:28:17 +0100 Subject: [PATCH] add autorun for pcmanfm and a check for tmux_dev --- roles/lxde/files/config_files/pcmanfm/LXDE/pcmanfm.conf | 3 +++ roles/shell/bash/templates/bashrc.j2 | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 mount_removable=1 autorun=1 +[autorun] +x-content/bootable-media=pcmanfm + [ui] always_show_tabs=0 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() { tmux new-session -d -c $start_dir -s "$type" \; \ $m -t "$type" \; \ new-window -c $start_dir - else + elif [ -d "$HOME/workdir/$type" ]; then tmux new-session -d -c "$HOME/workdir/$type" -s "$type" \; \ $m -t "$type" \; \ send-keys "../start" C-m \; \ rename-window "running" \; \ new-window -c "$HOME/workdir/$type" + else + echo "Unknown session" >&2 + false fi fi } -- 2.41.0