SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#26 2015-09-05 07:26:50

ostrołęk
CB Member
Registered: 2015-08-13
Posts: 110

Re: How about a simple logout?

Played with Yad again, and here is the result. Its still raw.
Logout_Yad.jpg
smile

Note: A helper on bash scripting, http://ryanstutorials.net/bash-scripting-tutorial/
Some thoughts from here, http://pclosmag.com/html/issues/201201/page12.html

Last edited by ostrołęk (2015-09-05 07:32:18)

Offline

Be excellent to each other!

#27 2015-09-05 09:00:35

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: How about a simple logout?

iMBeCil wrote:
nore wrote:

Switching power off by pressing the power button is enough for me ...

Depends on how far away from other keys the poweroff button is ]:D

this. under the table...
but then again, the exercise would probably do me some good  8)

Offline

#28 2015-09-05 09:38:07

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: How about a simple logout?

@ostrolk -- nice, I like it!
smile

In terms of BASH resources, this is probably the best around:
http://mywiki.wooledge.org/BashGuide

Offline

#29 2015-09-05 15:17:27

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: How about a simple logout?

Sector11 wrote:

I don't type so well:

### Terminal ShutDown  ###
alias lot='kill -9 -1'
alias rbt='systemctl reboot'
alias off='systemctl poweroff'

First one is: "logout" and I figure if Windows can have a [Start] I can have an [off]  big_smile

I read your shortness aliases somewhere,

I must write some damn text  smile , ofcourse we can cut to a single character but i think it seems more logical to write a five words you know smile


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#30 2015-09-05 16:09:38

ostrołęk
CB Member
Registered: 2015-08-13
Posts: 110

Re: How about a simple logout?

Actually, you can take away the word systemctl in all scripts I've posted here. Only in logout, it should be still openbox --exit, as the word exit is a command. You can simply write suspend, reboot and poweroff.

The simplest way to reboot, for example is to write reboot in the gmrun window and click enter. If you write openbox --exit there you'd logout.

Last edited by ostrołęk (2015-09-05 16:10:41)

Offline

#31 2015-09-05 16:13:15

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: How about a simple logout?

ostrolk wrote:

You can simply write suspend, reboot and poweroff.

In my (sid) system, systemctl was symlinked to /sbin/{reboot,poweroff} so that would only work if /sbin was in your user's $PATH

Whilst this may be true of #! & BL, it is certainly not true for a vanilla Debian installation.

Offline

#32 2015-09-05 18:17:56

ostrołęk
CB Member
Registered: 2015-08-13
Posts: 110

Re: How about a simple logout?

Head_on_a_Stick wrote:
ostrolk wrote:

You can simply write suspend, reboot and poweroff.

In my (sid) system, systemctl was symlinked to /sbin/{reboot,poweroff} so that would only work if /sbin was in your user's $PATH

Whilst this may be true of #! & BL, it is certainly not true for a vanilla Debian installation.

You are right here, HoaS. I forgot to write that I had copied those links from /usr/sbin to /usr/bin. I don't have a #! or BL install, only a Debian install and I adopted some Arch ways into it. That's why it work this way. Other Debian users (#! & BL users too) could do that if they want to.  smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo