LinuxQuestions.org
Register a domain and help support LQ
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.
Uncategorized Entries with no category
Old

[WORK-AROUND] Bug on dragging windows of KDE/QT apps under openbox

Posted 04-12-2016 at 06:54 PM by the dsc (linux-related notes)
Updated 04-12-2016 at 06:56 PM by the dsc
Tags bug, kde, openbox

If you accidentally (or not) click/hold and drag the left mouse button from the inner area ("client" or "any empty area") in a KDE/QT window, it starts to be dragged/moved along, but it's not dropped when you release the button, unlike the behavior with GTK windows (at least GTK2, I guess). You got to press "enter" or "esc", I guess.

Presumably that doesn't happen under KDE proper/kwin, maybe not even with other window managers, but I didn't...
Member
Posted in Uncategorized
Views 194 Comments 0 the dsc is offline
Old

Disable the annoying command-not-found handler on Ubuntu

Posted 04-04-2016 at 07:17 PM by the dsc (linux-related notes)
Updated 04-04-2016 at 07:18 PM by the dsc

Add on .bashrc:

Code:
unset command_not_found_handle
alias cmdhelp=/usr/lib/command-not-found
So if it's just a typo there's no annoying mini-hang.

I'd rather have something like a "shopt -s safe-command-spell" thing than this, or at least as a first thing.

The alias is just in case you'd rather use for a command you thought you had installed. Sometimes the commands are under somewhat obscure package names, so it can...
Member
Posted in Uncategorized
Views 285 Comments 0 the dsc is offline
Old

It should be possible to add things like "while read $var" to "misspellings"/errors of spell/grammar checkers

Posted 03-31-2016 at 08:40 AM by the dsc (linux-related notes)

It would considerably reduce the odds of temporary insanity.
Member
Posted in Uncategorized
Views 145 Comments 0 the dsc is offline
Old

Mapping the tablet to monitor with the aid of an inkscape, plus fine-grained mouse accuracy

Posted 03-29-2016 at 07:05 PM by the dsc (linux-related notes)
Updated 03-29-2016 at 07:10 PM by the dsc
Tags mouse, tablet, wacom

I'm speaking of the wacom/genius/aiptek "drawing/writing" kind of tablets, not the "big smartphone", mini-PC-embedded-with-touchscreen type, even though cintiqs and the like blur the distinction a bit.

Without a GUI to actually map the correspondence between the tablet and monitor, one method is to first create an image that is just two rectangles: one representing the full area of your tablet, and another rectangle to the proportion you want to use of the tablet...
Member
Posted in Uncategorized
Views 344 Comments 0 the dsc is offline
Old

N00b method to toggle some verbosity on command for bash scripts

Posted 03-29-2016 at 12:32 AM by the dsc (linux-related notes)
Updated 03-29-2016 at 12:34 AM by the dsc
Tags bash, newbie

Just something I came up with that is probably not how actual programmers/scripters(?) would advise, specially the parameter/flag thing which is beside the point here.

Code:
if [[ $1 == "v" ]] ; then

ver(){
echo $@
}

else

ver(){
:    # ":" is a "do nothing" command
}

fi

a=10

echo normal output

ver verbose output $a
...
Member
Posted in Uncategorized
Views 271 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 03:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration