LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
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 107 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 12:17 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