You are not logged in.

#51 2019-03-01 23:09:26

damo
....moderator....
Registered: 2015-08-20
Posts: 4,966

Re: bl-exit replacement suggestions

hhh wrote:

You left out keyboard accelerators, or am I mistaken? But something like this is all that's needed, right? Not tested...

--field="!$BTN_LOGOUT!_Log out!":fbtn 'bash -c "logoutctl terminate-session"' \

Nah, you need text for accelerators. It's easy enough to tab or arrow to the icon you want though.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#52 2019-03-01 23:12:02

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

damo wrote:

Now we're cookin'!

Indeed we are, this thread has been productive! My lithium install is a dual session with my earlier KDE buster one. I've barely booted into Plasma in the last month and haven't missed it once, lithium is that good.

Offline

#53 2019-03-01 23:14:00

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

damo wrote:
hhh wrote:

You left out keyboard accelerators, or am I mistaken? But something like this is all that's needed, right? Not tested...

--field="!$BTN_LOGOUT!_Log out!":fbtn 'bash -c "logoutctl terminate-session"' \

Nah, you need text for accelerators. It's easy enough to tab or arrow to the icon you want though.

Roger that, a trade-off for eye-candy.

Offline

#54 2019-03-01 23:32:20

damo
....moderator....
Registered: 2015-08-20
Posts: 4,966

Re: bl-exit replacement suggestions

^ By now, for shutdown my muscle-memory goes "Super-x, right, right, right, enter" big_smile


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#55 2019-03-02 05:35:08

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

hhh wrote:

-edit- Changed the Reboot accelerator to Alt-b, r has a conflict on my system.

I should have put it there to start with, it ties it to the same key I'm used to with a command line launch to reboot bl-exit -b

hhh wrote:

Damn. Close enough to what I envisioned, though, I can certainly live with this. It has everything you need, and it's fast, simple, pretty damn easy to customize and pretty!

@Bearded_Blunder, thanks again! This is a great contribution, and an unexpected one at that. smile

I do occasionally do other stuff besides complain wink

damo wrote:

Now we're cookin'! Reproducing the current bl-exit, with tooltips instead of text labels  ....

I like it, puts a bl "trademark" back smile I'm afraid that I've little clue with yad.

Starting to feel much more sanguine about the change, pleased you guys seem to like my little contribution.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#56 2019-03-02 07:52:07

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

hhh wrote:

Showing the Alt key pressed and mouse-hover...

https://cdn.scrot.moe/images/2019/03/01/Screenshot_2019-03-01_16-13-47.md.png

    -v|--vertical-simple) yad --form --columns 1 --width=130 --title "Exit" --borders=7 --class=WmanExit --window-icon=gnome-logout \
                       --no-buttons --undecorated --center --on-top \
                       --field=" _Logout!gnome-logout!":fbtn 'bash -c "logoutctl terminate-session"' \
                       --field=" _Suspend!gnome-session-suspend!":fbtn 'bash -c "logoutctl suspend"' \
                       --field=" Re_boot!system-reboot!":fbtn 'bash -c "logoutctl reboot"' \
                       --field=" _Power Off!gnome-shutdown!":fbtn 'bash -c "logoutctl poweroff"' \
                       | grep -v "|" &
                   exit 0
                   ;;

I'd love to see what it looks like with the form contents aligned left, but I am utterly failing. Help!

*I can't test this* (owing to not having a numberpad & the 255 has to be done on the numpad) but *try* making all the text fields match in length using alt+255 "non-breaking" spaces, they'll be handled differently from regular spaces.  I think it's alt+255 been a while since I had a numberpad & used those odd characters that way...

If that works but isn't perfect, you might need to tell yad some monospaced font so all characters occupy the same width.

Update, it's a yukky font but you wanted to see what left justified looks like:

yad --form --columns 1 --width=130 --title "Exit" --borders=7 --class=WmanExit --window-icon=gnome-logout \
16                        --no-buttons --undecorated --center --on-top \
17                        --field="<span font='Liberation Mono'>Log Out  </span>!gnome-logout!_Logout":fbtn 'bash -c "logoutctl terminate-session"' \
18                        --field="<span font='Liberation Mono'>Suspend  </span>!gnome-session-suspend!_Suspend":fbtn 'bash -c "logoutctl suspend"' \
19                        --field="<span font='Liberation Mono'>Reboot   </span>!system-reboot!Re_boot":fbtn 'bash -c "logoutctl reboot"' \
20                        --field="<span font='Liberation Mono'>Shut Down</span>!gnome-shutdown!_Power Off":fbtn 'bash -c "logoutctl poweroff"' \
21                        | grep -v "|" &
22                    exit 0

That's using plain ordinary spaces.  Works even better if you start from the block with the accelerators in the right field glasses

Last edited by Bearded_Blunder (2019-03-02 11:52:56)


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#57 2019-03-02 11:22:07

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

Bearded_Blunder wrote:

Starting to feel much more sanguine about the change, pleased you guys seem to like my little contribution.

Uh, like? It's our bl-exit replacement, buddy, with full credit to you! The only reason I haven't marked this thread [SOLVED] is that we're still cookin' with fire.

Sorry to be nostalgic, but this thread is the best of what #! forums were and BL forums are.

Screenshot_2019-03-01_19-13-36.th.png

Offline

#58 2019-03-02 11:30:53

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

We'll have to name it something other than bl-exit, since that package already exists. Suggestions? BB-exit? blunder-exit? @Bearded, it's your script, you get to name it.

Offline

#59 2019-03-02 11:35:17

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

