小编yas*_*sar的帖子

你如何在 Xmonad 中使音量键和静音键工作

我是 Xmonad 的新手(昨天刚安装),因为我以前从未使用过 haskell,所以我发现配置对我来说有点混乱。我得到了一些 xmobar 和托盘的工作,但我不知道如何让多媒体键来调节音量。任何人都可以帮忙吗?

附加问题:您如何在 xmonad 中管理您的卷。你使用托盘图标或其他类似的东西吗?

这是我的 xmonad 配置:

import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.EZConfig(additionalKeys)
import System.IO

main = xmonad =<< statusBar myBar myPP toggleStrutKey myConfig

-- Command to launch the bar
myBar = "xmobar"

-- Custom PP, it determines what is written to the bar
myPP = xmobarPP { ppCurrent = xmobarColor "#429942" "" . wrap "<" ">" }

-- Key bindings to toggle the gap for the bar
toggleStrutKey XConfig {XMonad.modMask = modMask} …
Run Code Online (Sandbox Code Playgroud)

audio xmonad

29
推荐指数
3
解决办法
2万
查看次数

为什么块数乘以块大小与文件大小不匹配?

以下是我stat在 Linux 中对文件发出命令时得到的结果:

yasar@yasar-laptop ~/myscripts/sysprog $ LC_ALL=C stat error.c
  File: 'error.c'
  Size: 184         Blocks: 8          IO Block: 4096   regular file
Device: 804h/2052d  Inode: 103650221   Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   yasar)   Gid: (  100/   users)
Access: 2012-04-23 17:10:28.117455882 +0300
Modify: 2012-04-21 22:18:59.967686183 +0300
Change: 2012-04-21 22:19:00.001019336 +0300
 Birth: -
Run Code Online (Sandbox Code Playgroud)

正如你所看到的,文件系统的块大小是 4kb,文件分配了 8 个块,但它的大小只有 184 字节。为什么一个文件需要 8 个块,而只有 1 个块就足够了?

linux filesystems

5
推荐指数
1
解决办法
2659
查看次数

标签 统计

audio ×1

filesystems ×1

linux ×1

xmonad ×1