LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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

Resetting Workrave's suspended mode to normal every day

Posted 07-11-2019 at 08:23 AM by the dsc (linux-related notes)
Updated 07-11-2019 at 08:24 AM by the dsc

Add this to any start-up script, running before workrave itself:

Code:
gsettings set org.workrave.general operation-mode 0
Partly based on this, which didn't work:
https://askubuntu.com/questions/3837...in-normal-mode


'gsettings list-recursively | grep workrave" may help if they change something.

I don't get why use such thing rather than each program having its own txt config file. I thought...
Member
Posted in Uncategorized
Views 1491 Comments 0 the dsc is offline
Old

Apparently there's some "race condition" that can wipe-out bash history if you break some kinds of loops

Posted 07-10-2019 at 01:18 PM by the dsc (linux-related notes)
Updated 07-10-2019 at 01:20 PM by the dsc

At least that's what apparently happened to me.
On Unix' stack exchange I've found this handy way of recovering it, partly at least, if you happen to have another terminal open, from before the wipe-out:

Code:
history | cut -c 8- > histback_user1.txt
The person who gave this tip suggested doing it in "every terminal", but I believe it would just overwrite it completely for whatever number of times one did it, with the simple ">." In order...
Member
Posted in Uncategorized
Views 475 Comments 0 the dsc is offline
Old

Chrome/ium userstyle that creates larger buttons for scrolling up and down.

Posted 07-08-2019 at 02:41 PM by the dsc (linux-related notes)
Updated 07-08-2019 at 02:54 PM by the dsc

I mostly use the scrollbar as "buttons," clicking below or above the handler, rather than grabbing the handler itself. So when I've scrolled down quite a bit, I'll often mistakenly click above the handler when I really wanted to scroll down. That's kind of possibly solved if those barely useful up and down buttons were large enough to be more useful than pressing page up, down, or arrow keys instead. So this usercss does that:

Code:
::-webkit-scrollbar {
  width: 12px;
...
Member
Posted in Uncategorized
Views 2516 Comments 0 the dsc is offline
Old

Bash script to create a unified pactl-rexima-amixer command

Posted 06-23-2019 at 11:32 PM by the dsc (linux-related notes)
Updated 06-23-2019 at 11:39 PM by the dsc

For reasons I don't fully comprehend, every now and then, one or more of these tools won't work, but hopefully at least one will. In order to preserve openbox' rc.xml key bindings, I came up with this script that "unifies" simple commands to lower or increase the volume:
Code:
 #!/bin/bash
rexima vol ${1} && exit 0
pactl set-sink-volume 0 ${1}% && exit 0 
pactl set-sink-volume 1 ${1}% && exit 0
val=${1#+} ; val=${val#-} 
amixer
...
Member
Posted in Uncategorized
Views 1024 Comments 0 the dsc is offline
Old

After quite a long time and many failed attempts, I've managed to get Dolphin to "see" the trash bin on a partition it missed

Posted 05-29-2019 at 04:13 PM by the dsc (linux-related notes)
Updated 10-11-2020 at 05:02 PM by the dsc

For some reason, and I can't fathom what, Dolphin only saw the home's trash and two additional partitions, but missed another one. Even PCManFM-QT was able to see and use that trash partition, while files deleted there wouldn't show up on Dolphin/Konqueror (which wouldn't delete them when emptying), and files over there deleted from D/K would be dumbly moved to the home partition.

I'm sure that besides trying to create brand new Trash folders, I've even tried to copy (preserving...
Member
Posted in Uncategorized
Views 556 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 11:18 PM.

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