LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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

"Show original directory" on Dolphin5, as a Service Menu

Posted 09-11-2016 at 05:29 PM by the dsc (linux-related notes)
Updated 09-11-2016 at 05:33 PM by the dsc

It used to be a native function of Konqueror/Dolphin4, but apparently it's rubbish and should be a service menu, so here's my attempt at it.

Code:
# This is free, open-source, and all that kind of stuff 
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all
Actions=goToRealPath;
ServiceTypes=KonqPopupMenu/Plugin

[Desktop Action goToRealPath]
Name=Go To Real Path
Exec=dolphin "$(dirname
...
Member
Posted in Uncategorized
Views 249 Comments 0 the dsc is offline
Old

Clock at the top-right corner "instead of" on the taskbar

Posted 09-10-2016 at 08:41 PM by the dsc (linux-related notes)
Updated 09-10-2016 at 08:50 PM by the dsc
Tags eyecandy

I like an auto-hiding taskbar, but a downside to it is that the clock is always hidden. Not that it's tremendously hard to just move the mouse over it in order to raise the clock again, but at the same time, often there is wasted space near the upper-right corner, that could well be used for a clock.

The easiest way to do it is simply with the osd_clock program:

Quote:
osd_clock -t -o -10 -r -s 1 -c "#DCDCDC" -F "%a %d %b %y %I:%M __________________________________________"
...
Member
Posted in Uncategorized
Views 235 Comments 0 the dsc is offline
Old

Handy 1-liner script to copy link addresses in Firefox just by hovering and pressing a key

Posted 09-06-2016 at 11:58 AM by the dsc (linux-related notes)
Updated 10-30-2016 at 02:11 AM by the dsc (grammerz und orthographicz ure wrongzes)

Let's say, there is a page with several interesting podcasts, you want to download several of them, not all. Don't bother with dozens of right-click-copy-url-then-go-and-paste-somewhere-somehow. Just hover the link and press a custom key that runs this script line:

Code:
xdotool click 3 && xdotool mousemove_relative 5 5 && xdotool key a && echo "$(xclip -o)" >> /dev/shm/ffclipboard
For Debian (sid/testing, as of 2016), apparently...
Member
Posted in Uncategorized
Views 346 Comments 0 the dsc is offline
Old

Bash variables storing the output of commands run them at each variable statement, not just at some eventual invocation

Posted 08-10-2016 at 04:30 PM by the dsc (linux-related notes)
Updated 08-10-2016 at 04:33 PM by the dsc
Tags bash

Meaning that a script line such as:

nowstatus=`mpc | grep '#' | cut -d '/' -f1`

Is running mpc, grep and cut at its very statement, not only from an eventual "echo $nowstatus".

Therefore, in scripts that parse differently the same output of a given command, it may be preferable to first store this output in a temporary file, and then parse this file rather than running the same command several times. Such as in the lines added below their equivalent...
Member
Posted in Uncategorized
Views 463 Comments 0 the dsc is offline
Old

Tiny optimizations that you might forget every time you (re)install linux

Posted 06-18-2016 at 03:29 PM by the dsc (linux-related notes)

I don't (re)install that often, so I completely forgot there were some types video-acceleration options that could be set in a tiny xorg.conf to speed things up a little. Fortunately it's a paralell install to one I'm sort of abandoning, so I still have it:

Code:
Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
        Option "AccelMethod" "sna"
#	   Option      "TearFree"
...
Member
Posted in Uncategorized
Views 459 Comments 0 the dsc is offline

  



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