Monday, October 22, 2012

Assign keyboard shortcut for Terminal in Fedora

Ctrl + Alt + T was not working as a shortcut for terminal in my fedora 17, I was used to gnome so here is the way to assign a shortcut for terminal in fedora.

Search for "shortcuts" in your launcher you should find the keyboard settings application.

Now click on the add new shortcut button.



 Enter name as Terminal and command as gnome-terminal.


Now the command is created to assign a shortcut double click  the created shortcut in custom shortcut, you can now press the desired shortcut keys to assign it to terminal 


You can assign any number of shortcuts in this manner.

Thursday, September 20, 2012

Battery details using Terminal

Recently I installed Xubuntu which being awesome and far better than Ubuntu' s Gnome lacks some of the features like showing estimated battery time remaining.

I tried a lot to  find out a solution for this recently came across a ask Ubuntu thread which describes a way to obtain battery details using Terminal.

Using upower you can get all the battery details.

To view all the details you can use

upower -i /org/freedesktop/UPower/devices/battery_BAT0

Use grep to remove the unwanted details from the above result

upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time|per"

You can create alias for the same command so that you can run it using just the alias that you gave

alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time|per"'

To permanently add this to your system terminal just copy paste the same command to .bashrc or /etc/rc.local

Thursday, September 13, 2012

Permanently adjust screen brightness in Ubuntu 12.04 / Linux Mint 13


This tutorial will help you to adjust the screen brightness in Ubuntu 12.04 / Linux Mint 13 during each boot automatically.

Tested in Intel i7 laptop with Nvidia Graphics Card, this idea will work only if you have a file named brightness in /sys/class/backlight/acpi_video0


To know your systems current brightness level.
cat /sys/class/backlight/acpi_video0/brightness

Change brightness by changing the value 
echo 0 > /sys/class/backlight/acpi_video0/brightness

To permanently set the brightness you can use the rc.loacal script file to change brightness which is executed at each reboot
sudo gedit /etc/rc.local

add the following line above "exit 0" seen at the bottom of the document 
echo 0 > /sys/class/backlight/acpi_video0/brightness
save the file and restart your system.

You may also refer this.
Please free to post issues as a comment.