LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Wrapper-script to launch a browser in private/incognito mode if keys control or shift are being held (thought for Openbox menus)

Posted 05-20-2024 at 11:47 AM by the dsc (linux-related notes)
Updated 05-20-2024 at 11:48 AM by the dsc
Tags openbox

While one can do something even more efficient with pure keybindings, or maybe merely first launching the normal window and then a private one, I thought that it was interesting. AFAIK it can't be done purely on Openbox' menu's functionalities alone.

Code:
#!/bin/bash
xinput query-state 9 2>/dev/null | grep "key\[50\]=down\|key\[62\]=down\|key\[37\]=down\|key\[105\]=down" && incognito="--incognito"

echo ${incognito/--} | aosd_cat
...
Member
Posted in Uncategorized
Views 210 Comments 0 the dsc is offline
Old

Fix Google Chrome's ugly thick transparent-but-shadowed borders on compositors such as picom

Posted 05-10-2024 at 08:20 PM by the dsc (linux-related notes)
Updated 05-10-2024 at 10:05 PM by the dsc

By adding this on the "shadow exclude" section:
Code:
"argb && (override_redirect || wmwin)"
Source:

https://github.com/chjj/compton/issu...mment-45407446

They've decided to once again reinvent the same GUI in the latest version of Chrome, but with some added dysfunctionalities or incompatibilities with more or less standard compositor configurations. Its context menus all of a sudden had a rather thick transparent...
Member
Posted in Uncategorized
Views 1304 Comments 0 the dsc is offline
Old

Circumventing some questionable webdesign practices with keybindings

Posted 02-12-2024 at 07:12 PM by the dsc (linux-related notes)
Tags openbox

Some sites seem to assume you'd rather roll the mouse wheel than click and drag the scroll bar, so there's none. Sometimes you can even scroll down with the arrow keys, but that can be somewhat messy, with different sites chosing different parts to have been focused and thus they won't necessarily answer the way you'd expect consistently.

But one can "fake" the mouse wheel with the keyboard and xdotool.

On Openbox, I've just set up:

Code:

...
Member
Posted in Uncategorized
Views 145 Comments 0 the dsc is offline
Old

Precarious work-around to the inability of setting a default pre-selected/focused button on Y.A.D.

Posted 01-31-2024 at 06:11 PM by the dsc (linux-related notes)
Updated 01-31-2024 at 06:17 PM by the dsc
Tags bash, yad

While apparently default button sets like ok/cancel pair or some other that has some additional over those have a default set automatically, so one can just press enter without mouse-clicking the button. But for more custom buttoms it seems that the default focus disappears, and hitting enter does nothing. At least depending on the entirety of the dialog, maybe it has some nonsensical focus on some other area where it doesn't really respond to "enter," like "--picture," maybe...
Member
Posted in Uncategorized
Views 105 Comments 0 the dsc is offline
Old

If you don't have xdg-desktop-portal, and file dialogs don't show up for firefox, edit this on about:config

Posted 01-17-2024 at 01:57 PM by the dsc (linux-related notes)

on about:config there are four or five "xdg" related options. As the wonderful Arch-linux wiki explains:

Quote:
Each setting can have the following values:

0 Never
1 Always
2 Auto (typically depends on whether Firefox is run from within Flatpak or whether the GDK_DEBUG=portals environment is set)

The settings are:

widget.use-xdg-desktop-portal.file-picker Whether to use XDG portal for the file picker
...
Member
Posted in Uncategorized
Views 406 Comments 1 the dsc is offline

  



All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration