]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
add autorun for pcmanfm and a check for tmux_dev
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Wed, 21 Nov 2018 00:28:17 +0000 (01:28 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Wed, 21 Nov 2018 00:28:17 +0000 (01:28 +0100)
roles/lxde/files/config_files/pcmanfm/LXDE/pcmanfm.conf
roles/shell/bash/templates/bashrc.j2

index facaa64e53744724850b6036d5271ba347e5f56b..75e164deb7baa6c9f04c7369a143046eaed53425 100644 (file)
@@ -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
index 91311e5eb8060276f668f48d138c6f83f3f74782..bf5acfafcb3dc3f695a59cae8712b3d06f4c4dd5 100644 (file)
@@ -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
 }