View Single Post
Old 06-17-2016, 03:24 AM   #13
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
And of course, if you want to feed it a variable title like Branch Delay did, you can do it like this (also stuffed into a function like he used):
PHP Code:
title() {
  
VAL="{\"titleBar\":{\"clientParams\":{\"primary\":\"$@\"}}}"  
  
lipc-set-prop com.lab126.chromebar configureChrome "$VAL"
}

title Hello world!; sleep 3title "This;is;quoted." 
Much like 'echo', quotes are not needed except for some special chars like ';' or '$(', if we use the '$@' parameter instead of '$1'. But still safest to use quotes (and even then some things need a '\' to escape them);

I tried putting a Lenny Face ( ͡° ͜ʖ ͡°) on the title bar, but it does not pack the combined characters together, so the face is broken. However, if you want to try it anyway, here:
PHP Code:
title "\u0028\u0020\u0361\u00B0\u0020\u0035C\u0296\u0020\u0361\u00B0\u0029" 
My PW2 required those extra zeroes (4-digit UTF-8).

Last edited by geekmaster; 06-17-2016 at 04:06 AM.
geekmaster is offline   Reply With Quote