Posts

Showing posts from 2019

Recording the Screen/Window and Audio of Your Computer

Image
Case: I want to record the screen (or window) and audio (coming from the microphone and the speakers) of my computer in a video file.   Requisites: Open Broadcaster Software (OBS) is installed. Steps: Open OBS. Go to 'Settings'.  Set the 'Recording Path' for the recording and the format to use. Set the video resolution, the base and output resolution must be the same, play with these values if you see that OBS is recording one part of the expected output. Add the video source to record (+), use 'Display Capture' if you want to record the total screen or 'Window Capture' if you want to record only a specific application window.  Create a new source, use the name you want. Select the specific window to record.   Validate in the preview if what you see is what you expect. Start the recording. Stop the recording when you think is the right time.     Go to the output path and you will have the recording ready. ...

Notifying When Battery is Full in Linux

Image
Case: I want to be notified by a sounding popup when the battery of my laptop is fully charged. I'm using Debian Linux and Gnome 3 . Requisites: The following applications are installed: sh, upower, paplay, notify-send. Steps: Open a text editor and put this code (adapted from here ): #!/usr/bin/env bash while true do export DISPLAY=:0.0 battery_percent=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -P -o 'percentage: [0-9]+(?=%)' | grep -P -o [0-9]*) if on_ac_power; then echo $on_ac_power if [ "$battery_percent" -gt 92 ]; then paplay /usr/share/sounds/freedesktop/stereo/suspend-error.oga notify-send --urgency CRITICAL "Battery full" "Level: ${battery_percent}% " fi fi sleep 60 # done Save the file with .sh extension in the user's home directory, choice an understandable name, for example: /home/ronald/BatteryCharged.sh ...

Using Gestures to Open Apps in Android

Image
You need to use a calculator, so you take your Android phone and tap on the calculator icon if you have it in the first screen, or you swipe between screens to find and tap the calculator icon. But, if you don't have the calculator in the screen, you tap on the app menu and then you have to look for the calculator (scrolling all the screens needed). On the other hand, you can take your phone tap on a bubble to open a canvas and draw a gesture there to open the calculator, this being possible in any screen/app of your phone. To have the last feature described you can use Gesture Magic , after install it you should enable 'Gesture Service' in 'Settings'.   Then you should go to 'Gesture Magic' option. Tap on '+' button in the inferior corner.   Select the action, in this case 'Open Application'. Select the app to be open by a gesture, in this case HIPER Scientific Calculator .  Draw the gesture you want 3 times and save it. ...