2

I have used unclutter but it only remove the cursor while the command is running in the terminal. It does not provide the permanent solution. I do not want to run the command every time.

Presently what I am doing is that I am calling a script form desktop file

from /etc/xdg/autostart/single_start.desktop

the desktop file **single_start.desktop **

enter #!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false'
Exec=bash /etc/xdg/autostart/single.sh
Name=Chromiumrelaunch
Comment=comment here
Icon=icon path here

the file **single.sh **is

#!/bin/bash

lxterminal -e unclutter -idle 1 &
sleep 10
xdotool windowminimize $(xdotool getactivewindow)

So the unclutter terminal window still comes so I am using xdotool to minimize the window. What I want is that unclutter works permanently in the background.

9
  • 1
    Possible duplicate of Execute a command on user logon Commented Oct 22, 2018 at 6:29
  • After adding the command in startup script, the unclutter terminal remains open . It does not run in the background. Commented Oct 22, 2018 at 6:41
  • What is the command you are running? What have you done exactly? Commented Oct 22, 2018 at 7:10
  • There is desktop file which runs on start up and under that i am running a shell script. The shell script is located at /etc/xdg/autostart/shell.sh Commented Oct 22, 2018 at 8:04
  • What are the contents of that file? Please add all this information to your question. Commented Oct 22, 2018 at 9:17

1 Answer 1

1

Just add unclutter to your desktop environment’s startup applications. It won’t open a terminal and stay running in background.

If you invoke unclutter from within a script don’t forget adding &

unclutter &

I recommend giving xbanish a try which implements the -keystroke option broken in unclutter

Refer to this thread for more infos about compiling xbanish

Edit: You do not need to run unclutter in terminal to make it work.

1
  • I did that. I have put & at the end. Commented Oct 23, 2018 at 7:53

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.