Page 2342 of 2348 FirstFirst ... 1342184222422292233223402341234223432344 ... LastLast
Results 23,411 to 23,420 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #23411
    Join Date
    Oct 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    this is my output terminal


    Code:
    haze@eskawe:~$ idate -u -s
    25/ 6/1439 A.H - Thulatha(Tha) - Jumada II(Jm2)
    haze@eskawe:~$ idate -u -s | awk '{print $7}
    > ^C
    haze@eskawe:~$
    Last edited by julungpujut; March 12th, 2018 at 06:53 PM.

  2. #23412
    Join Date
    Mar 2017
    Beans
    1,018

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by julungpujut View Post
    this is my output terminal


    Code:
    haze@eskawe:~$ idate -u -s
    25/ 6/1439 A.H - Thulatha(Tha) - Jumada II(Jm2)
    haze@eskawe:~$ idate -u -s | awk '{print $7}
    > ^C
    haze@eskawe:~$
    You omitted the last single quotation.
    Code:
    idate -u -s | awk '{print $7}'

  3. #23413
    Join Date
    Oct 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    sorry.. this

    Code:
    haze@eskawe:~$ idate -u -s | awk '{print $7}'
    Jumada

  4. #23414
    Join Date
    Mar 2017
    Beans
    1,018

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by julungpujut View Post
    sorry.. this

    Code:
    haze@eskawe:~$ idate -u -s | awk '{print $7}'
    Jumada
    So that should work in your script.
    Test your hijr-month.sh script in terminal.
    Should give the same output.

    If you like, post your conky config and I can test.

  5. #23415
    Join Date
    Oct 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Thanks, i got some changes but not perfct

    This my conkyrc

    Code:
    -- vim: ts=4 sw=4 noet ai cindent syntax=lua
    --[[
    Conky, a system monitor, based on torsmo
    
    
    Any original torsmo code is licensed under the BSD license
    
    
    All code written since the fork of torsmo is licensed under the GPL
    
    
    Please see COPYING for details
    
    
    Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
    Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
    All rights reserved.
    
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
    ]]
    
    
    --[[
    iprayer code number
    
    
    Specify which angle method calculation to use.  The angle methods that are
    currently supported by ipraytime are,
     1
    Egyptian General Authority of Survey
      Fajr/Isha Angle   : 20/18
      Used in           : Africa, Indonesia, Iraq, 
                          Jordan, Lebanon, Malaysia,
                          Singapore, Syria,
                          Parts of the USA
     2
    University of Islamic Sciences, Karachi (Shaf'i)
      Fajr/Isha Angle   : 18/18
      Used in           : Iran, Kuwait,
                          Parts of Europe
     3
    University of Islamic Sciences, Karachi (Hanafi)
      Fajr/Isha Angle   : 18/18
      Used in           : Afghanistan, Bangladesh,
                          India
     4
    Islamic Society of North America
      Fajr/Isha  Angle  : 15/15
      Used in           : Canada, Parts of UK,
                          Parts of USA
     5
    Muslim World League (MWL)
      Fajr/Isha  Angle  : 18/17
      Used in           : Parts of Europe,
                          Far East, Parts of USA
     6
    Umm Al\-Qurra University
      Fajr/Isha Angl e  : 19/0
      Isha Interval     : 90 minutes from Al\-Maghrib
                          prayer but set to 120
                          during Ramadan.
      Used in           : Saudi Arabia
     7
    Fixed Isha Angle Interval (always 90)
      Fajr/Isha Angle   : 19.5/0
      Isha Interval     : 90 minutes from Al\-Maghrib
                          prayer
      Used in           : Bahrain, Oman, Qatar, UAE
     8
    Egyptian General Authority of Survey (Egypt)
      Fajr/Isha Angle   : 19.5/17.5
      Used in           : Egypt
    ]]
    
    
    conky.config = {
        alignment = 'top_right',
        background = false,
        border_width = 1,
        cpu_avg_samples = 2,
    	default_color = 'white',
        default_outline_color = 'white',
        default_shade_color = 'white',
        draw_borders = false,
        draw_graph_borders = true,
        draw_outline = false,
        draw_shades = false,
        use_xft = true,
        font = 'Ubuntu:size=8',
    
    
        double_buffer = true,
    	no_buffers = true,
    	text_buffer_size = 2048,
    
    
        gap_x = 5,
        gap_y = 60,
        minimum_height = 5,
    	minimum_width = 5,
        net_avg_samples = 2,
        no_buffers = true,
        out_to_console = false,
        out_to_stderr = false,
        extra_newline = false,
        own_window = true,
        own_window_class = 'Conky',
        own_window_type = 'desktop',
        own_window_argb_visual = true,
    	own_window_argb_value = 255,
    	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    	own_window_transparent = true,
        stippled_borders = 0,
        update_interval = 1,
        uppercase = false,
        use_spacer = 'none',
        show_graph_scale = false,
        show_graph_range = false
    }
    
    
    conky.text = [[
    ${color orange}${voffset -40}${font OpenLogos:size=122}v${font} ${font size=22}${voffset -68}${execi 9800  cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
    ${voffset}$color
    ${goto 22}${font good times:size=8}${voffset 4}${exec ~/.conky/sh_location.sh}${offset 24}${font Droid Sans:size=10}${time %A}   $alignc${time %d %B %Y}${font}
    ${voffset 10}${font RadioSpace:size=16}${time %H:%M}${font}
    ${font Ubuntu:size=8}${voffset -12}$alignr${execi 4000 ~/.conky/hijr-date.sh}  ${execi 4000 ~/.conky/hijr-month.sh}   ${execi 4000 ~/.conky/hijr-year.sh} H${font}
    ${voffset -60}${goto 28}${font Masjid Al Imran:size=100}y${font}
    ${voffset -20}${goto 165}Prayer Times
    ${voffset 12}${font}  Fajr     Suhrq     Dzuhur     'Ashr     Maghrib     Isha
    ${voffset 4}${font}${execi 40000 ipraytime -lat -6.5164909 -lon 108.3385978 -a 1 -s, --dst 0| awk 'NR==12 {print " "$2"       "$3"         "$4"       "$5 "     "$6 "        "$7 }'}
    ${voffset 5}${font radiospacebold:size=8}${color #FFA54F}SYSTEM $hr${font}
    $color${font StyleBats:size=8}a${font} ${color grey}Kernel${alignr}$color $kernel
    $color${font StyleBats:size=8}d${font} ${color grey}Machine${alignr}$color $machine
    $color${font StyleBats:size=8}M${font} ${color grey}Host${alignr}$color $nodename
    $color${font StyleBats:size=8}g${font} ${color grey}Uptime${alignr}$color $uptime
    $color${font StyleBats:size=8}n${font} ${color grey}Frequency ${alignr}$color $freq_g Ghz
    $color${font StyleBats:size=8}k${font} ${color grey}Processes ${alignc}$color$processes ${goto 140}${color grey}Running ${alignr}$color$running_processes   
    ${voffset 5}${color #FFA54F}${font radiospacebold:size=8}CPU ${alignr}${cpu cpu} %
    ${voffset 5}$color${font StyleBats:size=8}k${font} ${color grey}CPU 1 ${color #A7D8DE}${goto 65}${cpu cpu1}% ${goto 100}${cpubar cpu1 6,155}
    $color${font StyleBats:size=8}k${font} ${color grey}CPU 2 ${color #A7D8DE}${goto 65}${cpu cpu2}% ${goto 100}${cpubar cpu2 6,155}
    $color${font StyleBats:size=8}k${font} ${color grey}CPU 3 ${color #A7D8DE}${goto 65}${cpu cpu3}% ${goto 100}${cpubar cpu3 6,155}
    $color${font StyleBats:size=8}k${font} ${color grey}CPU 4 ${color #A7D8DE}${goto 65}${cpu cpu4}% ${goto 100}${cpubar cpu4 6,155}
    ${voffset 5}$color${font StyleBats:size=8}l ${font}${color grey}RAM ${goto 100}$memperc%${alignr}$color $mem/$memmax
    ${color #A7D8DE}${membar 4}
    $color${font StyleBats:size=8}4 ${font}${color grey}Swap ${goto 100}$swapperc% ${alignr}$color $swap/$swapmax
    ${color #A7D8DE}${swapbar 4}
    $color${font StyleBats:size=8}x ${font}${color grey}Root ${goto 100}$fs_used_perc%${alignr} $color${fs_used /}/${fs_size /} 
    ${color #A7D8DE}${fs_bar 6 /}${color}
    ${voffset 5}${font radiospacebold:size=8}${color #FFA54F}NETWORK $hr${color}${font}
    ${font wifi:size=8}C ${font}${color grey}SSID ${alignr}$color${wireless_essid wlp1s0}
    ${font PizzaDudeBullets:size=8}N ${font}${color grey}Up ${goto 70}$color${upspeed wlp1s0} kb/s ${color grey}${goto 130}Total${alignr}$color${totalup wlp1s0}
    ${font PizzaDudeBullets:size=8}T ${font}${color grey}Down${goto 70}$color${downspeed wlp1s0} kb/s ${color grey}${goto 130}Total ${alignr}$color${totaldown wlp1s0}
    ${font wifi:size=8}B ${font}${color grey}Channel $color${alignr}${wireless_channel wlp1s0}
    ${font wifi:size=8}B ${font}${color grey}Wireless Mode $color${alignr}${wireless_mode wlp1s0}
    ${font wifi:size=8}5 ${font}${color grey}Quality $color${alignr}${wireless_link_qual_perc wlp1s0} %
    ${font PizzaDudeBullets:size=8}a ${font}${color grey}Local IP ${alignr}$color${addr wlp1s0}
    ${font PizzaDudeBullets:size=8}a ${font}${color grey}Public IP ${alignr}$color${execi 60 wget -O - -q icanhazip.com}
    ${voffset 5}${font radiospacebold:size=8}${color #FFA54F}TOP PROSES $hr${font}
    ${color grey}Name            ${goto 120}  PID   ${goto 160}  CPU% ${goto 210}  MEM%
    ${font StyleBats:size=8}h${font}${color lightgrey} ${top name 1} ${goto 120}${top pid 1} ${goto 160}  ${top cpu 1} ${goto 210} ${top mem 1}
    ${font StyleBats:size=8}h${font}${color lightgrey} ${top name 2} ${goto 120}${top pid 2} ${goto 160}  ${top cpu 2} ${goto 210} ${top mem 2}
    ${font StyleBats:size=8}h${font}${color lightgrey} ${top name 3} ${goto 120}${top pid 3} ${goto 160}  ${top cpu 3} ${goto 210} ${top mem 3}
    ${font StyleBats:size=8}h${font}${color lightgrey} ${top name 4} ${goto 120}${top pid 4} ${goto 160}  ${top cpu 4} ${goto 210} ${top mem 4}
    
    
    
    
    ]]
    This hijr-date.sh

    Code:
    # Get date of Hijr#!/bin/bash
    idate -u | awk 'NR==4 {print $4}' | sed 's/\(.*\)./\1/'
    This hijr-day.sh

    Code:
    # Get day of Hijr#!/bin/bash
    idate -u | awk 'NR==4 {print $8}' | sed 's/\(.*\)...../\1/'
    This hijr-month.sh

    Code:
    # Get month of Hijr#!/bin/bash
    idate -u -s | awk '{print $8}'
    This hijr-year.sh

    Code:
    # Get year of Hijr#!/bin/bash
    idate -u | awk 'NR==4 {print $5}' | sed 's/..\(.*\)/\1/'

    i try to attach last SS, but i dont know, something error.. i can not attach.

  6. #23416
    Join Date
    Mar 2017
    Beans
    1,018

    Re: Post your .conkyrc files w/ screenshots

    For the month, what part of this output do you want to display?
    Code:
    glen@Xubarty:~$ idate -u -s 
    25/ 6/1439 A.H - Thulatha(Tha) - Jumada II(Jm2)
    The script works here.
    The scripts should have the shebang (#!) at the top and be executable.
    eg
    Code:
    #!/bin/bash
    
    # Get month of Hijr
    idate -u -s | awk '{print $7}'
    I also had to change the first line in the "conky.text" section of conky config to use a capital V. (Was just showing a large rectangle)
    Code:
    ${color orange}${voffset -40}${font OpenLogos:size=122}V 
    Last edited by again?; March 13th, 2018 at 02:22 AM.

  7. #23417
    Join Date
    Oct 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    For the month, I want output to display Jumada II, but on my laptop with script like your, only show output II(Jm2).

  8. #23418
    Join Date
    Mar 2017
    Beans
    1,018

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by julungpujut View Post
    For the month, I want output to display Jumada II, but on my laptop with script like your, only show output II(Jm2).
    Try this command for the month...
    Code:
    idate -u -s | awk '{print $7,$8}' | cut -d'(' -f1
    Code:
    glen@Xubarty:~$ idate -u -s | awk '{print $7,$8}' | cut -d'(' -f1
    Jumada II
    Explanation:
    Code:
    glen@Xubarty:~$ idate -u -s
    25/ 6/1439 A.H - Thulatha(Tha) - Jumada II(Jm2)
    Selective field printing with awk (fields are separated by spaces)
    ie
    Code:
    $1   $2    $3  $4   $5         $6   $7    $8
    25/ 6/1439 A.H - Thulatha(Tha) - Jumada II(Jm2)
    Code:
    glen@Xubarty:~$ idate -u -s | awk '{print $7,$8}'
    Jumada II(Jm2)
    Cut from the first delimiter defined as '('
    Code:
    glen@Xubarty:~$ idate -u -s | awk '{print $7,$8}' | cut -d'(' -f1
    Jumada II
    Last edited by again?; March 16th, 2018 at 05:59 AM.

  9. #23419
    Join Date
    Oct 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    OK.. perfect, thanks for your help @guber2.

  10. #23420
    Join Date
    Oct 2013
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    I am trying to learn conky configuration with the source of this forum, and from some other forums, thanks for the source.
    Attached Images Attached Images

Page 2342 of 2348 FirstFirst ... 1342184222422292233223402341234223432344 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •