Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/08/2016, à 23:49

Yodasky

lancer commande au demarrage pour modif les touches de clavier

bousoir smile

a cause d'un clavier "special" ( un zboard MERC ) ubuntu ne detecte pas du tout mon pavé numerique qu'il prend pour des touche differente.

apres de nombreuses recherche sur la personalisation du clavier je n'ai rien trouver de simple pour modifier ça, ( j'ai dit simple hein parce il y a bien cette explication mais là on est dans la torture mentale... ) xbindkey semblais prometteur mais je ne parvient pas a utiliser xbindket-config ( j'ai pas trouver de manuel expliquant comment marche ce truc...

la seule chose que j'ai trouver est ceci: https://forum.ubuntu-fr.org/viewtopic.php?id=127890

grace a ça j'ai reussit a faire un fichier .conf qui fonction si je le lance dans le terminal avec la commande:

xmodmap ~/zboard.conf

mais a chaque redemarage il faut recommancer... je cherche donc a lancer cette commande a chaque demarrage, j'ai fait des heures de recherche ou je voit des truc sur rc.local ou init.d j'ai tenter d'ecrire xmodmap ~/zboard.conf sur ces fichier mais il se passe jamais rien...

donc si quelqun a une solution...

n'empeche faudrais un logiciel pour binder ses touches facilement... ca manque...

merci

Dernière modification par Yodasky (Le 20/08/2016, à 14:13)

Hors ligne

#2 Le 08/08/2016, à 01:25

Coeur Noir

Re : lancer commande au demarrage pour modif les touches de clavier

Bon d'abord essaie de revenir à zéro : pas forcément une bonne idée de bidouiller des fichiers système quand on n'est pas très à l'aise sous linux. Bref assure-toi de ne rien avoir modifié dans rc.local ou init.d

Ensuite - je n'utilise pas ce clavier - mais voici ce que je tenterais :
placer dans ~/.config/autostart un fichier.desktop qui lancerait ton xmodmap

Autrement dit, ça revient à lancer au démarrage une application. Cherche dans tes programmes ou dans les paramètres système ( ça dépend de ton environnement de bureau, que tu n'as pas précisé ) un truc qui s'appelle « Applications au démarrage »
Bouton [ajouter]
Nom : Zboard
Commande : xmodmap ~/zboard.conf
Commentaire : Activer clavier Zboard

Je pense que ça pourrait fonctionner. Au pire faut mettre la commande entre guillemets doubles " ou simples '


DébuterDocBien rédigerRetour commandeInsérer image | illustrations & captures d'écran <>

Hors ligne

#3 Le 08/08/2016, à 04:15

Watael

Re : lancer commande au demarrage pour modif les touches de clavier

salut,

xmodmap, avec un x, comme dans Xorg;
donc, tous les fichiers d'initialisation qui sont exécutés avant le démarrage de X ne pourront pas lancer xmodmap avec succès !


Connected \o/
Welcome to sHell. · eval is evil.

Hors ligne

#4 Le 08/08/2016, à 07:27

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

salut

coeur noir a écrit :

placer dans ~/.config/autostart

je nai pas trouver ce repertoire chez moi ( j ai ubuntu 16.04 )

donc, tous les fichiers d'initialisation qui sont exécutés avant le démarrage de X ne pourront pas lancer xmodmap avec succès !

tu dit ca pour repondre a coeur noir pour lui dire que sa solution marchera pas ou a moi pour m expliquer pourquoi ce que j ai tenter n avais pas marcher? et du coup tu a une solution? wink

Dernière modification par Yodasky (Le 08/08/2016, à 07:28)

Hors ligne

#5 Le 08/08/2016, à 08:22

Babdu89

Re : lancer commande au demarrage pour modif les touches de clavier

Bonjour.
Une piste peut-être.
S'inspirer du lancement de numlockx dans lightdm au démarrage.

https://doc.ubuntu-fr.org/numlockx

Si la connexion passe par lightdm bien-sûr.

@+.    Babdu89 .


J'ai découvert Ubuntu avec la 07.10.... Et alors?!...  Depuis je regarde de temps en temps si Windows marche toujours....

Hors ligne

#6 Le 08/08/2016, à 12:52

Watael

Re : lancer commande au demarrage pour modif les touches de clavier

il faudrait qu'on sache quel environnement tu as choisi pour tourner sur Xorg.

a priori, les environnements par défaut des différente variante (k...x)Ubuntu respectent la "norme" FreeDesktop : voir ici pour le démarrage d'application


Connected \o/
Welcome to sHell. · eval is evil.

Hors ligne

#7 Le 08/08/2016, à 14:05

Coeur Noir

Re : lancer commande au demarrage pour modif les touches de clavier

Yodasky a écrit :

salut

coeur noir a écrit :

placer dans ~/.config/autostart

je nai pas trouver ce repertoire chez moi ( j ai ubuntu 16.04 )

Pas grave, il sera créé quand tu utiliseras « applications au démarrage ».
( c'est un fichier caché - ctrl + h pour les faire apparaître dans l'explorateur )

Si je comprends bien la remarque de Watael, xmodmap ne peut fonctionner qu'une fois le serveur X démarré, c'est à dire quand tu es loggué dans une session graphique. Donc à priori ce que je propose avec « applications au démarrage » se fait bien après chargement de X, et à l'ouverture de la session utilisateur ( ça n'impactera pas tout le système, seulement ta session ).

Dernière modification par Coeur Noir (Le 08/08/2016, à 14:07)


DébuterDocBien rédigerRetour commandeInsérer image | illustrations & captures d'écran <>

Hors ligne

#8 Le 13/08/2016, à 00:40

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

salut

après énormément de tâtonnement j'ai enfin trouver une solution... il y a sûrement plus "élégant" mais j ai pas trouver autre chose:
j'ai ubuntu 16.04 pour ces manip
1) on recupere l'etat de son clavier actuel avec cette commande dans le terminal:

