Text align right?

Forums Desktop Info Text align right?

This topic contains 4 replies, has 2 voices, and was last updated by Avatar V0id3dLif3 4 months, 1 week ago.

  • Author
    Posts
  • #1839 Reply
    Avatar
    V0id3dLif3

    First of thanks a bill man I love this simple display over rain-meter,

    So I would like to align my Titles to the right top of the info displayed, I’m a completely new and didn’t find any docs of aligning text.

     [options]
    
    # size and position
    monitor-mode=0
    monitor-num=1
    top=0
    right=0
    width=360
    formcolor=662525
    
    # font
    font-face=Arial
    font-size=10
    font-charset=1
    font-rtl=0
    ssfontsize=16
    
    # logging
    log=desktopinfo.log
    log-level-error
    
    [text]
    noresults=<n/a>
    error=[error]
    null-result=<null>
    
    [pages]
    1=Main Page
    
    [items]
    
    # page 1 date/time
    COMMENT=active:1,interval:0,color:DDDDDD,style:biu,text:Date|Time & Website
    DATETIME=active:1,interval:2,color:ffdd00,display:%1[ddd] %2[1.0d] %3[mmm] %4[yyyy]\, %5[1.0a]:%6[2.0d] %5[2.0p]
    
    # page 1 - Website
    CONTROL=active:1,type:1,text:Website,display:SystemTechnique.Net,uri:https://SystemTechnique.net
    
    #page 1 - GPU & CPU
    COMMENT=active:1,interval:0,color:DDDDDD,style:biu,text:GPU|CPU Info
    DISPLAYCONTROLLER=active:1
    CPUTYPE=active:1
    WMI=active:1,interval:5,text:CPU Info,namespace:root\cimv2,query:Win32_Processor,display:Cores:%NumberOfCores%|   Speed:%MaxClockSpeed%MHz|   Current:%CurrentClockSpeed%MHz
    CPU=active:1,interval:3,chart:line linear 100 1 00ff00 2 0000bb,threshold1:1 80 0000ff,threshold2:2 40 0000ff,display:Tot: %1[2.0f]%\, Krnl: %2[2.0f]%\, Queue: %3
    CPUUSAGE=active:1,interval:3,font-size:8,count:8,display:%1%,chart:bar linear 100 1 80
    
    # page 1 - memory
    COMMENT=active:1,interval:0,color:DDDDDD,style:biu,text:Ram Info
    PHYSICALRAM=active:1,interval:5,color:ffd0e0,threshold1:3 80 0000FF,chart:bar linear 100 3 80,display:%1[3.1b]B / %2[3.1b]B (%3% used)||
    VIRTUALMEMORY=active:1,interval:5,chart:bar linear 100 3 80,display:%1[3.1b]B / %2[3.1b]B (%3% used)||
    PAGEFILE=active:1,interval:5,display:%1[3.1b]B / %2[3.1b]B (%3% used)
    
    # page 1 - disks
    COMMENT=active:1,interval:0,color:DDDDDD,style:biu,text:Disk Info
    FIXEDDISK=active:1,interval:300,color:ffbb77,chart:none linear 100 7 60,threshold1:7 90 0000FF,count:8,display:%1: %3[1.0B]B/%5[1.0B]B (%7% used),filter:
    DISKIO=active:1,interval:5,font-size:8,chart:none log 23 1 00ffff 2 ffff00,threshold1:1 5000000 2222dd,threshold2:2 5000000 0055dd,display:r:%1[3.1B]B/s\, w:%2[3.1B]B/s\, q:%3
    
    # page 1 - network
    COMMENT=active:1,interval:0,color:DDDDDD,style:biu,text:Network Info
    REGISTRY=active:1,interval:600,tree:0,text:Firewall,key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\EnableFirewall,display:%1[b:Active:Not Active]
    NETPACKETS=active:1,interval:5,display:r:%1[1.0n]  s:%2[1.0n]
    NETPACKETSRATE=active:1,interval:5,text:Net Rate,mtu:1500,display:r:%1[1.1b]Bps  s:%2[1.1b]Bps
    WMI=active:1,interval:60,font-size:12,text:Network Latency, namespace:root\cimv2,query:Win32_PingStatus where address='google.com',display:%ResponseTime%ms (google.com)
    NETWORKINTERFACES=active:1,interval:30,color:22dddd,operstatus:1,iftype:6 71,display:%2| %8 / %10| mac:%4| gw:%17| dns:%15| dhcp:%19| link: t:%23[1.0B]Bps\, r:%24[1.0B]Bps
    WMI=active:1,interval:3,hide-no-result:1,font-size:8,chart:line log 22 1 00ff00 2 bb00bb,threshold1:1 1500000 0000ff,threshold2:2 500000 ff0000,text:Wifi Traffic,namespace:root\cimv2,query:Win32_PerfFormattedData_Tcpip_NetworkInterface where Name like "%Wireless%" and CurrentBandwidth>0,display:R: %BytesReceivedPersec%[3.1k]KiBps\, S: %BytesSentPersec%[3.1k]KiBps\, B: %CurrentBandwidth%[1.0B]B
    HTTPGET=active:1,interval:600,text:External IP,source:http://plain-text-ip.com/
    
    0
  • #1841 Reply
    Glenn
    Glenn
    Keymaster

    What do you mean by “Titles”

    0
  • #1842 Reply
    Avatar
    V0id3dLif3

    COMMENT=active:1,interval:0,color:DDDDDD,style:biu,text:GPU|CPU Info

    Align Title to right

    0
    • #1844 Reply
      Glenn
      Glenn
      Keymaster

      ok. Not currently.

      There is a global option called text-align that will set the alignment for the left column text for every item except COMMENT, FILECONTENTS2 and FILE2TEXT. This is not what you want. You want to be able to override that per item. So I will add a common item option called text-align that will override the global setting.

      0
  • #1850 Reply
    Avatar
    V0id3dLif3

    Awesome

    0
Reply To: Text align right?
Your information:




Do NOT follow this link or you will be banned from the site!