From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iKnCGjPs9mDcgwEAgWs5BA (envelope-from ) for ; Tue, 20 Jul 2021 17:30:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AFiRFjPs9mBOQQAAB5/wlQ (envelope-from ) for ; Tue, 20 Jul 2021 15:30:59 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BDF18A245 for ; Tue, 20 Jul 2021 17:30:58 +0200 (CEST) Received: from localhost ([::1]:37924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5rhx-0003Ec-RU for larch@yhetil.org; Tue, 20 Jul 2021 11:30:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5rhT-0003EP-8t for help-guix@gnu.org; Tue, 20 Jul 2021 11:30:27 -0400 Received: from knopi.disroot.org ([178.21.23.139]:38472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5rhQ-00058d-Tz for help-guix@gnu.org; Tue, 20 Jul 2021 11:30:26 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 54EFB86338; Tue, 20 Jul 2021 17:30:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WwlvjtoZDO5e; Tue, 20 Jul 2021 17:30:19 +0200 (CEST) References: <87tukrd6qt.fsf@gmail.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1626795019; bh=rGTQNONFhRNUfroFJD3emM9GHjBKFIl6++Vw2O7HHfQ=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=IMnx8dvzjb+Zt51VD6vI33YVdL6lV9NG66NZz88uic4avInS1re0QPsBYxi4F524c ZAq9urH+Fu/NynBvVPgRUG/AzMfCdAkyERO9n7scavjP1BX5VFvYUMbH0bUQQD9wC8 dYxn/kWCLQITgisE0ym9ga7KRnRwXv/JGbdTFW8NxKGioHzPfhr5ihNBd/TTh8LtC/ Brh3Vk8Mu7fXO3pyPMvEO9eYSBjwdz9+2ND7hsbo18fhHjxdkj/j9Ih2pS9kdlcXCc mwSZxFw3FUquR24NPZB+MAr+It1bE8zmF3ilT1ND9G1d99/+iS2JJ6m1fg2qTqtcyA f0Y7ICI+dYg/g== From: Gary Johnson To: Akib Azmain Turja Cc: help-guix@gnu.org Subject: Re: xmodmap doesn't before pressing any button keyboard In-reply-to: <87tukrd6qt.fsf@gmail.com> Date: Tue, 20 Jul 2021 11:30:03 -0400 Message-ID: <87fsw9gg04.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626795058; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Yjk9rokBW6Tw+dcpoMcu7EvGpt6JQXjHKzVSX60LnGU=; b=ZCbLxXw4sWsCYuYDhq+NwvcFqj8GqM/x4N2Ox/ZcxAGMrZ1i/QK+R7BZUsXMHim4sMeyzC XndfVCf14wjsPTsrLrEVxsrHmNi0+9++yRazKQDnlAW8s2T/FKnJlxUdWB0ro/Ga924ew6 LzgH/DleQlIZpIftjRC8fHeI5OEJkv2SHUn3V2n+ahcpNfDOdMQZuqnMzee0E7wsbDscXU jEdoBxdt6+7FpfbgCcgrIQ5rcaAg1XJJDVeJFazRbxdRJOcQGAfYU4b1TSZUeZFPuhWVcv RFWqoDptzhm2cUBOVtXSG5xCXcD1iFCM5VAXEe5wmB2lQmGblFxrrlFIsjj/vA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626795058; a=rsa-sha256; cv=none; b=GAMyE7c4TVE6aPUfnpTbPQj2HbOcDfIPfHZjUnTZxRJW0kZz71B30Rd1urW/93yGbopn0O 08U6JzXmZTKn6kien/exucgIBF9NTiuaH55OeHkZMXnn+6uCujQb/5QZSsSW23ZpIzzG6F fwbAOQxOPAZALSHyxDMY4MVV7l961PWqskvekLCoQUTGsQdCbar+t+refIz8TaCnjip4fl SU/5uDEeMkA/I9CsDjoVCQmKqLBQ01QFyiyFyX0Di67coACbwjivjpESIMQ9QTkKmMh7Go i2Qy0T0azxIXr+vRKUyHJg7TSLV1cUb4bAuwXXLnuswTJ+QEFPMHkaW8k3kjuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=IMnx8dvz; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=IMnx8dvz; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: BDF18A245 X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9IkrsKM1on+H Akib Azmain Turja writes: > I have setup my Emacs iwth EXWM. I am trying to remap several keys to > avoid repetitive strain injury (RSI), also known as Emacs pinky. To > accomplish that, I am using xmodmap. It works perfectly when I invoke > the command directly. However it doesn't work when I put it in Emacs > startup files. After several days of research, I discovered that > xmodmap only works when I have pressed atleast one key in my keyboard. > Any solutions? Hi Akib, I also use Emacs with EXWM. To prevent Emacs pinky, I add the following lines to my $HOME/.xsession file: ======================================= # Set keyboard repeat rate xset r rate 200 60 # Change Caps Lock to Ctrl setxkbmap -option "ctrl:nocaps" setxkbmap -option "terminate:ctrl_alt_bksp" ======================================= Remember to put `exwm` at the end of your $HOME/.xsession file to launch your window manager when X starts up. Happy hacking, Gary -- GPG Key ID: 7BC158ED Use `gpg --search-keys lambdatronic' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html