LinuxQuestions.org
Help answer threads with 0 replies.
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.
Rate this Entry

Circumventing some questionable webdesign practices with keybindings

Posted 02-12-2024 at 07:12 PM by the dsc
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:
<keybind key="W-A-Up">
    <action name="Execute">
      <command>xdotool click 4</command></action>
  </keybind>
  
   <keybind key="W-A-Down">
    <action name="Execute">
      <command>xdotool click 5</command></action>
  </keybind>
Those clicks are what xev says are the scroll buttons on the mouse wheel.
Still not as handy as having some kind of magic CSS with stylus or something that makes scrollbars always visible (I think I even had one that did that, maybe it doesn't always work, but perhaps it's turned off), but it's something.


Gosh... back in the "Google reader" era I thought the internet would progress to be come "pipes" of content only minimally formatted to be read from something like google reader itself, or some application like a standalone feed reader instead of a website on the browser. But more and more it seems the tendency is a total "verticalization" of content in terrible sites like face-book and the like, each with its own inane web-design choices. And infinite scrolling without pages reigns supreme.
Posted in Uncategorized
Views 101 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



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