The Following 2 Users Say Thank You to Ancelad For This Useful Post: | ||
|
2014-05-21
, 11:26
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#1602
|
@Ancelad
I am interested in using your script as a bed-side clock when charging. I quickly tried this:
Code:#!/bin/sh #call AmberClock.sh color font size sed -i "/LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {/,/color/c\\ LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {\\ font: \$FONT_FAMILY_"$2" "$3"mm;\\ color: #"$1";\\ /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css sleep 1 && /sbin/initctl stop xsession/sysuid && sleep 1 && /sbin/initctl start xsession/
sh -c "echo rootme | devel-su -c '/home/user/MyDocs/.AmberClock/AmberClock.sh 000000 light 1'"
What would be the correct way to add two numbers to these areas? In each parameter there is a negative (-) and the other is a positive (+). As it appears above, all negative numbers can be the same as each other, and all positives can be the same as each other.
Thanks!
The Following User Says Thank You to Ancelad For This Useful Post: | ||
|
2014-05-21
, 15:19
|
Posts: 649 |
Thanked: 762 times |
Joined on Mar 2012
@ Ohio
|
#1603
|
Don't try to change other parameters like preferred-size - it is widget style. You should use "1" as parameter $3 in my original script, for example
And your clock will disappear. Just tested - it works...Code:sh -c "echo rootme | devel-su -c '/home/user/MyDocs/.AmberClock/AmberClock.sh 000000 light 1'"
|
2014-05-21
, 16:38
|
|
Posts: 1,552 |
Thanked: 3,108 times |
Joined on Jun 2012
@ Russia, 96
|
#1604
|
#!/bin/sh #call AmberClock.sh color font size sed -i "/LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {/,/maximum/c\\ LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {\\ font: \$FONT_FAMILY_"$2" "$3"mm;\\ color: #"$1";\\ \margin-left: 0;\\ \margin-right: 0;\\ \\ \margin-top: -1.7mm;\\ \margin-bottom: 1.7mm;\\ \padding-left: 0;\\ \padding-right: 0;\\ \padding-top: 0;\\ \padding-bottom: 0;\\ preferred-size: -1 -1;\\ minimum-size: -1 -1;\\ maximum-size: -1 -1;\\ " /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css sleep 1 && /sbin/initctl stop xsession/sysuid && sleep 1 && /sbin/initctl start xsession/sysuid
The Following User Says Thank You to Ancelad For This Useful Post: | ||
|
2014-05-21
, 17:33
|
Posts: 649 |
Thanked: 762 times |
Joined on Mar 2012
@ Ohio
|
#1605
|
Try this
It also use $1, $2 and $3 parameters. Widget size will be scalable by default.Code:#!/bin/sh #call AmberClock.sh color font size sed -i "/LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {/,/maximum/c\\ LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {\\ font: \$FONT_FAMILY_"$2" "$3"mm;\\ color: #"$1";\\ \margin-left: 0;\\ \margin-right: 0;\\ \\ \margin-top: -1.7mm;\\ \margin-bottom: 1.7mm;\\ \padding-left: 0;\\ \padding-right: 0;\\ \padding-top: 0;\\ \padding-bottom: 0;\\ preferred-size: -1 -1;\\ minimum-size: -1 -1;\\ maximum-size: -1 -1;\\ " /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css sleep 1 && /sbin/initctl stop xsession/sysuid && sleep 1 && /sbin/initctl start xsession/sysuid
|
2014-06-26
, 20:00
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#1606
|
|
2014-06-26
, 22:36
|
Posts: 290 |
Thanked: 385 times |
Joined on Jan 2012
@ Madrid, Spain
|
#1607
|
The Following User Says Thank You to pasko For This Useful Post: | ||
|
2014-06-27
, 04:59
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#1608
|
The Following User Says Thank You to peterleinchen For This Useful Post: | ||
|
2014-06-27
, 12:29
|
Posts: 290 |
Thanked: 385 times |
Joined on Jan 2012
@ Madrid, Spain
|
#1609
|
dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"[ANY]" uint32:0 sleep 5 mc-tool request sofiasip/sip/_313_40172_2e26_2e0_2e20 online
mc-tool list
The Following 2 Users Say Thank You to pasko For This Useful Post: | ||
|
2014-10-11
, 13:45
|
Posts: 30 |
Thanked: 23 times |
Joined on Nov 2010
@ Poland
|
#1610
|
Want Profilematic to do something when a certain bluetooth device connects/disconnects? Read this:
I got bored yesterday and was thinking about listening to dbus-signals (I assume everyone does exactly this when bored). I also happened to try connecting my N9 to my computer via bluetooth. As a result I came up with a sort of proof-of-concept script to get the bluetooth connected/disconnected rule working with Profilematic.
If you want to try it out, you'll need to apt-get install python python-dbus python-gobject (as root). Start the script (python /path/to/script.py (as user)), choose your options and leave it running in terminal. Try connecting/disconnecting the BT device being monitored and see what happens.
The script can be found here.
The script is fully functional but, at the moment, it needs to be started and given options in terminal. If people are interested, I might make it so that the options can be given through a config file or as arguments, so the script could be started on startup.
Please, tell me what you think and if it works for you.
The Following 2 Users Say Thank You to mr666acdc For This Useful Post: | ||
Twitter: @iAncelad
Try my SailfishOS theme for Nokia N9
Mmm, beeeeeer
Last edited by Ancelad; 2014-05-21 at 11:09.