Package Details: xkb-qwerty-fr 0.7.3-1

Git Clone URL: https://aur.archlinux.org/xkb-qwerty-fr.git (read-only, click to copy)
Package Base: xkb-qwerty-fr
Description: Keyboard layout based on the QWERTY layout with extra symbols and diacritics so that typing both in French and English is easy and fast. It is also easy to learn!
Upstream URL: https://qwerty-fr.org/
Keywords: azerty fr keyboard layout qwerty xkb
Licenses: GPL2
Submitter: Niluge_KiWi
Maintainer: Niluge_KiWi (Schnouki)
Last Packager: Schnouki
Votes: 7
Popularity: 0.010940
First Submitted: 2016-03-13 14:14 (UTC)
Last Updated: 2023-12-14 11:53 (UTC)

Latest Comments

« First ‹ Previous 1 2

Niluge_KiWi commented on 2019-08-22 11:21 (UTC)

@Schnouki I am not sure it's the right way to go when the the automatic install: what about uninstall? We should check other keyboard layouts packages..

Niluge_KiWi commented on 2019-08-20 21:15 (UTC)

@Schnouki here you go ! Thanks for helping maintaining this !

Thanks to @plesur too.

I will still have to dig into @TheArcher solution with localectl: maybe it can avoid the ugly patch in the .deb postinstall ...

Schnouki commented on 2019-08-20 21:06 (UTC)

@plesur Thanks a lot for your patch, it works very well :)

To improve it further: - in the .install file, add a post_upgrade function that calls post_install - add 'perl' to the depends array

@Niluge_KiWi, would you mind merging this patch? Or just add me as a maintainer and I'll do it :) Thanks!

plesur commented on 2017-12-05 23:10 (UTC) (edited on 2017-12-05 23:10 (UTC) by plesur)

Ok so I fixed the package by installing the postinst script from the .deb package into /usr/bin/, and by calling it in the post_install script in arch. If there's any xkb update you'll have to reinstall the package (as before)

Since the package is likely never gonna be updated by its original creator, shouldn't we move the source in the repo itself (as to avoid downloading it over http) ?

Here's the diff for my fix:

diff --git a/PKGBUILD b/PKGBUILD
index 921438c..acac9ff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,11 +21,14 @@ build() {
   ar -xv ${pkgname}_${pkgver}_all.deb

   tar xvf data.tar.gz
+  tar xvf control.tar.gz
 }

 package() {
   cd "$srcdir"

+  install -D -m 744 postinst ${pkgdir}/usr/bin/qwerty-fr.install
+
   install -D -m 644 usr/share/X11/xkb/symbols/us_qwerty-fr ${pkgdir}/usr/share/X11/xkb/symbols/us_qwerty-fr

   install -D -m 644 usr/share/doc/xkb-qwerty-fr/changelog.gz ${pkgdir}/usr/share/doc/xkb-qwerty-fr/changelog.gz
diff --git a/xkb-qwerty-fr.install b/xkb-qwerty-fr.install
index 6ceafc3..f506b87 100644
--- a/xkb-qwerty-fr.install
+++ b/xkb-qwerty-fr.install
@@ -1,5 +1,3 @@
 post_install() {
-   cat << EOF
-==> See http://marin.jb.free.fr/qwerty-fr/manual/ to complete xkb-qwerty-fr installation
-EOF
+   /usr/bin/qwerty-fr.install triggered
 }

TheArcher commented on 2017-03-19 11:38 (UTC)

Here's how I got it working for Arch: I intalled this package using Yaourt. Nothing changed. After some digging, I ran "setxkbmap us_qwerty-fr" and it worked. When I rebooted however, it stopped working. It appeared I had to run the command every time. That wasn't practical. After some more digging, I ran this command "localectl set-x11-keymap us_qwerty-fr", and it worked for real this time. Hope this helps someone.

plesur commented on 2016-06-15 17:53 (UTC) (edited on 2016-06-15 17:53 (UTC) by plesur)

So a xkb update broke this and I ran the postinst from the deb package and everything went back to normal. apt-get lets users merge modified files when updating a package, I guess there's nothing like this on arch ? The only way to create a durable pacakge would be to be able to source files/not change the layouts files each update but that would be a change to xkb and not this package... And I don't have any trouble with the altgr key so you might want to give it a shot

Niluge_KiWi commented on 2016-05-19 20:50 (UTC)

Hi plesur, I encountered a blocking issue when packaging this, and haven't found a fix yet, that's why it's not working out-of-the-box. Integrating the .deb scripts was initially planned, but since the manual install failed I stopped there. (Furthermore, the deb scripts are complex and seemed not clean: it seemed they would break on evdev/xkb package upgrade. I don't know if we can do better). Here is the upstream manual installation guide: http://marin.jb.free.fr/qwerty-fr/manual/ It should be printed as post-install (see https://aur.archlinux.org/cgit/aur.git/commit/?h=xkb-qwerty-fr&id=16a1201e98de5f263fe8d8bec60be5b9550d8655). The issue I encountered was that AltGr worked as a simple Alt, breaking the main point of qwerty-fr. Here is someone who had the same issue as mine with a different additional layout (https://aur.archlinux.org/packages/programmers-dvorak/): https://bbs.archlinux.org/viewtopic.php?pid=1601714#p1601714 After a lot of digging I gave up and ended up manually running "setxkbmap -v -layout us_qwerty-fr -option lv3:ralt_switch" after each reboot and each suspend/resume... If you don't have this issue maybe it's time I try again ! If you want to improve this AUR package I can add you as co-maintainer, which would mean you can push to the git repository associated with this package.

plesur commented on 2016-05-18 20:38 (UTC) (edited on 2016-05-18 21:05 (UTC) by plesur)

Hi ! Really love this layout, tried it on my Debian install, however I'm having some troubles installing it on Arch. The deb package seems to append the content of the /usr/share/X11/xkb/symbols/us_qwerty-fr file to the /usr/share/X11/xkb/symbols/us file However this AUR package does not do it (it only creates the first file mentioned). I manually did the merge and it now works using "setxkbmap us qwerty-fr" but it doesn't show up through gnome's GUI or using "localectl list-x11-keymap-variants us", which means we need to manually change the layout, and can't change it using super+space. Edit: I ended up running the "postinst" directly from the .deb package and now I see the layout under the French language. I'm not sure if it was necessary or if the previous change (copying the content of us_qwerty-fr to us) was enough as I was looking for the layout under the English language. I'd gladly help fix the package if I knew how though.