xmodmap -pke > ~/zboard.conf

cela vient de vous crée un nouveau fichier  Zboard.conf qui apparais dans mon dossier personnel
2) j'ouvre ce fichier et je configure les touches du clavier zboard qui pose probleme ( toute la partie gauche du clavier et tout le pavé numerique de droite )
pour savoir comment le configurer la commande "xev" dans le terminal va vous aider , voir ce lien.
pour vous aider je vous partage mon fichier Zboard.conf , je vous copie colle mon taf ca vous evitera de le refaire si vous avez ce clavier Zboard MERC ( ca doit etre pareil avec le steelserie MERC):

keycode   8 =
keycode   9 = Escape NoSymbol Escape NoSymbol Escape
keycode  10 = ampersand 1 ampersand 1 dead_acute periodcentered dead_caron dead_ogonek 1 exclam
keycode  11 = eacute 2 eacute 2 asciitilde Eacute asciitilde Eacute 2 at
keycode  12 = quotedbl 3 quotedbl 3 numbersign cedilla numbersign dead_breve 3 numbersign
keycode  13 = apostrophe 4 apostrophe 4 braceleft acute braceleft U2014 4 dollar
keycode  14 = parenleft 5 parenleft 5 bracketleft diaeresis bracketleft U2013 5 percent
keycode  15 = minus 6 minus 6 bar brokenbar bar U2011 6 asciicircum
keycode  16 = egrave 7 egrave 7 dead_grave Egrave grave Egrave 7 ampersand
keycode  17 = underscore 8 underscore 8 backslash macron backslash trademark 8 asterisk
keycode  18 = ccedilla 9 ccedilla 9 asciicircum Ccedilla asciicircum Ccedilla 9 parenleft
keycode  19 = agrave 0 agrave 0 at Agrave at Agrave 0 parenright
keycode  20 = parenright degree parenright degree bracketright ydiaeresis bracketright notequal minus underscore
keycode  21 = equal plus equal plus braceright dead_abovering braceright plusminus equal plus
keycode  22 = BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace
keycode  23 = Tab ISO_Left_Tab Tab ISO_Left_Tab Tab ISO_Left_Tab
keycode  24 = a A a A acircumflex adiaeresis ae AE q Q
keycode  25 = z Z z Z aring Aring acircumflex Acircumflex w W
keycode  26 = e E e E EuroSign cent EuroSign cent e E
keycode  27 = r R r R ccedilla Ccedilla ecircumflex Ecircumflex r R
keycode  28 = t T t T thorn THORN thorn THORN t T
keycode  29 = y Y y Y yacute Yacute ydiaeresis Ydiaeresis y Y
keycode  30 = u U u U ucircumflex udiaeresis ucircumflex Ucircumflex u U
keycode  31 = i I i I icircumflex idiaeresis icircumflex Icircumflex i I
keycode  32 = o O o O ocircumflex odiaeresis oe OE o O
keycode  33 = p P p P paragraph grave ocircumflex Ocircumflex p P
keycode  34 = dead_circumflex dead_diaeresis dead_circumflex dead_diaeresis dead_tilde apostrophe dead_tilde dead_abovering bracketleft braceleft
keycode  35 = dollar sterling dollar sterling ecircumflex ediaeresis oslash Oslash bracketright braceright
keycode  36 = Return NoSymbol Return NoSymbol Return
keycode  37 = Control_L NoSymbol Control_L NoSymbol Control_L
keycode  38 = q Q q Q Acircumflex Adiaeresis adiaeresis Adiaeresis a A
keycode  39 = s S s S oslash Oslash ssharp doublelowquotemark s S
keycode  40 = d D d D Ecircumflex Ediaeresis ediaeresis Ediaeresis d D
keycode  41 = f F f F plusminus ordfeminine leftsinglequotemark singlelowquotemark f F
keycode  42 = g G g G ae AE rightsinglequotemark yen g G
keycode  43 = h H h H eth ETH eth ETH h H
keycode  44 = j J j J Ucircumflex Udiaeresis udiaeresis Udiaeresis j J
keycode  45 = k K k K Icircumflex Idiaeresis idiaeresis Idiaeresis k K
keycode  46 = l L l L Ocircumflex Odiaeresis U0140 U013F l L
keycode  47 = m M m M onesuperior masculine odiaeresis Odiaeresis semicolon colon
keycode  48 = ugrave percent ugrave percent twosuperior Ugrave dead_acute Ugrave apostrophe quotedbl
keycode  49 = oe OE twosuperior threesuperior leftdoublequotemark rightdoublequotemark onesuperior dead_cedilla grave asciitilde
keycode  50 = Shift_L NoSymbol Shift_L NoSymbol Shift_L
keycode  51 = asterisk mu asterisk mu threesuperior yen dead_grave dead_macron backslash bar
keycode  52 = w W w W guillemotleft less guillemotleft leftdoublequotemark z Z
keycode  53 = x X x X guillemotright greater guillemotright rightdoublequotemark x X
keycode  54 = c C c C copyright copyright copyright registered c C
keycode  55 = v V v V registered leftsinglequotemark U202F leftarrow v V
keycode  56 = b B b B ssharp rightsinglequotemark downarrow uparrow b B
keycode  57 = n N n N notsign N notsign rightarrow n N
keycode  58 = comma question comma question questiondown masculine questiondown U2026 m M
keycode  59 = semicolon period semicolon period multiply multiply multiply U22C5 comma less
keycode  60 = colon slash colon slash division division division U2215 period greater
keycode  61 = exclam section exclam section exclamdown dead_abovedot exclamdown U2212 slash question
keycode  62 = Shift_R NoSymbol Shift_R NoSymbol Shift_R
keycode  63 = space space KP_Multiply U22C5 KP_Multiply KP_Multiply XF86ClearGrab 0x10000d7 VoidSymbol XF86ClearGrab
keycode  64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L
keycode  65 = space space space space nobreakspace NoSymbol space nobreakspace space U202F
keycode  66 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock
keycode  67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 XF86Switch_VT_1 F1 F1 F1 F1 XF86Switch_VT_1
keycode  68 = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2 F2 F2 XF86Switch_VT_2 F2 F2 F2 F2 XF86Switch_VT_2
keycode  69 = F3 F3 F3 F3 F3 F3 XF86Switch_VT_3 F3 F3 XF86Switch_VT_3 F3 F3 F3 F3 XF86Switch_VT_3
keycode  70 = F4 F4 F4 F4 F4 F4 XF86Switch_VT_4 F4 F4 XF86Switch_VT_4 F4 F4 F4 F4 XF86Switch_VT_4
keycode  71 = F5 F5 F5 F5 F5 F5 XF86Switch_VT_5 F5 F5 XF86Switch_VT_5 F5 F5 F5 F5 XF86Switch_VT_5
keycode  72 = F6 F6 F6 F6 F6 F6 XF86Switch_VT_6 F6 F6 XF86Switch_VT_6 F6 F6 F6 F6 XF86Switch_VT_6
keycode  73 = F7 F7 F7 F7 F7 F7 XF86Switch_VT_7 F7 F7 XF86Switch_VT_7 F7 F7 F7 F7 XF86Switch_VT_7
keycode  74 = F8 F8 F8 F8 F8 F8 XF86Switch_VT_8 F8 F8 XF86Switch_VT_8 F8 F8 F8 F8 XF86Switch_VT_8
keycode  75 = F9 F9 F9 F9 F9 F9 XF86Switch_VT_9 F9 F9 XF86Switch_VT_9 F9 F9 F9 F9 XF86Switch_VT_9
keycode  76 = F10 F10 F10 F10 F10 F10 XF86Switch_VT_10 F10 F10 XF86Switch_VT_10 F10 F10 F10 F10 XF86Switch_VT_10
keycode  77 = Num_Lock NoSymbol Num_Lock NoSymbol Num_Lock
keycode  78 = Scroll_Lock NoSymbol Scroll_Lock NoSymbol Scroll_Lock
keycode  79 = KP_Home KP_7 KP_Home KP_7 U2196 U21D6
keycode  80 = KP_Up KP_8 KP_Up KP_8 U2191 U21D1
keycode  81 = KP_Prior KP_9 KP_Prior KP_9 U2197 U21D7
keycode  82 = KP_Subtract KP_Subtract KP_Subtract U2212 KP_Subtract KP_Subtract XF86Prev_VMode U2212 VoidSymbol XF86Prev_VMode
keycode  83 = KP_Left KP_4 KP_Left KP_4 U2190 U21D0
keycode  84 = KP_Begin KP_5 KP_Begin KP_5 U2194 U21D4
keycode  85 = KP_Right KP_6 KP_Right KP_6 U2192 U21D2
keycode  86 = KP_Add KP_Add KP_Add 0x100002b KP_Add KP_Add XF86Next_VMode 0x100002b VoidSymbol XF86Next_VMode
keycode  87 = KP_End KP_1 KP_End KP_1 U2199 U21D9
keycode  88 = KP_Down KP_2 KP_Down KP_2 U2193 U21D3
keycode  89 = KP_Next KP_3 KP_Next KP_3 U2198 U21D8
keycode  90 = KP_Insert KP_0 KP_Insert KP_0 U2195 U21D5
keycode  91 = Control_L KP_Decimal KP_Delete period KP_Delete KP_Decimal comma U202F
keycode  92 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keycode  93 =
keycode  94 = less greater less greater bar brokenbar lessthanequal greaterthanequal
keycode  95 = F11 F11 F11 F11 F11 F11 XF86Switch_VT_11 F11 F11 XF86Switch_VT_11 F11 F11 F11 F11 XF86Switch_VT_11
keycode  96 = F12 F12 F12 F12 F12 F12 XF86Switch_VT_12 F12 F12 XF86Switch_VT_12 F12 F12 F12 F12 XF86Switch_VT_12
keycode  97 =
keycode  98 = Katakana NoSymbol Katakana NoSymbol Katakana
keycode  99 = Hiragana NoSymbol Hiragana NoSymbol Hiragana
keycode 100 = Henkan_Mode NoSymbol Henkan_Mode NoSymbol Henkan_Mode
keycode 101 = Hiragana_Katakana NoSymbol Hiragana_Katakana NoSymbol Hiragana_Katakana
keycode 102 = Muhenkan NoSymbol Muhenkan NoSymbol Muhenkan
keycode 103 =
keycode 104 = KP_Enter NoSymbol KP_Enter NoSymbol KP_Enter
keycode 105 = Control_R NoSymbol Control_R NoSymbol Control_R
keycode 106 = Shift_L KP_Divide KP_Divide U2215 KP_Divide KP_Divide XF86Ungrab 0x10000f7 VoidSymbol XF86Ungrab
keycode 107 = Print Sys_Req Print Sys_Req Print Sys_Req
keycode 108 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keycode 109 = Linefeed NoSymbol Linefeed NoSymbol Linefeed
keycode 110 = Home KP_8  Home NoSymbol Home
keycode 111 = Up NoSymbol Up NoSymbol Up
keycode 112 = Prior KP_9  Prior NoSymbol Prior
keycode 113 = Left NoSymbol Left NoSymbol Left
keycode 114 = Right NoSymbol Right NoSymbol Right
keycode 115 = End KP_5  End NoSymbol End
keycode 116 = Down NoSymbol Down NoSymbol Down
keycode 117 = Next KP_6  Next NoSymbol Next
keycode 118 = Insert KP_4  Insert NoSymbol Insert
keycode 119 = Delete KP_1 Delete KP_1 Delete
keycode 120 =
keycode 121 = XF86AudioMute NoSymbol XF86AudioMute NoSymbol XF86AudioMute
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
keycode 124 = XF86PowerOff NoSymbol XF86PowerOff NoSymbol XF86PowerOff
keycode 125 = f F KP_Equal NoSymbol KP_Equal
keycode 126 = plusminus NoSymbol plusminus NoSymbol plusminus
keycode 127 = Pause Break Pause Break Pause Break
keycode 128 = XF86LaunchA NoSymbol XF86LaunchA NoSymbol XF86LaunchA
keycode 129 = KP_Decimal KP_Decimal KP_Decimal KP_Decimal KP_Decimal KP_Decimal
keycode 130 = Hangul NoSymbol Hangul NoSymbol Hangul
keycode 131 = Hangul_Hanja NoSymbol Hangul_Hanja NoSymbol Hangul_Hanja
keycode 132 =
keycode 133 = Super_L NoSymbol Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R NoSymbol Super_R
keycode 135 = Menu NoSymbol Menu NoSymbol Menu
keycode 136 = Cancel KP_Divide Cancel KP_Divide
keycode 137 = Redo NoSymbol Redo NoSymbol Redo
keycode 138 = SunProps NoSymbol SunProps NoSymbol SunProps
keycode 139 = Undo KP_Decimal Undo NoSymbol Undo
keycode 140 = Caps_Lock NoSymbol SunFront NoSymbol SunFront
keycode 141 = XF86Copy KP_3  XF86Copy NoSymbol XF86Copy
keycode 142 = p P XF86Open NoSymbol XF86Open
keycode 143 = XF86Paste KP_Add XF86Paste NoSymbol XF86Paste
keycode 144 = Find KP_7  Find NoSymbol Find
keycode 145 = XF86Cut KP_2  XF86Cut NoSymbol XF86Cut
keycode 146 = Help KP_0  Help NoSymbol Help
keycode 147 = XF86MenuKB NoSymbol XF86MenuKB NoSymbol XF86MenuKB
keycode 148 = Tab NoSymbol XF86Calculator NoSymbol XF86Calculator
keycode 149 =
keycode 150 = XF86Sleep NoSymbol XF86Sleep NoSymbol XF86Sleep
keycode 151 = XF86WakeUp NoSymbol XF86WakeUp NoSymbol XF86WakeUp
keycode 152 = XF86Explorer KP_Multiply XF86Explorer KP_Multiply
keycode 153 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
keycode 154 =
keycode 155 = XF86Xfer NoSymbol XF86Xfer NoSymbol XF86Xfer
keycode 156 = XF86Launch1 NoSymbol XF86Launch1 NoSymbol XF86Launch1
keycode 157 = XF86Launch2 NoSymbol XF86Launch2 NoSymbol XF86Launch2
keycode 158 = XF86WWW NoSymbol XF86WWW NoSymbol XF86WWW
keycode 159 = XF86DOS NoSymbol XF86DOS NoSymbol XF86DOS
keycode 160 = XF86ScreenSaver NoSymbol XF86ScreenSaver NoSymbol XF86ScreenSaver
keycode 161 = XF86RotateWindows NoSymbol XF86RotateWindows NoSymbol XF86RotateWindows
keycode 162 = XF86TaskPane NoSymbol XF86TaskPane NoSymbol XF86TaskPane
keycode 163 = Alt_L NoSymbol XF86Mail NoSymbol XF86Mail
keycode 164 = r R XF86Favorites NoSymbol XF86Favorites
keycode 165 = XF86MyComputer NoSymbol XF86MyComputer NoSymbol XF86MyComputer
keycode 166 = q Q XF86Back NoSymbol XF86Back
keycode 167 = d D XF86Forward NoSymbol XF86Forward
keycode 168 =
keycode 169 = XF86Eject NoSymbol XF86Eject NoSymbol XF86Eject
keycode 170 = XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject
keycode 171 = XF86AudioNext NoSymbol XF86AudioNext NoSymbol XF86AudioNext
keycode 172 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
keycode 173 = XF86AudioPrev NoSymbol XF86AudioPrev NoSymbol XF86AudioPrev
keycode 174 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject XF86AudioStop XF86Eject
keycode 175 = XF86AudioRecord NoSymbol XF86AudioRecord NoSymbol XF86AudioRecord
keycode 176 = XF86AudioRewind NoSymbol XF86AudioRewind NoSymbol XF86AudioRewind
keycode 177 = XF86Phone NoSymbol XF86Phone NoSymbol XF86Phone
keycode 178 =
keycode 179 = XF86Tools NoSymbol XF86Tools NoSymbol XF86Tools
keycode 180 = z Z XF86HomePage NoSymbol XF86HomePage
keycode 181 = a A XF86Reload NoSymbol XF86Reload
keycode 182 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
keycode 183 =
keycode 184 =
keycode 185 = XF86ScrollUp NoSymbol XF86ScrollUp NoSymbol XF86ScrollUp
keycode 186 = XF86ScrollDown NoSymbol XF86ScrollDown NoSymbol XF86ScrollDown
keycode 187 = parenleft NoSymbol parenleft NoSymbol parenleft
keycode 188 = parenright NoSymbol parenright NoSymbol parenright
keycode 189 = XF86New NoSymbol XF86New NoSymbol XF86New
keycode 190 = Redo NoSymbol Redo NoSymbol Redo
keycode 191 = XF86Calculator XF86Calculator XF86Tools NoSymbol XF86Tools
keycode 192 = XF86Launch5 NoSymbol XF86Launch5 NoSymbol XF86Launch5
keycode 193 = XF86Launch6 NoSymbol XF86Launch6 NoSymbol XF86Launch6
keycode 194 = t T XF86Launch7 NoSymbol XF86Launch7
keycode 195 = g G XF86Launch8 NoSymbol XF86Launch8
keycode 196 = v V XF86Launch9 NoSymbol XF86Launch9
keycode 197 = b B
keycode 198 = c C c C copyright copyright copyright registered c C
keycode 199 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle NoSymbol XF86TouchpadToggle
keycode 200 = XF86TouchpadOn NoSymbol XF86TouchpadOn NoSymbol XF86TouchpadOn
keycode 201 = XF86TouchpadOff NoSymbol XF86TouchpadOff NoSymbol XF86TouchpadOff
keycode 202 =
keycode 203 = Mode_switch NoSymbol Mode_switch NoSymbol Mode_switch
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L NoSymbol Super_L
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L NoSymbol Hyper_L
keycode 208 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
keycode 209 = XF86AudioPause NoSymbol XF86AudioPause NoSymbol XF86AudioPause
keycode 210 = XF86Launch3 NoSymbol XF86Launch3 NoSymbol XF86Launch3
keycode 211 = XF86Launch4 NoSymbol XF86Launch4 NoSymbol XF86Launch4
keycode 212 = XF86LaunchB NoSymbol XF86LaunchB NoSymbol XF86LaunchB
keycode 213 = XF86Suspend NoSymbol XF86Suspend NoSymbol XF86Suspend
keycode 214 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
keycode 215 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
keycode 216 = XF86AudioForward NoSymbol XF86AudioForward NoSymbol XF86AudioForward
keycode 217 =
keycode 218 = Print NoSymbol Print NoSymbol Print
keycode 219 =
keycode 220 = XF86WebCam NoSymbol XF86WebCam NoSymbol XF86WebCam
keycode 221 =
keycode 222 =
keycode 223 = XF86Mail NoSymbol XF86Mail NoSymbol XF86Mail
keycode 224 = XF86Messenger NoSymbol XF86Messenger NoSymbol XF86Messenger
keycode 225 = e E XF86Search NoSymbol XF86Search
keycode 226 = XF86Go NoSymbol XF86Go NoSymbol XF86Go
keycode 227 = XF86Finance NoSymbol XF86Finance NoSymbol XF86Finance
keycode 228 = XF86Game NoSymbol XF86Game NoSymbol XF86Game
keycode 229 = XF86Shop NoSymbol XF86Shop NoSymbol XF86Shop
keycode 230 =
keycode 231 = Cancel NoSymbol Cancel NoSymbol Cancel
keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
keycode 234 = XF86AudioMedia NoSymbol XF86AudioMedia NoSymbol XF86AudioMedia
keycode 235 = XF86Display NoSymbol XF86Display NoSymbol XF86Display
keycode 236 = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff
keycode 237 = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown
keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp
keycode 239 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
keycode 240 = XF86Reply NoSymbol XF86Reply NoSymbol XF86Reply
keycode 241 = XF86MailForward NoSymbol XF86MailForward NoSymbol XF86MailForward
keycode 242 = XF86Save NoSymbol XF86Save NoSymbol XF86Save
keycode 243 = XF86Documents NoSymbol XF86Documents NoSymbol XF86Documents
keycode 244 = XF86Battery NoSymbol XF86Battery NoSymbol XF86Battery
keycode 245 = XF86Bluetooth NoSymbol XF86Bluetooth NoSymbol XF86Bluetooth
keycode 246 = XF86WLAN NoSymbol XF86WLAN NoSymbol XF86WLAN
keycode 247 =

