问题标签 [xmonad]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
linux - 将键盘快捷键(复制、粘贴等)重新映射到 Alt 键而不是 Ctrl
有趣的是,事实证明这几乎是不可能的。将键重新映射ALT为另一个CTRL键不是解决方案,因为您失去了ALT键功能(其中一些是必不可少的,例如AltTab)。
那么如何获得类似于 OSX 的行为,其中CMD键用于键盘快捷键(但也用于在窗口之间切换CMDTAB)?
我知道在将键重新映射为键CTRLTab后,我可以分配在窗口之间切换。但后来我失去了某些应用程序中的真正功能,这些功能也很重要,比如在选项卡之间切换。基本上 my和keys 将成为同一个键,并且这两个修饰键不可能有两组不同的快捷键。ALTCTRLCTRLTABCTRLALT
对我来说一个好的解决方案可能是在窗口管理级别捕获ALTC, ALTV,ALTX等并将 a CTRLCor CTRLVor CTRLXetc. 发送到焦点窗口。在 Windows 上,这可以通过 AutoHotKey 实现。
在 Linux 上,我听说过一个名为 AutoKey 的应用程序,但与 AutoHotKey 不同的是,您必须使用 GUI 来设置快捷方式。由于我将手动编写几乎所有 Alt 组合,因此我不希望 GUI 应用程序这样做。我应该能够通过编写文本文件来配置它。
是否可以使用 Gnome 或 Xmonad 实现这一目标?
linux - 如何更改窗口 xmonad reparents?
我有一个下面列出的小应用程序,它只是在其中创建了一个 x 窗口和一个小窗口。我稍后计划制作一个实验性 IDE,其中所有的工具栏和菜单都是子窗口,并且可以选择想要管理它们的任何窗口管理器。
我想做的是启动一个 xmonad 实例,并使它不是从根窗口重新设置和控制窗口,而是在我的应用程序窗口内重新设置和控制窗口。
这可能吗?
PS这是应用程序。
haskell - XMonad 重启时的确认
我是 Haskell 初学者,我正在使用 xmonad。我试图让它在退出前提示我,因为我偶尔会意外点击 mod+q。我找到了两种方法,但我一定做错了,因为它们都不适合我: https ://bbs.archlinux.org/viewtopic.php? id=120298 http://comments.gmane。 org/gmane.comp.lang.haskell.xmonad/11699
这是我的 xmonad.hs:
谢谢!
编辑:显示菜单,但生成过程似乎不起作用。
window - XMonad - 如何让一个窗口出现在多个物理屏幕上?
正如标题所说,我需要在两个或多个屏幕上显示一个窗口。
我试过了XMonad.Actions.CopyWindow
。但似乎虽然窗口被复制到正确的工作区,但它只显示在一个物理屏幕上。
haskell - 如何从 xmonad 默认配置中删除“完整”布局中的边框?
目前我使用
但这使得noBorder
所有布局,而不仅仅是“ Full
”。
我知道,我可以简单地layoutHook
从默认配置中复制定义并noBorder
在“ Full
”之前添加,但我想要漂亮的方式,希望 Haskell 为它提供一些方法。
linux - XMonad:按下生成键时具有焦点的 SpawnOn 工作区
我想让我的程序在按下键绑定时焦点所在的屏幕上生成,而不是在完成加载时当前焦点所在的屏幕上。
原因: 我当前的设置是 Arch Linux + XMonad,我让它在 6 台显示器上运行。我已经使用 XMonad 大约一年了,我唯一的问题是打开需要一点时间的程序。例如,我第一次启动 chromium 时需要 3 秒才能加载。我按下我的 chrome 键绑定,然后转到另一个屏幕做其他事情。但是,当 chrome 加载时,它会加载到我当前关注的屏幕上,而不是在按下 spawn 键绑定时关注的屏幕上。
我的haskell技能很好……不存在。我以前用 Lisp 编程过,并且在 C、python 和 JavaScript 上花了很多时间,所以我确信如果需要我可以把它捡起来(所以当涉及到答案中的 haskell 示例时,请清楚)。
提前致谢。
haskell - XMonad 在指定工作区启动时生成程序
我正在尝试配置我的xmonad.hs
,以便当我开始我的会话时,我在不同的工作区(如终端 1 中的终端;2 中的 Firefox;3 中的 Pidgin)上启动一系列不同的程序。
我已经查看了XMonad.Actions.SpawnOn
,但作为spawnOn
返回X ()
而不是普通的m ()
我不能使用它main = do ...
。
是否有一个接受X
-monad 并返回的函数,IO ()
或者是否有另一种解决方法?
haskell - can xmonad's logHook be run at set intervals rather than in (merely) response to layout events?
I'm using dynamicLogWithPP
from XMonad.Hooks.DynamicLog
together with dzen2 as a status bar under xmonad. One of the things I'd like to have displayed in the bar is the time remaining in the currently playing track in audacious (if any). Getting this information is easy:
So I can stick that in ppExtras
and it works fine—except it only gets run when the logHook
gets run, and that happens only when a suitable event comes down the pike. So the display is potentially static for a long time, until I (e.g.) switch workspaces.
It seems like some people just run two dzen bars, with one getting output piped in from a shell script. Is that the only way to have regular updates? Or can this be done from within xmonad (without getting too crazy/hacky)?
ETA: I tried this, which seems as if it should work better than it does:
- create a TChan for updates from XMonad, and another for updates from a function polling Audacious;
- set the
ppOutput
field in thePP
structure fromDynamicLog
to write to the first TChan; - fork the audacious-polling function and have it write to the second TChan;
- fork a function to read from both TChans (checking that they aren't empty, first), and combining the output.
Updates from XMonad are read from the channel and processed in a timely fashion, but updates from Audacious are hardly registered at all—every five or so seconds at best. It seems as if some approach along these lines ought to work, though.
eclipse - 在 Xmonad 中浮动和调整 libGDX/lwjgl 应用程序的大小
我最近改用 Xmonad 作为我的窗口管理器。
当我使用 Eclipse 运行我的 libGDX/lwjgl 应用程序时,它会由 Xmonad 自动平铺。这会在定位方面产生一些问题。
我试着跑步
并单击应用程序。它没有显示任何名称。
如果有任何方法可以检测到这些 lwjgl 应用程序并将它们浮动,请告诉我。
谢谢你。
编辑:我发现,
会浮动窗口,但它仍然没有适当的大小(800x480),任何调整应用程序大小的提示将不胜感激。
ubuntu - 如何在 xmonad + Ubuntu 上更改键盘布局
我想在不使用 setxkbmap 的情况下配置系统。哪些配置文件负责设置 xkb?我试图更改文件的内容:/etc/keyboard,但什么也没发生。