bash function for rpm whatprovides
Sometimes some simple one-liner function can save you a lot of time, like-
wps () { rpm -q --whatprovides $(which $1 ) } # ---------- end of function wps ----------
Sometimes some simple one-liner function can save you a lot of time, like-
wps () { rpm -q --whatprovides $(which $1 ) } # ---------- end of function wps ----------
So, I have been looking for a wallpaper manager with some features like:
automatically change wallpaper from my directory list
Get wallpapers from internet
Possibly display time and a quote.
Variety does all of that. From variety website :
Variety is a wallpaper manager for Linux systems. It supports numerous desktops and wallpaper sources, including local files and online services: Flickr, Wallhaven, Unsplash, and more.
Where supported, Variety sits as a tray icon to allow easy pausing and resuming. Otherwise, its desktop entry menu provides a similar set of options.
Continue reading
Lot of times, I want to find the directories with maximum number of files and so I wrote this quick function to do exactly the same
function count_lines () { oldIFS=$IFS count=0 IFS=$'\n' dir=${1:-.} cd $dir find . -type d |while read line do echo -n "$(find $line -type f |wc -l) $line" echo printf "Directories :: %8d\r" $count >&2 ((count++)) done|sort -n IFS=$oldIFS } # ---------- end of function count_lines ----------
Been looking for this for a long time, finally there is some app which allows me to run a linux distro without rooting my gadget.
Here is link to userland.tech website. Check this out, its easy to setup and does not require rooting your device.
xev – print contents of X events
So other day I was checking why my play key was not working and wanted to check if it maps to one of the X default mappings for the keyboard and was stuck on how to check this. And finally found that I can try this:
xev -event keyboard
Pretty neat 🙂
These are some of the image viewers that I know, pick your choice 🙂
1
sudo yum install imageinfo.i686 gtkimageview.i686 imagej.noarch gimmage.i686 gpicview.i386 gthumb.i686 immix.i686 mirage.i686 pony.noarch viewnior.i686 fotoxx.i686