une fois que ce fichier .conf est modifié et enregistrer il faut reussir a le lancer a chaque demmarage, là j'ai galerer:
3) toujours dans votre dossier personel cree un fichier et nommez le : zboard.sh
dans ce fichier ecrire ceci:

#!/bin/bash
xmodmap ~/zboard.conf

EDIT: puis tres important, il faut ensuite allez dans les proprieté des 2 fichiers ( le .sh et le .conf ), ongler "permission" et cocher la case "autoriser l'execution du fichier comme un programme" ou taper dans le terminal:

sudo chmod +x ~/zboard.sh

puis

sudo chmod +x ~/zboard.conf

4) trouver le programme "application au demarage"  lancer le, cliquer sur "ajouter" vous avez alors 3 case a remplir nom, commande, commentaire, dans non vous mettez par exemple "lancement du clavier zboard"
dans commande (c'est la partie importante ) vous devez mettre:

sh -c "./zboard.sh"

et dans commentaire vous mettez ce que vous voulez ou rien du tout...
ATTENTION de bien mettre en dernier dans la liste cette nouvelle commande, suite a des manip elle s'etait retrouver au debut et du coup ca ne marchai plus.

et voila au lancement le script zboard.sh va se lancer, ce script va demander de lancer la commande xmodmap ~/zboard.conf dans le terminal, et tout va marcher

( SAUF la touche s du pavé rouge de direction a gauche , qui a le meme keycode que la touche / du pavé numerique a droite, du coup vous devez choisir soit les 2 affiche "s" soit les 2 affiche "/" perso j ai choisi / pour utiliser la calculette plus facillement )

merci aux helpeurs meme si dans ce cas ça n as pas marcher ça m as aider a m'aiguiller un peu wink

Dernière modification par Yodasky (Le 18/08/2016, à 13:54)

Hors ligne

#9 Le 13/08/2016, à 02:19

MicP

Re : lancer commande au demarrage pour modif les touches de clavier

Une autre solution serait de créer un fichier ~/.Xmodmap dans lequel tu mets le contenu de ton fichier Zboard.conf
( Ou bien, tu renomme simplement ton Zboard.conf en ~/.Xmodmap )

Le fichier ~/.Xmodmap (EDIT : sur debian, mais pas sur ubuntu) sera automatiquement pris en compte par xmodmap au moment de la connexion de l'utilisateur à sa session graphique
=> Pas besoin d'utiliser un script au démarrage ou autre.

=======
Notes :

  • Le X de .Xmodmap doit être un X majuscule, sinon ça ne fonctionnera pas.

  • ~/.Xmodmap <=> $HOME/.Xmodmap <=> /home/Yodasky/.Xmodmap

Dernière modification par MicP (Le 05/03/2017, à 16:52)

Hors ligne

#10 Le 14/08/2016, à 07:54

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

salut
cette dernière solution ne marche pas.
j'ai bien mit un Xmajuscule j'ai renommer le fichier .Xmodmap il ne se passe rien
j'ai tenter de le renommer en "~/.Xmodmap" au cas ou j'aurai mal compris , mais les barre oblique sont interdit dans les nom de fichier.
le fichier est bien dans mon dossier personnel

il doit donc manquer une étape cruciale ou un détail clé a ton explication, ou alors cette solution n'est pas compatible avec Ubuntu 16.04

Dernière modification par Yodasky (Le 14/08/2016, à 07:56)

Hors ligne

#11 Le 15/08/2016, à 08:13

MicP

Re : lancer commande au demarrage pour modif les touches de clavier

…j'ai tenter de le renommer en "~/.Xmodmap" au cas ou j'aurai mal compris , mais les barre oblique sont interdit dans les nom de fichier.…

Je ne sais pas quelle ligne de commandes tu as utilisé (ou quel programme) pour renommer ce fichier.

mv /CheminQueJeNeConnaisPas/Zboard.conf /home/NomQueJeNeConnaisPas/.Xmodmap

Alors, en supposant que tu sois connecté avec le compte utilisateur dont tu veux modifier le comportement du clavier,
je pouvais utiliser ~/ ou $HOME/ pour remplacer /home/NomQueJeNeConnaisPas/
Ce qui donne :

mv /CheminQueJeNeConnaisPas/Zboard.conf ~/.Xmodmap

ou

mv /CheminQueJeNeConnaisPas/Zboard.conf $HOME/.Xmodmap

Mais après avoir relu les messages de ce fil, je n'ai pas pu trouver le chemin du fichier Zboard.conf
c'est pour ça que je ne peux que proposer : /CheminQueJeNeConnaisPas/Zboard.conf dans ma ligne de commande.


=======
J'utilise Xubuntu (et aussi XFCE avec debian), et le fichier ~/.Xmodmap y est bien pris en compte,
mais je ne savais pas (avant ton dernier message) quel était l'environnement de bureau que tu utilisais.

… cette solution n'est pas compatible avec Ubuntu 16.04…

Je viens d'installer ubuntu 16.04 et effectivement, le fichier ~/.Xmodmap n'y est pas pris en compte automatiquement.

J'aurai dû me dire que si pas spécifié, c'est que l'environnement de bureau est celui du dernier Ubuntu par défaut.

Dernière modification par MicP (Le 15/08/2016, à 08:17)

Hors ligne

#12 Le 15/08/2016, à 08:33

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

ahhh donc c'est bien çà c'est l incompatibilité avec la derniere ubuntu qui pose probleme smile
enfin bon ma solution proposer plus haut marche, c'est le principal smile

Hors ligne

#13 Le 15/08/2016, à 13:21

Hizoka

Re : lancer commande au demarrage pour modif les touches de clavier

Salut,

perso j'ai un souci dans le même genre, mon clavier a des touches multimédia... mais reconnues comme appartenant à la souris...
du coup je lance ce script au démarrage ("${HOME}/.config/autostart-scripts/keys.sh") :

#! /bin/bash

# Lancement de xmodmap
xmodmap ~/.xmodmap

# Si le logiciel est lancé
var=$(ps ax | grep "evrouter" | grep -v "grep" | egrep -o "[0-9][0-9][0-9]+")
[[ ${var} ]] && kill -9 ${var}

# Si le ficher lock existe deja
if [[ $(ls /tmp/.evrouter*) ]]
then
    rm /tmp/.evrouter*
fi

# Recherche la souris
device=$(sed -n "/mouse0/ s/.*event\([0-9]*\).*/event\1/p" /proc/bus/input/devices)

# Mise à jour du fichier evrouterrc
echo "\"Logitech USB Receiver\" \"/dev/input/${device}\" none key/148 \"XKey/XF86WWW\"
\"Logitech USB Receiver\" \"/dev/input/${device}\" none key/418 \"XKey/XF86MyComputer\"
\"Logitech USB Receiver\" \"/dev/input/${device}\" none key/419 \"XKey/XF86Shop\"
\"Logitech USB Receiver\" \"/dev/input/${device}\" none key/420 \"XKey/XF86Phone\"" > "${HOME}/.evrouterrc"

# Lancement de evrouter
evrouter /dev/input/${device}

Dans tous les cas, si ton probleme est résolu, ajoute un [resolu] dans le titre du topic.


KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github

Hors ligne

#14 Le 15/08/2016, à 18:26

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

Dans tous les cas, si ton probleme est résolu, ajoute un [resolu] dans le titre du topic.

merci de prevenir, je ne savais pas, par contre impossible de modifier le titre, ca refuse d'ecrire. un bouton resolu serai plus pratique

Hors ligne

#15 Le 15/08/2016, à 18:37

Hizoka

Re : lancer commande au demarrage pour modif les touches de clavier

il faut editer ton 1er message.

et je suis d'accord pour le bouton.

Dernière modification par Hizoka (Le 15/08/2016, à 18:38)


KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github

Hors ligne

#16 Le 17/08/2016, à 00:17

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

oui oui j avais bien compris qu il fallais editer le premier message, je peut faire apparaitre le curseur clignottant dans la barre de titre mais impossible d ecrire le moindre caractere, comme si mon clavier marchais pas... bizzard

Hors ligne

#17 Le 17/08/2016, à 01:54

MicP

Re : lancer commande au demarrage pour modif les touches de clavier

…Je peut faire apparaitre le curseur clignottant dans la barre de titre mais impossible d ecrire le moindre caractere, comme si mon clavier marchais pas... …

Pour le titre du fil, Il y a une limite au nombre de caractères possibles.
Il te faudra sans doute supprimer des caractères pour les remplacer par [résolu]

Hors ligne

#18 Le 18/08/2016, à 13:55

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

bravo micp c'etait ça le probleme smile

Hors ligne

#19 Le 20/08/2016, à 14:18

Yodasky

Re : lancer commande au demarrage pour modif les touches de clavier

bon, ben je reouvre le sujet, en fait finalement ça marche pas ! pour une raison inconue mon systeme marche quand je fait des redémarrage, mais ne marche pas apres un arret reel de l ordi...

donc je suis toujours a la recherche d un moyen de lancer un xmodmap au demmarage du systeme.... sur le dernier ubuntu... HEEEELPPPPPP

Hors ligne