From: Ismaƫl Bouya Date: Wed, 21 Nov 2018 00:28:17 +0000 (+0100) Subject: add autorun for pcmanfm and a check for tmux_dev X-Git-Tag: v1.0~4 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=29585ffbff59b33b39159c42c66b86720804764a;p=perso%2FImmae%2FConfig%2FAnsible.git add autorun for pcmanfm and a check for tmux_dev --- 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 }