Linux Mint – Cinnamon – Launch Expo View from command line – Launch Scale (Overview) View

Here is my config


Because I use Workspace grid (2D) and switcher to have my workspaces as a grid, I cannot use the shortcuts to show Expo view and Scale view. (The applet override the shortcuts to navigate through workspaces).

So I added my own custom keyboard shortcuts !

Expo view command

sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.ShowExpo >/dev/null'


Scale view command

sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.ShowOverview >/dev/null'



LaTeX – Todonotes inline without specifying the inline argument

I use the todonotes package for LaTeX.

But I mostly use the inline command of it.

In order to avoid having to repeat the same argument again and again, I define this new command

\newcommand{\todoin}[1][]{\todo[inline, #1]}

Now I can simpy write


And it will appear as an inline todo note

Expect script – Read / write file

Thanks to this source :

To read data from a file in an Expect script:

#!/usr/bin/expect -f

set fd "input.txt"
set fp [open "$fd" r]
set data [read $fp]

# Read line by line

foreach line $data {

puts "$line\r"


And to write data to a file:

#!/usr/bin/expect -f

set outputFilename "output.txt"
set outFileId [open $outputFilename "w"]

puts -nonewline $outFileId "A first line\n"
puts -nonewline $outFileId "A second line\n"

#Close file descriptor to ensure data are flush to file
close $outFileId

Windows – Install many software in a simple command line

Chocolatey NuGet allow you to install software with a simple command line.

Easy install

Open a terminal and enter the following command.
Check the Chocolatey NuGet website to get the last version

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(''))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

You can now install a lot of software using a easy command

choco install git