Difference between revisions of "Basic Tips for conky/fr"

Updating to match new version of source page
(Created page with "===Texte affiché par Conky=== La seconde partie contient le code qui sera affiché par Conky. Chaque ligne correspond à une indication qui figurera sur Conky. Il y en a tout...")
Tags: Mobile web edit Mobile edit
(Updating to match new version of source page)
Line 72: Line 72:
{{BoxInfo|Info|Les lignes à l'intérieur de '''conky.text''' seront imprimées à l'identique. Ex : si vous laissez une ligne vide dans le fichier, Conky affichera une ligne vide.}}
{{BoxInfo|Info|Les lignes à l'intérieur de '''conky.text''' seront imprimées à l'identique. Ex : si vous laissez une ligne vide dans le fichier, Conky affichera une ligne vide.}}


<div lang="en" dir="ltr" class="mw-content-ltr">
The whole code belong between these two double bracket:
The whole code belong between these two double bracket:
{{File|file=~/.config/conky/conky.conkyrc|
{{File|file=~/.config/conky/conky.conkyrc|
Line 87: Line 88:
]];</pre>
]];</pre>
}}
}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Every variable is marked with a <code>$</code> sign and by <code>{ }</code> brackets (only needed, if the variable contains more than one word).
Every variable is marked with a <code>$</code> sign and by <code>{ }</code> brackets (only needed, if the variable contains more than one word).
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''2.''' You can call the default font (and it's size) with this command:
'''2.''' You can call the default font (and it's size) with this command:
{{File|file=~/.config/conky/conky.conkyrc|
{{File|file=~/.config/conky/conky.conkyrc|
Line 130: Line 135:
]];</pre>
]];</pre>
}}
}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
===execi===
===execi===
The variable <code>${execi 3600 XXXX}</code> runs the <code>XXXX</code> bash code in your terminal every 3600 seconds and displays the result in your conky. The result of the <code>uname -r</code> bash command is your currently used kernel name.  
The variable <code>${execi 3600 XXXX}</code> runs the <code>XXXX</code> bash code in your terminal every 3600 seconds and displays the result in your conky. The result of the <code>uname -r</code> bash command is your currently used kernel name.
</div>


Use any bash command instead of <code>XXXX</code> you can think of. The bash commands can be as long and complicated as you want.  
<div lang="en" dir="ltr" class="mw-content-ltr">
 
Use any bash command instead of <code>XXXX</code> you can think of. The bash commands can be as long and complicated as you want.
Warning: Using complicated bash commands (e.g. which call other programs or use large files) with low intervals (e.g. <code>${execi 2 XXXX}</code> runs the <code>XXXX</code> code once every 2 seconds and displays it's result in your conky) can use a lot of hardware resources and/or make your computer unresponsive.
</div>  


<div lang="en" dir="ltr" class="mw-content-ltr">
{{BoxInfo|Warning|Using complicated bash commands (e.g. which call other programs or use large files) with low intervals (e.g. <code>${execi 2 XXXX}</code> runs the <code>XXXX</code> code once every 2 seconds and displays it's result in your conky) can use a lot of hardware resources and/or make your computer unresponsive.}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
===Running conky===
===Running conky===
If you want to display a conky on your desktop a {{ic|~/.config/conky/conky.conkyrc}} file with code in it is required. Next, open a terminal and run conky pointing to the file
If you want to display a conky on your desktop a {{ic|~/.config/conky/conky.conkyrc}} file with code in it is required. Next, open a terminal and run conky pointing to the file
Line 144: Line 156:
or to run as background daemon
or to run as background daemon
{{UserCmd|command=conky -d -c ~/.config/conky/conky.conkyrc}}
{{UserCmd|command=conky -d -c ~/.config/conky/conky.conkyrc}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
If you want to run conky automatically after each boot of your computer, you need to find out how to autostart a program. This depends on the Desktop Manager you are using. The next is examples of how to run conky from your system autostart folder/file/script/command.
If you want to run conky automatically after each boot of your computer, you need to find out how to autostart a program. This depends on the Desktop Manager you are using. The next is examples of how to run conky from your system autostart folder/file/script/command.
<code>sleep 20</code> and <code>-p 20</code> delay the start of conky by 20 seconds after your Desktop Environment has started. Adjust this value to your liking.
<code>sleep 20</code> and <code>-p 20</code> delay the start of conky by 20 seconds after your Desktop Environment has started. Adjust this value to your liking.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{UserCmd|command=conky -c ~/.config/conky/conky.conkyrc &}}
{{UserCmd|command=conky -c ~/.config/conky/conky.conkyrc &}}
{{UserCmd|command=sleep 20 && conky -c ~/.config/conky/conky.conkyrc &}}
{{UserCmd|command=sleep 20 && conky -c ~/.config/conky/conky.conkyrc &}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
When you change the running conky configuration file - conky will reload. But if you changed one of your dependency scripts (e.g. because you changed a variable and want to see the consequences) you will have to reload conky
When you change the running conky configuration file - conky will reload. But if you changed one of your dependency scripts (e.g. because you changed a variable and want to see the consequences) you will have to reload conky
{{UserCmd|command=killall conky && conky -c ~/.config/config/conky.conkyrc}}
{{UserCmd|command=killall conky && conky -c ~/.config/config/conky.conkyrc}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
===Troubleshooting & Tips===
===Troubleshooting & Tips===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
====Missing rings====
====Missing rings====
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
To be able to use LUA scripts to execute drawing functions like clock rings - you will a conky package compiled with LUA support. Either build the package the package {{ic|conky-lua}} from [[Arch_User_Repository|AUR]] or install the {{ic|conky-lua-nv}} from the official repo.
To be able to use LUA scripts to execute drawing functions like clock rings - you will a conky package compiled with LUA support. Either build the package the package {{ic|conky-lua}} from [[Arch_User_Repository|AUR]] or install the {{ic|conky-lua-nv}} from the official repo.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
====Missing network information====
====Missing network information====
If network information is missing like download speed or network name (SSID), you need to replace the network interfaces in the configuration file with your network interface name. To get the names of your interfaces - open a terminal and execute
If network information is missing like download speed or network name (SSID), you need to replace the network interfaces in the configuration file with your network interface name. To get the names of your interfaces - open a terminal and execute
{{UserCmd|command=ip a | grep ' state UP' | cut -d' ' -f2 | cut -d':' -f1}}
{{UserCmd|command=ip a | grep ' state UP' | cut -d' ' -f2 | cut -d':' -f1}}
Use the output from the command. Interface names starting with <code>en</code> is ethernet interface and names starting with <code>wl</code> is wireless interfaces. Replace all network interfaces names with (e.g. <code>wlan0</code>, <code>eth0</code>) in your <code>.conkyrc</code> text section with the interface name(s) you retrieved from the above command.
Use the output from the command. Interface names starting with <code>en</code> is ethernet interface and names starting with <code>wl</code> is wireless interfaces. Replace all network interfaces names with (e.g. <code>wlan0</code>, <code>eth0</code>) in your <code>.conkyrc</code> text section with the interface name(s) you retrieved from the above command.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
===Conky Manager===
===Conky Manager===
An application named Conky manager exist but has not been updated for years and the configurations found in the package may work or they may not. You may install it - it can be a used as an inspiration but you should not rely on it. If you still think you it is a must have - you can build the package {{ic|conky-manager}} using [[Arch_User_Repository|AUR]]
An application named Conky manager exist but has not been updated for years and the configurations found in the package may work or they may not. You may install it - it can be a used as an inspiration but you should not rely on it. If you still think you it is a must have - you can build the package {{ic|conky-manager}} using [[Arch_User_Repository|AUR]]
{{UserCmd|command=pamac build conky-manager}}
{{UserCmd|command=pamac build conky-manager}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
==See Also==
==See Also==
* The [https://github.com/brndnmtthws/conky/wiki Conky website]
* The [https://github.com/brndnmtthws/conky/wiki Conky website]
* The [https://wiki.archlinux.org/index.php/conky Arch Wiki] page for Conky
* The [https://wiki.archlinux.org/index.php/conky Arch Wiki] page for Conky
</div>
[[Category:Contents Page{{#translation:}}]]
[[Category:Contents Page{{#translation:}}]]
[[Category:Applications{{#translation:}}]]
[[Category:Applications{{#translation:}}]]
8,560

edits