Thursday, January 28, 2016

Install PhpStorm on OpenSUSE

1. Download PhpStorm from JetBrains
2. Unzip the folder and copy it into a destination where you want to keep.
3. Go To the copied folder and navigate into Bin folder.
4. In a bin folder, open terminal window.
5. Type ./phpstorm.sh and hit Enter
6. Then you're done! :)

Kate Terminal Not Working on OpenSUSE

If Kate terminal is not working on your OpenSUSE device, it might be because of konsole not being installed on your computer.

Just enter the following command in terminal to install konsole:

sudo zypper in konsole

and then it should work.
Good Luck!

Wednesday, November 25, 2015

How to Add Low Battery Warning on OpenSUSE

Simply follow these steps:

If you prefer to do it using a GUI, you can go to the Software Center and install Scheduled tasks (or run sudo zypper install gnome-schedule). It will provide a powerful GUI to add cron tasks.

Note that if you use this method, tasks by default will be executed as your own user, not as root. This is usually a good thing.

Once installed this application, search "Scheduled Tasks" and Open it.
Now, Click on New
Click on "A task that launches recurrently"
Now Add description for example: VK Battery Check
On the command, Add: /home/vkpandey/Extras/scripts/CheckBattery.sh
On the Time and Date Option, click on Advanced
In the Minute section, add */5 that means at minute: */5 (in every 5 minutes)
and leave Hour, Day, Month, Weekday *


Now create a following CheckBattery.sh script in any location (For example: /home/vkpandey /Extras/scripts)

#!/bin/bash
BATTERY=$(upower -e | grep 'BAT')
while [ 1 ]
do
    BATTERY_PERCENTAGE=$(upower -i $BATTERY|grep percentage|awk '{ print $2 }'|sed s/'%'/''/g)
    if [[ "$BATTERY_PERCENTAGE" -lt "20" ]]; then
    notify-send --urgency=critical "WARNING: Battery is about to die"  "Hello Vijaya!! Plug in the power cable"
    play /usr/share/sounds/KDE-Sys-Warning.ogg &> /dev/null
    fi
sleep 10
done
**Don't forget the file permission of CheckBattery.sh

Now All Done!

Assign Win + E Key to Open Home Folder [OpenSUSE]

Here is the trick to Assign Win + E Key to Open Home Folder [OpenSUSE]:

1. go to Settings.
2. search for Keyboard.
3. Move to tab "shortcuts"
4. Go to Launchers
5. Click on "Home Folder" option.
6. Click on the right side (you will see New Accelerator or something)
7. press windows + E (also called Super + E)
8. Now on the right side it shows "Super + E"

Finally you're done. That will create a keyboard shortcut to open home folder. Press Super + E to see the result.

Monday, November 23, 2015

Show Desktop Items on OpenSUSE

To show the desktop items on OpenSUSE, follow these steps:

1. Type Tweak Tool on search bar.
2. Go to Desktop tab
3. On the Top Right Side, change Off button to On.

Now, you're all set.

How to Hide All Normal Windows on OpenSUSE?

Here is the trick to show desktop / hide all normal windows on OpenSUSE:

1. go to Settings.
2. search for Keyboard.
3. Move to tab "shortcuts"
4. Go to Navigation
5. Scroll down to find "Hide All Normal Windows".
6. Click on the right side (you will see New Accelerator or something)
7. press windows + D (also called Super + D)
8. Now on the right side it shows "Super + D"

Finally you're done. Press Super + D to see desktop.

Monday, November 16, 2015