Skip Navigation
Dirk 𝘋𝘪𝘳𝘬 @lemmy.ml

Somewhere between Linux woes, gaming, open source, 3D printing, recreational coding, and occasional ranting.

🔗 Me, but elsewhere

🇬🇧 / 🇩🇪

Posts 21
Comments 2.1K
Firefox development is moving from Mercurial to Git
  • I've never seen larger projects like Firefox hosted with Forgejo.

  • Warum riecht es hier nach Punktkatze?
  • Großkatzenrosette!

  • Firefox development is moving from Mercurial to Git
  • So why not use forejo, which is completely open source?

    Absolutely! I’d always go the Forgejo route!

    The thing is: I don’t see Firefox being hosted with Forgejo. The code base and amount of data might be way too massive. I see Forgejo as a forge for smaller projects.

  • Straßenverkehrsgesetz reformiert: Auto verliert Vorfahrt
  • Sie müssten nur auch angewendet werden …

    Ich wohne an einer gut ausgebauten Straße, ab 19 Uhr in dem dreh wird sie zur Rennstrecke.

  • Straßenverkehrsgesetz reformiert: Auto verliert Vorfahrt
  • Ja, alles besser als vorher. Bleibt nur zu hoffen, dass die Kommunen davon auch regen Gebrauch machen und die Einhaltung auch kontrolliert wird.

  • Firefox development is moving from Mercurial to Git
  • It absolutely is. Yes. You can run and maintain it on an own server and it is open core (yeah 😥) using the MIT license - unlike GitHub where you have to rely 100% on the goodwill of Microsoft and everything is closed and locked behind a TOS.

  • Firefox development is moving from Mercurial to Git
  • Still better than a fully closed, 100% proprietary, cloud-only Microsoft service.

  • Straßenverkehrsgesetz reformiert: Auto verliert Vorfahrt
  • Einfach an der Stadtgrenze T30 einstellen und gut ist.

    Prinzipiell ja. Es wäre für absolut alle ausnahmslos besser. Aber dann kommen Großstädte und Stadtstaaten dazu. Ganzes Bundesland Tempo 30? Schwierig vermittelbar. Innenstadt aber auf jeden Fall - am besten schon gestern!

  • Straßenverkehrsgesetz reformiert: Auto verliert Vorfahrt
  • Wenn nicht mindestens 98% aller öffentlichen Wege für Autos sind, ist das Freiheitsberaubung!!!111elf!!11

  • Google be like
  • Then don't use Chrome?

  • Firefox development is moving from Mercurial to Git
  • Sad to see they only use MS GitHub instead of selfhosting something like GitLab. Just another vendor lock-in.

  • overslept
  • still eepy

  • Celebrating #Firefox’s 20th birthday! 😍
  • Absolutely. But running after the latest hypetrain bullshit and managers cashing out on corporation income is more important to them.

    Till this day the mobile browser absolutely sucks (you don't have a tab bar and you can't even set a homepage! What the hell?!) and the desktop browser gets slower with every update. But at least we now have AI nonsense, not stylable UI by default, and massive loads of telemetry and user tracking only configurable via about:config.

    Firefox could be such an awesome browser if it would be modernized, made faster, and made fully configurable (mobile and desktop alike).

    I'm not mad at the main devs or the volunteers. They do an awesome job! The state Firefox is in is entirely the fault of the foundation management.

  • Celebrating #Firefox’s 20th birthday! 😍
  • I am not going to support the foundation.

    In 2021, Mozilla Corporation generated $441 million in royalties, which represented almost 89% of its income.

    Source

    As of 2021, Mozilla (including the Foundation and the wholly owned For-Profit Corporations), had total assets worth over $1.1 Billion USD [...]

    Source (inb4 "bUt LunDukE iS bAd" - his personal and political views have nothing to do with his research analysis work in this article)

  • The anti-AI sentiment in the free software communities is concerning.
  • Whenever AI is mentioned lots of people in the Linux space immediately react negatively.

    Because whenever AI is mentioned it usually isn't even close to what AI meant.

  • Celebrating #Firefox’s 20th birthday! 😍
  • Most of the money does not go into the browser anyways.

  • People who refuse to learn how to drive a car, why?
  • So, what’s your reason to not drive a car

    I simply don't need to, nor do I want to. I live in a country with good public transport - in a city with comparably well working public transport. There simply is no need for me. There never was.

    I can get around the city either by train ("normal" trains and subways) or by bus. On weekends there is a 24 service for all trains and subways every 8-20 minutes (depending on line). There are also night busses connecting party areas with the nearest train stations and the inner city with the outskirts.

    In the mornings and afternoons on weekdays there are additional commuter busses and trains and subways on most lines so the service is scheduled on a minute basis on some lines for some time during rush hours. The "worst" it gets is every 30 minutes in the middle of the night.

    And if I don't want to take public transport I can always use my bike or my electric scooter. The bike lanes are not Netherlands quality, but they're okay. It's also fun to drive by traffic jam having my inner monologue making fun of alle the people waiting hours over hours on the streets 😄

    The great thing is: Some time ago the government and the individual public transport providers of the cities and areas made a country-wide ticket for all public transport. So I can just hop on a bus in my city, drive to the train station, enter a regional train that goes to another city in another federal state, come out the train station and take the nearest bus I want without having to pay anything except the monthly fee for the ticket or checking if the ticket is valid in that area.

    When I want to take longer trips further away I'll likely take a train on our highspeed railway network covering basically the whole country (not covered by the ticket I mentioned). It's notorious for being delayed or having issues, but my individual experience is much better than in the memes that exist.

  • What do I give my bad dad for father's day?
  • A plain white gift card with the following text maybe?

    Hello father,

    today is Father's Day. As your son I am expected to send you a gift card at least.

    This is the gift card.

    [Your first and last name]

  • Which are your preferred laptops?
  • If you're on a small budget, look for older ThinkPad laptops, you can get them for good prices and in good condition and Linux works very well on them.

    For mid-range try to find an older Dell XPS 13, they sold those as certified Linux devices nicknamed "Developer Edition" and with an Ubuntu LTS version preinstalled. I have one of those and I run Arch on it. It runs perfectly fine. Also: superb build quality! It's a very great device.

  • [solved] How to get rid of those stupid background and font color?

    Update: Based on the discussion here and in other places I added the following (well, technically I did something different in my colorscheme, but in the end it translates to that)

    lua vim.api.nvim_set_hl(0, 'Normal', {})

    This reverts the weird text and background colors to the previous behavior of ... not setting them. ________

    With update 0.10 Neovim behavior changed regarding text color and background color.

    I use a color theme that does not set those and previously this worked perfectly fine. Neovim simply used the font color defined in the terminal and had a transparent background.

    Now the background is #14161b and the font color is #e0e2ea. Neither of the colors is configured ANYWHERE in my whole setup. Neither in the colorscheme, nor in my terminal configuration, nor in my Neovim configuration.

    Is there a sane way to revert this to the old behavior? (i.e. use the font color configured in the terminal’s configuration and use transparent background.)

    14

    How to map prepared and planned bus stops that are not in use yet?

    Recently the city redesigned the street and prepared at least 4 bus stops. The stops all have the road markings and tactile paving, etc. but no bus stop signs yet and currently no line stops there. (There is an ongoing reorganization of bus lines in my area.)

    The wiki page describes how to map a bus stop and I can follow along. Everything except the line(s) and the names is local knowledge.

    How should those be mapped (if at all)? Map what’s known already and add construction:bus_stop?

    4
    Deppen Leer Zeichen @feddit.de 𝘋𝘪𝘳𝘬 @lemmy.ml

    Zu Ostern gab es Blätter und Krokant und gefüllte Vollmilchschokolade

    !

    2

    Best way to dockerize a static website?

    I'm currently researching the best method for running a static website from Docker.

    The site consists of one single HTML file, a bunch of CSS files, and a few JS files. On server-side nothing needs to be preprocessed. The website uses JS to request some JSON files, though. Handling of the files is doing via client-side JS, the server only need to - serve the files.

    The website is intended to be used as selfhosted web application and is quite niche so there won't be much load and not many concurrent users.

    I boiled it down to the following options:

    1. BusyBox in a selfmade Docker container, manually running httpd or The smallest Docker image ...
    2. php:latest (ignoring the fact, that the built-in webserver is meant for development and not for production)
    3. Nginx serving the files (but this)

    For all of the variants I found information online. From the options I found I actually prefer the BusyBox route because it seems the cleanest with the least amount of overhead (I just need to serve the files, the rest is done on the client).

    Do you have any other ideas? How do you host static content?

    52
    /c/cybersecurity - Cybersecurity News & Discussion @lemmy.ml 𝘋𝘪𝘳𝘬 @lemmy.ml

    Was there a recent hack/leak affecting Spotify?

    So, yeah. Other than stated, Spotify does not provide 2FA (shame on them!), so I use a strong password and since years nothing happened.

    This early morning I got multiple mails that my account was logged in from Brazil, from the USA, from India, and some other countries. There were songs liked and playlists created so it wasn’t a malicious e-mail but some people actually were able to log on to my Spotify account.

    I of course changed the password and logged out all accounts and checked allowed apps, etc. and everything looks fine.

    But I wonder … was there something that happened recently? The common sites to check such things do not list my old Spotify password, and a quick web research does not bring anything up.

    Any clue what could have happened here?

    5

    Stock-y alternative launcher for Pixel 7?

    Update 3 months later:

    I’m using Smart Launcher since my last post here. It’s great. I even bought the pro version. It’s not super “stock-y”, but that’s absolutely fine. I like that you can customize a lot of things!

    The combo widget shows upcoming alarms and bank holidays. Also (somewhat) location-aware weather.

    I think I stick with it.

    --------

    Now that the Google search bar on the homescreen has become uttery useless there is no real reason to have it anymore and it is annoying anyways, so I am in search for a launcher that resembles the stock Pixel launcher.

    Especially the "combo widget" that shows the time, the date, position-weather, tasks, warnings, timers, etc. all in one place.

    Launchers I tried so war that don't seem to have such a widget and seem not to be able to use that widget:

    • Nova
    • Lawnchair
    • Niagara
    • Hyperion

    Those are all great launchers, but this specific functionality (basically the only feature I use on my homescreen besides one single icon for one app) seems to be missing in all of them.

    So my question is: does someone know a launcher that comes with an unobstrusive "combo widget" like the stock widget as described, that also allows me to remove the now useless search bar from the home screen?

    7
    Lemmy Support @lemmy.ml 𝘋𝘪𝘳𝘬 @lemmy.ml

    Why doesn’t my front page show me posts from my subscribed communities even if it says it would?

    Basically the title.

    When I open lemmy.ml it says “posts, subscribed, oredered by new” on top:

    !

    But almost none of the posts shown are from my subscribed communities and they’re not ordered by new.

    There are even posts from communities shown that I have on my block list.

    Any idea how to fix that?

    0
    Lemmy Support @lemmy.ml 𝘋𝘪𝘳𝘬 @lemmy.ml

    Blocking instances does not work

    Since the new version was deployed to lemmy.ml which allows blocking instances I tried to block an instance.

    When opening the drop down and enter the name/url of the instance (or even a part of its name) the list is then filled with a seemingly random list of instances but not the instace I searched for.

    I tried in a desktop browser (Chrome on Windows) and in a mobile browser (Vivaldi Mobile, which uses Chromium as base), same behavior.

    Since I don't use GitHub I report it here.

    0

    [Rant] Why is there no sane way to remap keys?

    shared from: https://lemmy.ml/post/6282553

    There is now an update: https://lemmy.ml/comment/6913362#comment-6913362

    The rant is obsolete now :)

    > I recently switched to Hyprland on my laptop and was able to set it up as I like, but I struggle hard to set up keybinds to simply print different characters when pressing certain key combinations. > > For example, one small snippet from my .Xmodmap (there are more in this file but that’s enough for a minimal working example) > > > keycode 108 = Mode_switch > keycode 38 = a A adiaeresis Adiaeresis > > > This allows me to press the A key in combination with the right Alt key to print an ä or an Ä when shift is pressed, to. > > ### wtype and built-in key binding > > After some research I found [wtype][wtype] which allows me to write arbitrary text when called with the parameters. > > After I learned that Hyprland (or Wayland) does not distinguish between Alt_R and Alt_L (they’re shown as Alt_R and Alt_L in [wev][wev] with different keysyms, so they’re clearly two different keys) and I accepted it, I just found out that this tool only works when being in a terminal emulator and not in a GUI application so this tool is useless for me. > > ### keyd > > Then I tried [keyd][keyd]. After setting it up and adding my user to the needed groups and starting the service and trying to figure out how to actually define keymaps I was able to send something when pressing a defined key combination. > > But: Nothing else than ASCII. > > The dev thinks it’s a Chromium problem based on [this issue][issue] but it actually isn’t. I wasn’t able to send an ä to ANY application, no matter if GUI or terminal or [Qutebrowser][qb]. > > Since there is basically no online resources or user community for this tool, I cannot find any usable information on this issue except the unrelated Chrome reference and thus I removed it again because I cannot use it for what I want to use it for. > > ### xkb > > For whatever reason Wayland (or Hyprland) uses certain parts of the [X keyboard extension][xkb], so I also tried this one. > > Despite being absurdly complex and annoying to setup I was able to configure a user based keyboard variant using user-based symbols. From what I’ve taken [from][from] [various][various] [sites][sites] my config should do nothing more than remapping Alt_R to ISO_Layer3_Shift just for testing purposes. > > But all I achieved was reproducibly crashing Hyprland when setting it up to actually use said keyboard variant and there seems to be no log file. > > ### yeah, that’s where we are > > Again, it’s not about the umlauts, and not about the German keyboard layout, and not about switching lkayouts on-the-fly, it’s just to demonstrate what I mean. You can replace ä with any other character you want. > > After a long night of trying out to have the Xmodmap functionality in Wayland using Hyprland as compositor I ended up with not being successful. > > I give up for now. > > Maybe one day there will be an actually working solution requiring nothing more than two lines in a file. > > [wtype]: https://github.com/atx/wtype > [wev]: https://git.sr.ht/~sircmpwn/wev > [keyd]: https://github.com/rvaiya/keyd > [issue]: https://github.com/rvaiya/keyd/issues/470 > [qb]: https://qutebrowser.org > [xkb]: https://en.wikipedia.org/wiki/X_keyboard_extension > > [from]: https://askubuntu.com/questions/1187610/reassigning-modifier-keys-with-xkb > [various]: https://unix.stackexchange.com/questions/572768/remapping-a-key-for-xkb > [sites]: https://blog.debiania.in.ua/posts/2021-06-10-remapping-keys-under-wayland.html

    0

    [Rant] Why is there no sane way to remap keys?

    I recently switched to Hyprland on my laptop and was able to set it up as I like, but I struggle hard to set up keybinds to simply print different characters when pressing certain key combinations.

    For example, one small snippet from my .Xmodmap (there are more in this file but that’s enough for a minimal working example)

    keycode 108 = Mode_switch keycode 38 = a A adiaeresis Adiaeresis

    This allows me to press the A key in combination with the right Alt key to print an ä or an Ä when shift is pressed, to.

    wtype and built-in key binding

    After some research I found [wtype][wtype] which allows me to write arbitrary text when called with the parameters.

    After I learned that Hyprland (or Wayland) does not distinguish between Alt_R and Alt_L (they’re shown as Alt_R and Alt_L in [wev][wev] with different keysyms, so they’re clearly two different keys) and I accepted it, I just found out that this tool only works when being in a terminal emulator and not in a GUI application so this tool is useless for me.

    keyd

    Then I tried [keyd][keyd]. After setting it up and adding my user to the needed groups and starting the service and trying to figure out how to actually define keymaps I was able to send something when pressing a defined key combination.

    But: Nothing else than ASCII.

    The dev thinks it’s a Chromium problem based on [this issue][issue] but it actually isn’t. I wasn’t able to send an ä to ANY application, no matter if GUI or terminal or [Qutebrowser][qb].

    Since there is basically no online resources or user community for this tool, I cannot find any usable information on this issue except the unrelated Chrome reference and thus I removed it again because I cannot use it for what I want to use it for.

    xkb

    For whatever reason Wayland (or Hyprland) uses certain parts of the [X keyboard extension][xkb], so I also tried this one.

    Despite being absurdly complex and annoying to setup I was able to configure a user based keyboard variant using user-based symbols. From what I’ve taken [from][from] [various][various] [sites][sites] my config should do nothing more than remapping Alt_R to ISO_Layer3_Shift just for testing purposes.

    But all I achieved was reproducibly crashing Hyprland when setting it up to actually use said keyboard variant and there seems to be no log file.

    yeah, that’s where we are

    Again, it’s not about the umlauts, and not about the German keyboard layout, and not about switching lkayouts on-the-fly, it’s just to demonstrate what I mean. You can replace ä with any other character you want.

    After a long night of trying out to have the Xmodmap functionality in Wayland using Hyprland as compositor I ended up with not being successful.

    I give up for now.

    Maybe one day there will be an actually working solution requiring nothing more than two lines in a file.

    [wtype]: https://github.com/atx/wtype [wev]: https://git.sr.ht/~sircmpwn/wev [keyd]: https://github.com/rvaiya/keyd [issue]: https://github.com/rvaiya/keyd/issues/470 [qb]: https://qutebrowser.org [xkb]: https://en.wikipedia.org/wiki/X_keyboard_extension

    [from]: https://askubuntu.com/questions/1187610/reassigning-modifier-keys-with-xkb [various]: https://unix.stackexchange.com/questions/572768/remapping-a-key-for-xkb [sites]: https://blog.debiania.in.ua/posts/2021-06-10-remapping-keys-under-wayland.html

    3

    Your favorite native Linux games?

    Let's leave Steam and other launchers and distribution platforms alone a bit. Also lets stop discussing game engines for moment ...

    • What are your favorite games that run natively on Linux and what genre are they?

    Would be cool if you could write a few words about the game and why it's your favorite game.

    62

    How do YOU create your Docker images?

    Currently I’m planning to dockerize some web applications but I didn’t find a reasonably easy way do create the images to be hosted in my repository so I can pull them on my server.

    What I currently have is:

    1. A local computer with a directory where the application that I want to dockerize is located
    2. A “docker server” running Portainer without shell/ssh access
    3. A place where I can upload/host the Docker images and where I can pull the images from on the “Docker server”
    4. Basic knowledge on how to write the needed Dockerfile

    What I now need is a sane way to build the images WITHOUT setting up a fully featured Docker environment on the local computer.

    Ideally something where I can build the images and upload them but without that something “littering Docker-related files all over my system”.

    Something like a VM that resets on every start maybe? So … build the image, upload to repository, close the terminal window, and forget that anything ever happened.

    What is YOUR solution to create and upload Docker images in a clean and sane way?

    44

    Flatpak Steam crashes on startup

    Since some time now the Steam Flatpak cannot start up and I have no idea why this happens.

    Web research leads to basically nothing that is related to what I experience so I assume it has something to do with my system. Other Flatpaks start up normally and I can use them.

    When resetting everything related to the Steam Flatpak and reinstalling it from Flathub it loads and installs the Flatpak and then installs all necessary stuff

    [various update-related stuff] setup.sh[4598]: Forced use of runtime version for 32-bit libcurl.so.4 setup.sh[4598]: Found newer runtime version for 32-bit libSDL2-2.0.so.0. Host: 0.2400.0 Runtime: 0.2600.5 setup.sh[4598]: Forced use of runtime version for 32-bit libgtk-x11-2.0.so.0 setup.sh[4598]: Found newer runtime version for 32-bit libvulkan.so.1. Host: 1.3.224 Runtime: 1.3.239 setup.sh[4598]: Forced use of runtime version for 32-bit libdbusmenu-glib.so.4 setup.sh[4598]: Forced use of runtime version for 32-bit libcurl-gnutls.so.4 setup.sh[4598]: Forced use of runtime version for 32-bit libdbusmenu-gtk.so.4 setup.sh[4598]: Forced use of runtime version for 64-bit libcurl.so.4 setup.sh[4598]: Found newer runtime version for 64-bit libSDL2-2.0.so.0. Host: 0.2400.0 Runtime: 0.2600.5 setup.sh[4598]: Found newer runtime version for 64-bit libvulkan.so.1. Host: 1.3.224 Runtime: 1.3.239 setup.sh[4598]: Forced use of runtime version for 64-bit libcurl-gnutls.so.4 steam.sh[2]: Steam client's requirements are satisfied

    So everything looks good up to this point. The small Steam update windows poppend up several times indicating the running installation/update. The output then continues:

    [2023-08-17 22:47:50] Startup - updater built Jul 28 2023 18:44:09 [2023-08-17 22:47:50] Startup - Steam Client launched with: '/home/dirk/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam' '-no-cef-sandbox' 08/17 22:47:50 Init: Installing breakpad exception handler for appid(steam)/version(1690583737)/tid(5467) [2023-08-17 22:47:50] Loading cached metrics from disk (/home/dirk/.var/app/com.valvesoftware.Steam/.local/share/Steam/package/steam_client_metrics.bin) [2023-08-17 22:47:50] Failed to load cached hosts file (File 'update_hosts_cached.vdf' not found), using defaults [2023-08-17 22:47:50] Using the following download hosts for Public, Realm steamglobal [2023-08-17 22:47:50] 1. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in' [2023-08-17 22:47:50] Verifying installation... [2023-08-17 22:47:50] Verification complete XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf0d328f0 XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf0d311c0 GetWin32Stats: display was not open yet, good GetWin32Stats: display was not open yet, good

    (The last line gets printed twice, yes.)

    The first startup process then hangs there for a few seconds and continues with this.

    steamwebhelper.sh[5473]: Runtime for steamwebhelper: defaulting to /home/dirk/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/steam-runtime-heavy steamwebhelper.sh[5473]: Running under Flatpak, disabling sandbox steamwebhelper.sh[5473]: CEF sandbox already disabled CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize src/steamUI/steamuisharedjscontroller.cpp (540) : Failed creating offscreen shared JS context src/steamUI/steamuisharedjscontroller.cpp (540) : Fatal assert; application exiting 08/17 22:48:39 Init: Installing breakpad exception handler for appid(steam)/version(1690583737)/tid(5467) assert_20230817224839_27.dmp[5771]: Uploading dump (out-of-process) /tmp/dumps/assert_20230817224839_27.dmp dirk ~ $ After the command prompt is shown agein, this gets printed:

    assert_20230817224839_27.dmp[5771]: Finished uploading minidump (out-of-process): success = yes assert_20230817224839_27.dmp[5771]: response: CrashID=bp-f62fb7e8-d024-452e-a937-9c6672230817 assert_20230817224839_27.dmp[5771]: file ''/tmp/dumps/assert_20230817224839_27.dmp'', upload yes: ''CrashID=bp-f62fb7e8-d024-452e-a937-9c6672230817''

    At the given location there is no dump file.

    Do you guys have any Idea why this happens and how I can fix it?

    Involved software:

    ``` $ flatpak --version Flatpak 1.15.4

    $ flatpak remotes Name Optionen flathub system

    $ flatpak info com.valvesoftware.Steam | grep Version | awk '{print $2}' 1.0.0.78

    $ uname -rms Linux 6.4.10-arch1-1 x86_64

    $ openbox --version | head -n1 Openbox 3.6.1

    $ pacman -Qi xorg-server | grep Version | awk '{print $3}' 21.1.8-2 ```

    18

    What are some upsides of software being federated?

    In opposition to this post ... Name your most favorite upsides of software being federated.

    9
    Lemmy Support @lemmy.ml 𝘋𝘪𝘳𝘬 @lemmy.ml

    Every string with more than 1 dot is converted to ellipsis

    Basically the title. When writing .. it is converted to . Also every string being any amount of dots is also being converted to , even when it makes no sense.

    .. -> .. ../relative/path/file.txt -> ../relative/path/file.txt ................................... (used as visual separator) -> ...................................

    Automatically changing ... to the otherwise hard to type ellipsis symbol is a good idea, but everything else should, not be changed.

    0

    blee-bloo blbleebloo

    Are we still doing ancient memes?

    11

    TIL: you can define different users in your global Git config depending on remote URL

    I was in need of using different signing keys (but same mail address) and had a little adventure in the advanced Git documentation I'd like to share. ______________

    In your `~/.config/git/config`` remove the [user] section and add this instead:

    [includeIf "hasconfig:remote.*.url:https://your-remote-url/**"] path = ~/.config/git/user_a

    And in ~/.config/git/user_a use this:

    [user] email = [email protected] name = User Name signingkey = the_16_digit_GPG_key_ID

    Repeat as often as you need. Just add another includeIf section for each of your remote hosts.

    You can also keep a “stub” user section in your ~/.config/git/config if you always use the same user name and mail address but want to use different keys.

    [user] email = [email protected] name = Dirk

    In your includeIf’d files simply set the signingkey:

    [user] signingkey = the_16_digit_GPG_key_ID

    Git automatically combines the two as needed.

    A minimal working example:

    File ~/.config/.git/config: ``` [user] email = [email protected] name = User Name

    [commit] gpgsign = true

    [tag] gpgsign = true

    [includeIf "hasconfig:remote.*.url:https://hostname_A/**"] path = ~/.config/git/config-A

    [includeIf "hasconfig:remote.*.url:https://hostname_B/**"] path = ~/.config/git/config-B ```

    File ~/.config/git/config-A: [user] signingkey = 16_digit_key_id_used_for_a

    File ~/.config/git/config-B: [user] signingkey = 16_digit_key_id_used_for_b

    Now when you push commits or tags to hostname_A or hostname_B the correct key is used to sign those (in the example, using same name and mail address) without having to manually edit this for all your local repositories.

    0