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.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
utilisateurs:arpinux:tutos:i3config [14/09/2020 19:24] arpinux [Fichier de configuration pour i3wm] |
utilisateurs:arpinux:tutos:i3config [15/02/2021 10:05] (Version actuelle) arpinux [Fichiers de configuration pour i3wm] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Fichier de configuration pour i3wm ====== | + | ====== Fichiers de configuration pour i3wm ====== |
* objet : ma config i3wm | * objet : ma config i3wm | ||
- | * logiciels utilisés : i3wm, rofi, urxvt | + | * logiciels utilisés : [[https://i3wm.org/|i3wm]], [[https://github.com/davatorium/rofi|rofi]], [[doc:systeme:terminal:urxvt|urxvt]], [[doc:environnements:lxde:transparence#compton|compton]], [[doc:media:feh|feh]] |
- | * fonts utilisées : hack et forkawesome | + | * fonts utilisées : hack et forkawesome (dispo dans les dépôts debian) |
* contenu : | * contenu : | ||
- | * ~/.config/i3/config | + | * ~/.config/i3/config : fichier de configuration principal de i3wm |
- | * ~/.config/i3/i3conkybar | + | * ~/.config/i3/i3conkybar : lanceur pour placer le conky dans la barre |
- | * ~/.config/i3/conkyrc | + | * ~/.config/i3/conkyrc : configuration de conky |
- | * ~/.Xresources pour la configuration de rofi et de urxvt | + | * ~/.Xresources : configuration de rofi et de urxvt |
- | * scripts | + | * scripts utilisés pour la session |
+ | |||
+ | <note important>Pour tester i3wm & une configuration plus riche, je vous invite à essayer la [[https://nakedeb.arpinux.org/|distribution nakeDeb]] ou à fouiller dans [[https://framagit.org/3hg/nakedeb|les sources git]] de la distribution.</note> | ||
+ | |||
+ | {{https://debian-facile.org/images/file-R6f3aa3308b41e85b51d746ccced931be.png}} | ||
===== ~/.config/i3/config ===== | ===== ~/.config/i3/config ===== | ||
note : j'utilise un clavier macbook pro, les raccourcis clavier peuvent différer selon votre clavier. | note : j'utilise un clavier macbook pro, les raccourcis clavier peuvent différer selon votre clavier. | ||
Ligne 340: | Ligne 344: | ||
===== ~/.config/i3/conkyrc ===== | ===== ~/.config/i3/conkyrc ===== | ||
- | lefichier de configuration pour conky qui utilise la font forkawesome également | + | le fichier de configuration pour conky qui utilise la font forkawesome. |
<file lua conkyrc> | <file lua conkyrc> | ||
--[[ | --[[ | ||
Ligne 401: | Ligne 405: | ||
</file> | </file> | ||
+ | ===== ~/.Xresources ===== | ||
+ | configuration de certaines applis, dont rofi et urxvt utilisés dans la session i3wm | ||
+ | <file config Xresources> | ||
+ | ! author: arpinux <https://arpinux.org> | ||
+ | ! ~/.Xresources configuration file | ||
+ | !----------------------------------------------------------------------- | ||
+ | |||
+ | ! nord inspired colors | ||
+ | ! black | ||
+ | *color0: #3B4252 | ||
+ | *color8: #4C566A | ||
+ | ! red | ||
+ | *color1: #BF616A | ||
+ | *color9: #BF616A | ||
+ | ! green | ||
+ | *color2: #A3BE8C | ||
+ | *color10: #A3BE8C | ||
+ | ! yellow | ||
+ | *color3: #EBCB8B | ||
+ | *color11: #EBCB8B | ||
+ | ! blue | ||
+ | *color4: #81A1C1 | ||
+ | *color12: #81A1C1 | ||
+ | ! purple | ||
+ | *color5: #B48EAD | ||
+ | *color13: #B48EAD | ||
+ | ! cyan | ||
+ | *color6: #88C0D0 | ||
+ | *color14: #8FBCBB | ||
+ | ! white | ||
+ | *color7: #E5E9F0 | ||
+ | *color15: #ECEFF4 | ||
+ | |||
+ | *background: #2E3440 | ||
+ | *foreground: #D8DEE9 | ||
+ | *fading: 40 | ||
+ | *fadeColor: #4C566A | ||
+ | *cursorColor: #D8DEE9 | ||
+ | *colorUL: #A3BE8C | ||
+ | |||
+ | ! dzen2 ---------------------------------------------------------------- | ||
+ | dzen2.font: Hack-9 | ||
+ | dzen2.foreground: #D8DEE9 | ||
+ | dzen2.background: #2E3440 | ||
+ | |||
+ | ! Xcursor settings ----------------------------------------------------- | ||
+ | Xcursor.theme: Adwaita | ||
+ | |||
+ | ! Xft settings --------------------------------------------------------- | ||
+ | Xft.dpi: 96 | ||
+ | Xft.autohint: 0 | ||
+ | Xft.lcdfilter: lcddefault | ||
+ | Xft.antialias: 1 | ||
+ | Xft.rgba: rgb | ||
+ | Xft.hinting: 1 | ||
+ | Xft.hintstyle: hintfull | ||
+ | |||
+ | ! urxvt ---------------------------------------------------------------- | ||
+ | URxvt.termName: rxvt-unicode | ||
+ | URxvt.imLocale: fr_FR.UTF-8 | ||
+ | URxvt.saveLines: 5000 | ||
+ | URxvt.cursorBlink: true | ||
+ | URxvt.foreground: #d8dee9 | ||
+ | URxvt.background: #2e3440 | ||
+ | URxvt.cursorColor: #d8dee9 | ||
+ | URxvt.throughColor: #4c566a | ||
+ | URxvt.highlightColor: #4c566a | ||
+ | URxvt.shading: 60 | ||
+ | URxvt.transparent: false | ||
+ | URxvt.tintColor: #5e81ac | ||
+ | URxvt.visualBell: false | ||
+ | URxvt.urgentOnBell: true | ||
+ | URxvt.font: xft:Hack:regular:size=9 | ||
+ | URxvt.boldFont: xft:Hack:bold:size=9 | ||
+ | URxvt.scrollBar: false | ||
+ | URxvt.scrollBar_right: false | ||
+ | URxvt.urlLauncher: w3m | ||
+ | URxvt.matcher.button: 1 | ||
+ | URxvt.perl-ext-common: default,matcher | ||
+ | !URxvt.perl-ext-common: default,tabbed,matcher !uncomment = autotabs in URxvt | ||
+ | URxvt.tabbed.tabbar-fg: 4 | ||
+ | URxvt.tabbed.tabbar-bg: 0 | ||
+ | URxvt.tabbed.tab-fg: 7 | ||
+ | URxvt.tabbed.tab-bg: 4 | ||
+ | |||
+ | |||
+ | ! xterm ---------------------------------------------------------------- | ||
+ | xterm*saveLines: 4096 | ||
+ | xterm*AllowIconInput: on | ||
+ | xterm*background: #2E3440 | ||
+ | xterm*foreground: #D8DEE9 | ||
+ | xterm*border: #D8DEE9 | ||
+ | xterm*faceName: Hack | ||
+ | xterm*Font: Hack | ||
+ | xterm*allowBoldFonts: false | ||
+ | xterm*renderFont: true | ||
+ | xterm*faceSize: 9 | ||
+ | xterm*InternalBorder: 0 | ||
+ | xterm*MarginBell: off | ||
+ | xterm*MenuFont: fixed8 | ||
+ | xterm*Mouse: yellow | ||
+ | xterm*TitleFont: vtbold | ||
+ | xterm*charClass: 33:48,37:48,45-47:48,64:48 | ||
+ | xterm*colorAttrMode: true | ||
+ | xterm*colorULMode: true | ||
+ | !xterm*colorUL: green | ||
+ | xterm*curses: on | ||
+ | xterm*cutNewline: off | ||
+ | xterm*jumpScroll: on | ||
+ | xterm*multiClickTime: 500 | ||
+ | xterm*multiScroll: on | ||
+ | xterm*reverseWrap: off | ||
+ | xterm*scrollBar: off | ||
+ | xterm*reverseVideo: off | ||
+ | xterm*VT100.Translations: #override \ | ||
+ | Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\ | ||
+ | Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\ | ||
+ | Ctrl <Btn1Up>: exec-formatted("xdg-open '%t'", PRIMARY) | ||
+ | |||
+ | ! xmessage ------------------------------------------------------------- | ||
+ | Xmessage.form.okay.shapeStyle: rectangle | ||
+ | Xmessage.center: TRUE | ||
+ | Xmessage*buttons: OK | ||
+ | Xmessage*defaultButton: OK | ||
+ | Xmessage.form.message.Scroll: WhenNeeded | ||
+ | Xmessage*borderWidth: 0 | ||
+ | Xmessage*Text.borderWidth: 0 | ||
+ | Xmessage*Command.borderWidth: 0 | ||
+ | Xmessage*Command.shapeStyle: rectangle | ||
+ | Xmessage*Command.highlightThickness: 2 | ||
+ | Xmessage*Command.internalWidth: 5 | ||
+ | Xmessage*Command.internalHeight: 1 | ||
+ | Xmessage*message.scrollHorizontal: Never | ||
+ | Xmessage*message.scrollVertical: Never | ||
+ | Xmessage.form.Command.background: #2e3440 | ||
+ | Xmessage.form.Command.foreground: #d8dee9 | ||
+ | |||
+ | |||
+ | ! rofi ----------------------------------------------------------------- | ||
+ | rofi.fullscreen: true | ||
+ | rofi.color-enabled: true | ||
+ | rofi.color-window: argb:e8222D32,argb:00292f37,#EBCB8B | ||
+ | rofi.color-normal: argb:02000000,#D8DEE9,argb:02000000,argb:02000000,#EBCB8B | ||
+ | rofi.color-active: argb:02000000,#D8DEE9,argb:02000000,argb:02000000,#D8DEE9 | ||
+ | rofi.color-urgent: argb:02000000,#D8DEE9,argb:02000000,argb:02000000,#D8DEE9 | ||
+ | |||
+ | rofi.font: Hack 12 | ||
+ | rofi.eh: 1 | ||
+ | rofi.line-margin: 20 | ||
+ | rofi.separator-style: solid | ||
+ | rofi.hide-scrollbar: true | ||
+ | rofi.lines: 3 | ||
+ | rofi.width: 100 | ||
+ | rofi.padding: 200 | ||
+ | rofi.bw: 0 | ||
+ | rofi.location: 4 | ||
+ | rofi.modi: window,run,drun,ssh | ||
+ | !eof ------------------------------------------------------------------ | ||
+ | </file> | ||
+ | |||
+ | ===== scripts ===== | ||
+ | les scripts appelés par la session. | ||
+ | |||
+ | === i3quit === | ||
+ | lanceur pour logout/shutdown/suspend/reboot. | ||
+ | <file bash i3quit> | ||
+ | #!/bin/bash | ||
+ | # a simple logout dialog | ||
+ | |||
+ | # launch exit menu | ||
+ | choice=`echo -e "0: Logout\n1: Shutdown\n2: Suspend\n3: Reboot\n4: Cancel" | rofi -dmenu -p "select an action" | cut -d ':' -f 1` | ||
+ | |||
+ | # execute the choice in background | ||
+ | case "$choice" in | ||
+ | 0) i3-msg exit & ;; | ||
+ | 1) systemctl poweroff & ;; | ||
+ | 2) systemctl suspend & ;; | ||
+ | 3) systemctl reboot & ;; | ||
+ | 4) exit ;; | ||
+ | esac | ||
+ | </file> | ||
+ | |||
+ | === randomwall === | ||
+ | fond d'écran aléatoire : pensez à éditer le chemin vers le dossier des walls. | ||
+ | <file bash randomwall> | ||
+ | #!/bin/bash | ||
+ | cd /usr/share/backgrounds/ | ||
+ | ls | xargs feh -q -z --bg-fill "$@" & | ||
+ | exit 0 | ||
+ | </file> | ||
+ | |||
+ | === touchpadtap === | ||
+ | configuration du touchpad sur macbook. fonctionne aussi avec d'autres touchpad :P | ||
+ | <file bash touchpadtap> | ||
+ | #!/bin/bash | ||
+ | # configuration du touchpad sur macbook | ||
+ | |||
+ | #syndaemon -t -i 2 -K -R & # désactiver le taptoclick si le clavier est utilisé | ||
+ | |||
+ | synclient TouchPadOff=0 & # activation du touchpad | ||
+ | synclient TapButton1=1 & # clic-gauche avec 1 doigt | ||
+ | synclient TapButton2=3 & # clic-central avec 3 doigts | ||
+ | synclient TapButton3=2 & # clic-droit avec 2 doigts | ||
+ | |||
+ | synclient VertTwoFingerScroll=1 & # défilement vertical avec 2 doigts | ||
+ | synclient HorizTwoFingerScroll=1 & # défilement horizontal avec 2 doigts | ||
+ | |||
+ | synclient FingerHigh=150 & # réduire la sensibilité | ||
+ | synclient PalmDetect=1 & # détecter la main | ||
+ | synclient AccelFactor=0.030 & # facteur d'accélaration élevé | ||
+ | |||
+ | exit 0 | ||
+ | </file> | ||
+ | |||
+ | === eyecandy === | ||
+ | configuration de compton pour la transparence. | ||
+ | <file bash eyecandy> | ||
+ | #!/bin/bash | ||
+ | # composite level selector | ||
+ | # arpinux 2020 <https://arpinux.org> | ||
+ | |||
+ | # options - see 'man compton' | ||
+ | LIGHT="--shadow \ | ||
+ | --no-dock-shadow \ | ||
+ | --inactive-opacity .8 \ | ||
+ | --inactive-opacity-override \ | ||
+ | --detect-transient \ | ||
+ | --detect-client-leader" | ||
+ | FULL="--shadow \ | ||
+ | --no-dock-shadow \ | ||
+ | --fading \ | ||
+ | --active-opacity 1 \ | ||
+ | --inactive-opacity .6 \ | ||
+ | --inactive-opacity-override \ | ||
+ | --menu-opacity .9 \ | ||
+ | --frame-opacity .9 \ | ||
+ | --no-fading-destroyed-argb \ | ||
+ | --detect-transient \ | ||
+ | --detect-client-leader" | ||
+ | |||
+ | # with args > just exec | ||
+ | if [ "$1" == "-s" ]; then | ||
+ | pkill -9 compton | ||
+ | exit 0 | ||
+ | elif [ "$1" == "-l" ]; then | ||
+ | pkill -9 compton | ||
+ | sleep 1s | ||
+ | compton $LIGHT & | ||
+ | exit 0 | ||
+ | elif [ "$1" == "-f" ]; then | ||
+ | pkill -9 compton | ||
+ | sleep 1s | ||
+ | compton $FULL & | ||
+ | exit 0 | ||
+ | else | ||
+ | # no args or wrong args > show dmenu | ||
+ | choice=`echo -e "light\nfull\nstop\ncancel" | \ | ||
+ | rofi -dmenu \ | ||
+ | -p "composite level selector >> "` | ||
+ | |||
+ | case "$choice" in | ||
+ | light) pkill -9 compton | ||
+ | sleep 1s | ||
+ | compton $LIGHT & ;; | ||
+ | full) pkill -9 compton | ||
+ | sleep 1s | ||
+ | compton $FULL & ;; | ||
+ | stop) pkill -9 compton & ;; | ||
+ | cancel) exit ;; | ||
+ | esac | ||
+ | fi | ||
+ | </file> |