Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format
PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:arpinux:tutos:i3config [30/08/2020 13:17] arpinux créée |
utilisateurs:arpinux:tutos:i3config [14/09/2020 19:24] arpinux [Fichier de configuration pour i3wm] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Fichier de configuration pour i3wm ====== | ====== Fichier de configuration pour i3wm ====== | ||
- | * Objet : ma config i3wm | + | * objet : ma config i3wm |
+ | * logiciels utilisés : i3wm, rofi, urxvt | ||
+ | * fonts utilisées : hack et forkawesome | ||
+ | * contenu : | ||
+ | * ~/.config/i3/config | ||
+ | * ~/.config/i3/i3conkybar | ||
+ | * ~/.config/i3/conkyrc | ||
+ | * ~/.Xresources pour la configuration de rofi et de urxvt | ||
+ | * scripts | ||
+ | ===== ~/.config/i3/config ===== | ||
+ | note : j'utilise un clavier macbook pro, les raccourcis clavier peuvent différer selon votre clavier. | ||
- | ===== ~/.config/i3/config ===== | ||
<file config config> | <file config config> | ||
- | # This file has been auto-generated by i3-config-wizard(1). | ||
- | # It will not be overwritten, so edit it as you like. | ||
- | # | ||
- | # Should you change your keyboard layout some time, delete | ||
- | # this file and re-run i3-config-wizard(1). | ||
- | # | ||
- | |||
# i3 config file (v4) | # i3 config file (v4) | ||
# | # | ||
Ligne 211: | Ligne 213: | ||
bindsym $mod+parenright workspace $ws11 | bindsym $mod+parenright workspace $ws11 | ||
bindsym $mod+minus workspace $ws12 | bindsym $mod+minus workspace $ws12 | ||
- | |||
# move focused container to workspace | # move focused container to workspace | ||
Ligne 232: | Ligne 233: | ||
bindsym $mod+Shift+r restart | bindsym $mod+Shift+r restart | ||
# exit i3 (logs you out of your X session) | # exit i3 (logs you out of your X session) | ||
- | #bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" | ||
bindsym $mod+Shift+e exec ~/bin/i3quit | bindsym $mod+Shift+e exec ~/bin/i3quit | ||
Ligne 320: | Ligne 320: | ||
</file> | </file> | ||
+ | |||
+ | ===== ~/.config/i3/i3conkybar ===== | ||
+ | le petit script qui permet de lancer conky dans la barre de i3wm comme pour i3status. | ||
+ | <file bash i3conkybar> | ||
+ | #!/bin/sh | ||
+ | |||
+ | # Send the header so that i3bar knows we want to use JSON: | ||
+ | echo '{"version":1}' | ||
+ | |||
+ | # Begin the endless array. | ||
+ | echo '[' | ||
+ | |||
+ | # We send an empty first array of blocks to make the loop simpler: | ||
+ | echo '[],' | ||
+ | |||
+ | # Now send blocks with information forever: | ||
+ | exec conky -c $HOME/.config/i3/conkyrc | ||
+ | </file> | ||
+ | |||
+ | ===== ~/.config/i3/conkyrc ===== | ||
+ | lefichier de configuration pour conky qui utilise la font forkawesome également | ||
+ | <file lua conkyrc> | ||
+ | --[[ | ||
+ | i3wm conkyrc arpinux@2020©WTFPL | ||
+ | use with forkawesome fonts | ||
+ | nord colors : | ||
+ | #2e3440 – default dark background | ||
+ | #3b4252 – black | ||
+ | #434c5e - black lighter | ||
+ | #4c566a – bright black | ||
+ | #d8dee9 – default clear foreground | ||
+ | #e5e9f0 – white | ||
+ | #eceff4 – bright white | ||
+ | #8fbcbb – bright cyan | ||
+ | #88c0d0 – cyan | ||
+ | #81a1c1 – blue | ||
+ | #5e81ac - bright blue | ||
+ | #bf616a – red | ||
+ | #d08770 – orange | ||
+ | #ebcb8b – yellow | ||
+ | #a3be8c – green | ||
+ | #b48ead – purple8fbcbb | ||
+ | ]] | ||
+ | |||
+ | conky.config = { | ||
+ | out_to_x = false, | ||
+ | out_to_console = true, | ||
+ | background = false, | ||
+ | update_interval = 2.0, | ||
+ | total_run_times = 0, | ||
+ | top_name_width = 10, | ||
+ | use_spacer = 'none', | ||
+ | double_buffer = yes, | ||
+ | cpu_avg_samples = 2, | ||
+ | short_units = true, | ||
+ | text_buffer_size = 2048, | ||
+ | if_up_strictness = 'address' | ||
+ | } | ||
+ | |||
+ | conky.text = [[ | ||
+ | [ | ||
+ | { "full_text": "${font forkawesome:size=9}${if_mounted /media/arp/nak3dback} ${fs_used_perc /media/arp/nak3dback}%${endif}" , "color": "\#d8dee9" }, | ||
+ | { "full_text": "${font forkawesome:size=9} ${cpu cpu1}% ${cpu cpu2}% ${cpu cpu3}% ${cpu cpu4}%" ,\ | ||
+ | "color": ${if_match ${cpu}>80}"\#bf616a"${else}"\#81a1c1"${endif} }, | ||
+ | { "full_text": ">${loadavg 1}" , "color": "\#81a1c1" }, | ||
+ | { "full_text": "${font forkawesome:size=9} ${texeci 5 sensors|grep "Core 2"| awk '{print $3}'|cut -c2-}" ,\ | ||
+ | "color": ${if_match "${texeci 5 sensors|grep "Core 2"|awk '{print $3}'|cut -d"+" -f 2|sed s/.0°C//g}" > "75"}"\#bf616a"${else}"\#81a1c1"${endif} }, | ||
+ | { "full_text": " ${font forkawesome:size=9} ${memperc}% ${mem}" , "color": ${if_match ${memperc} > 50}"\#bf616a"${else}"\#a3be8c"${endif} }, | ||
+ | { "full_text": " ${font forkawesome:size=9} ${fs_used_perc /}% ${fs_free /}" , "color": "\#d08770" }, | ||
+ | { "full_text": " ${font forkawesome:size=9} ${fs_used_perc /media/arp/Xtra}% ${fs_free /media/arp/Xtra}" , "color": "\#d08770" }, | ||
+ | { "full_text": " ${font forkawesome:size=9}${if_up wlp3s0} ${upspeedf wlp3s0}k/s ${downspeedf wlp3s0}k/s${else}${if_up enp2s0} ${upspeedf enp2s0}k/s ${downspeedf enp2s0}k/s${else}net ${endif}${endif}" , "color": ${if_gw}"\#88c0d0"${else}"\#bf616a"${endif} }, | ||
+ | { "full_text": " ${font forkawesome:size=9}${if_match ${battery_percent}<5}${blink }${else}${if_match "${acpiacadapter}" == "on-line"} ${battery_percent}%${else} ${battery_percent}% ${battery_time}${endif}${endif}" , "color": ${if_match ${battery_percent}<10}"\#bf616a"${else}"\#ebcb8b"${endif} }, | ||
+ | { "full_text": " ${font forkawesome:size=9}${if_pa_sink_muted} x${else} ${pa_sink_volume}%${endif}" , "color": ${if_pa_sink_muted}"\#bf616a"${else}"\#b48ead"${endif} }, | ||
+ | { "full_text": " ${font forkawesome:size=9} ${uptime_short}" , "color": "\#81a1c1" }, | ||
+ | { "full_text": " ${font forkawesome:size=9} ${time %a%d/%m}" , "color": "\#d8dee9" }, | ||
+ | { "full_text": "${font forkawesome:size=9} ${time %I:%M}" , "color": "\#ffffff" }, | ||
+ | { "full_text": "${font forkawesome:size=9}${if_running redshift} ${else} ${endif}" , "color": "\#8fbcbb" } | ||
+ | ], | ||
+ | ]]; | ||
+ | </file> | ||
+ |