DEV Community

meotism
meotism

Posted on • Updated on

How to create turn off icon in linux?

Hi, I'm Tuan. Today I will create shutdown icon for linux operating system.

  • you are in a hurry, want to shutdown quickly on ubuntu complicated shutdown operations, type the command that makes you uncomfortable. Let's learn about creating shutdown icon. I will help you to create a turn off icon for ubuntu. You can only install the icon on your computer screen. To create the icon, it must go through the following steps:
  1. Create a file named turn-off.desktop using terminal cat > turn-off.desktop

  2. Turn on write file mode and write the command line:
    [Desktop Entry]
    Version=x.y
    Name=Shut down icon
    Comment = create by Tuan Tran
    Exec=/sbin/shutdown -Ph now
    Icon=/usr/share/icons/Humanity/places/16/folder_home.svg
    Terminal=false
    Type=Application
    Categories=Utility;Application;

    Image description

  3. Left click enable properties and go to permission tab allow executing file as program
    Image description

  4. Right click allow lauching and here is the result:
    Image description
    So you are done creating the shutdown icon. good luck!

Top comments (0)