Tag Info

New answers tagged

0

As the dialog suggests, there's a Unity plugin that provides decorations. You can find it in the Desktop section of ccsm. In the Decorations tab, Check Override Theme Settings then set the shadow colors to be 0 percent opaque. No more shadows!


1

Here's a pretty simple script that can be added as Startup Application and will run continuously. Insert the command you want to run upon detecting change in power method, as specified in the comments. #!/bin/bash # Author: Serg Kolo # Date: June 17,2015 # Description: this script detects changes in # the powering method, and does something user # ...


0

Here is a generic approach: #!/bin/bash status="$(grep -Po '^charging\s+state:\s+\K.*$' /proc/acpi/battery/BAT0/state)" if [[ $status = 'charging' ]]; then ##Charging, Do something elif [[ $status = 'discharging' ]]; then ##Discharging, Do something elif [[ $status = 'charged' ]]; then ##Charged, Do something else ##Battery not found, ...


0

When you plug/unplug a power cable any scripts in /etc/pm/power.d are run with a "true" argument when you plug in and a "false" argument when you unplug. Adding some script to the end of that file should make it run. If you have a lot of script to run, you should try adding a line that looks like this: if [ -f /path/to/the/script ]; then . ...


0

The following provides info about RAM disk usage at a quick glance, i.e. how much memory is committed to a specific ramdisk. It can easily be integrated into a conkyrc: mkdir -pv /mnt/ramdisk/.ramdisk DF_RESULTS_FILE=/mnt/ramdisk/.ramdisk/df_ramdisk_results.txt df -h | grep -e /mnt/ramdisk > $DF_RESULTS_FILE DF_RESULTS_STRING=$(cat $DF_RESULTS_FILE) ...


0

The most likely explanation is just that conky is not counting that memory as "used" memory. What is "used" and what is "available" memory is not a simple black and white in Linux or any modern OS. For example, the system cache (including the hard disk cache) is "used" in the sense that memory is allocated to it, but is "free" in the sense that it's only ...



Top 50 recent answers are included