Calamares Bug Fix - Click here to read


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to set "Shutdown" as default or forcused?
#1

System Specs
Operating System – Linux LiteLinux Lite 7.4
CPU / ProcessorCore i7 3520M
Memory (RAM)8 GB
StoragemSATA SSD
Graphics (GPU)Intel HD Graphics 4000
Network deviceCentrino advanced n-6205
Well, I am trying to find a way to set ¨Shutdow" as default option or forcused when I cliick on "Logout button" in the lower part of the start menu. As I almost always shutdown the computer and almost never logout, it is much better for me to have ¨Shutdown" focused. Then, I´d only have to press ¨Enter¨ to shutdown.

By searching on the internet, I found the following solution.

sudo nano /usr/local/bin/xfce-logout-focus.sh

Then, input;

#!/bin/bash
/usr/bin/xfce4-session-logout
sleep 0.25
xdotool key Tab key Tab

(You need to install xdotool for this to work.)

sudo chmod +x /usr/local/bin/xfce-logout-focus.sh

Then, Alt+F3, and edit "Logout" to execute this command instead. 

This works when I select ¨Launch¨ from the dropdown from "Logout", as well as from the shortcut placed on the desktop, but the "Shutdown button" in the lower part of the start menu does not work. It seems it does not execute this script.

So, my question is;
Is it possible to "edit" Shutdown switch", which is in the lower part of the start menu, so it execute the scriipt?
If not, is there another (and easy) way to have "Shutdown" focused or selected when I logout?

Can someone help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)