Whatever you like, yeah I see bunsen-exit exists as a package & it can't clash, I'd been thinking of it as bunsen-exityad becomes clear from the name what the interface is.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#60 2019-03-02 11:41:51

damo
....moderator....
Registered: 2015-08-20
Posts: 4,966

Re: bl-exit replacement suggestions

I'm in the process of making the script more modular, with drop-in vars for the dialogs. That should make it easier to have a variety of options and styles just from script parameters, without hard-coding every possible dialog. (I may need an associative array specialist like @johnraff for that though  monkey  )

blexit?


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#61 2019-03-02 11:42:47

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

bl-yad_exit it is, thanks. And on my system it will always be blunder-exit. wink

Offline

#62 2019-03-02 11:48:54

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

damo wrote:

I'm in the process of making the script more modular, with drop-in vars for the dialogs. That should make it easier to have a variety of options and styles just from script parameters, without hard-coding every possible dialog.

Sounds like a good improvement, and BTW I really did like what you did recreating the current interface :-)

I might have tried something like it myself, just hadn't tracked down the image paths.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#63 2019-03-02 12:23:04

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

hhh wrote:

And on my system it will always be blunder-exit. wink

lol bl-blunderout just for your system tongue


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#64 2019-03-02 12:34:52

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

Bearded_Blunder wrote:

bl-blunderout just for your system tongue

Done.

Screenshot_2019-03-02_07-35-14.md.png

Offline

#65 2019-03-02 15:05:18

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,052

Re: bl-exit replacement suggestions

Bearded_Blunder wrote:

If that works but isn't perfect, you might need to tell yad some monospaced font so all characters occupy the same width.

Update, it's a yukky font but you wanted to see what left justified looks like:

That's using plain ordinary spaces.  Works even better if you start from the block with the accelerators in the right field glasses

Works pretty well with Roboto Mono as the font.
@hhh, Roboto Mono installed by default?

Screenshot_2019-03-02_09-59-48.th.png

bl-blunderout just for your system

Should be the name for every system  monkey

Last edited by PackRat (2019-03-02 15:06:00)


You must unlearn what you have learned.
    -- yoda

Offline

#66 2019-03-02 15:33:19

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

I just picked the first monospaced font I saw listed by

yad --font

That'll give you a preview of the ones it knows about.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#67 2019-03-02 15:43:32

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,052

Re: bl-exit replacement suggestions

^ that's another handy yad command; I created a *.desktop file for that.


You must unlearn what you have learned.
    -- yoda

Offline

#68 2019-03-03 19:03:59

damo
....moderator....
Registered: 2015-08-20
Posts: 4,966

Re: bl-exit replacement suggestions

Icons only; Horizontal text only; Vertical aligned...

bb-exit.sh -mi &
bb-exit.sh -m &
bb-exit.sh -v &

exit.th.jpg


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#69 2019-03-03 21:59:24

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

PackRat wrote:

Works pretty well with Roboto Mono as the font.
@hhh, Roboto Mono installed by default?

It is not by default, but if you're suggesting it we'll certainly consider it.

Offline

#70 2019-03-03 22:19:49

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

Looking good to me @damo though seeing them all at once points up the button labels are inconsistent Restart PC vs Reboot, was that my error? I wouldn't put it past me monkey  I probably adapted the "minimalist" version for my alignment demo or some-such rushing things oversight.  They probably both want to say "Reboot", given @hhh likes alt+b for the accelerator.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#71 2019-03-03 22:28:53

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

Bearded_Blunder wrote:

@hhh likes alt+b for the accelerator.

I've seen Alt-b used in other DEs before, I'm sure. On my current lithium setup, Alt-r opens the resize-window cursor/arrow keys and takes precedence over the exit script shortcut. I'll have to check my rc.xml and see if I have done something silly there.

-edit- Nope, search string not found. No clue why I'm getting this behavior, but a simple enough workaround.

Offline

#72 2019-03-03 22:41:41

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

hhh wrote:

I've seen Alt-b used in other DEs before, I'm sure.

Seems a good enough reason right there, I didn't consider making that comparison.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

#73 2019-03-03 22:48:11

damo
....moderator....
Registered: 2015-08-20
Posts: 4,966

Re: bl-exit replacement suggestions

Bearded_Blunder wrote:

Looking good to me @damo though seeing them all at once points up the button labels are inconsistent Restart PC vs Reboot, was that my error? I wouldn't put it past me monkey  I probably adapted the "minimalist" version for my alignment demo or some-such rushing things oversight.  They probably both want to say "Reboot", given @hhh likes alt+b for the accelerator.

It is just a demo of various layouts. If we decide to run with a variety of options it is easy enough to make labels and accelerators consistent. BTW the icons-only theme has tooltips for mouse-hover.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#74 2019-03-03 22:56:17

hhh
Meep!
Registered: 2015-09-17
Posts: 7,916
Website

Re: bl-exit replacement suggestions

damo wrote:

If we decide to run with a variety of options it is easy enough to make labels and accelerators consistent.

Of course we should, it's one of the appeals of this solution, like tint2, conky selector, theme options in general. It was one of the reasons we went with bl-exit in the first place.

BTW the icons-only theme has tooltips for mouse-hover.

Nice!

Last edited by hhh (2019-03-03 22:58:56)

Offline

#75 2019-03-03 22:56:18

Bearded_Blunder
Dodging A Bullet
From: Seat: seat0; vc7
Registered: 2015-09-29
Posts: 730

Re: bl-exit replacement suggestions

Just thought I'd mention it is all, not meant as a criticism.


Blessed is he who expecteth nothing, for he shall not be disappointed...
If there's an obscure or silly way to break it, but you don't know what.. Just ask me

Offline

Board footer

Powered by FluxBB