[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ArchLinuxVn] Cac ban giup fix voi

[ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command -lock")
        , ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s")

Lai re-edit nhu vay roi chay recompile cung that bai:

[[email protected] ~]$ xmonad --recompile
Error detected while loading xmonad configuration file: /home/abbey/.xmonad/xmonad.hs

xmonad.hs:17:1: Not in scope: ‘include’

xmonad.hs:17:22: Not in scope: ‘definition’

xmonad.hs:17:33: Not in scope: ‘from’

xmonad.hs:17:38: Not in scope: ‘above’

Please check the file for errors.

xmonad: xmessage: executeFile: does not exist (No such file or directory)

On Sat, May 21, 2016 at 4:42 PM, Duc Tran <[email protected]> wrote:

On Sat, May 21, 2016 at 3:48 PM, maikhai <[email protected]> wrote:
file xmonad.hs:
[[email protected] ~]$ cat .xmonad/xmonad.hs
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
import System.IO

myManageHook = composeAll
    [ className =? "Gimp"      --> doFloat
    , className =? "Vncviewer" --> doFloat

main = do
    xmproc <- spawnPipe "/path/to/xmobarbinary /home/jgoerzen/.xmobarrc"
    xmonad $ defaultConfig
        { manageHook = manageDocks <+> myManageHook -- make sure to
include myManageHook definition from above
                        <+> manageHook defaultConfig
        , layoutHook = avoidStruts  $  layoutHook defaultConfig
        , logHook = dynamicLogWithPP xmobarPP
                        { ppOutput = hPutStrLn xmproc
                        , ppTitle = xmobarColor "green" "" . shorten 50
        , modMask = mod4Mask     -- Rebind Mod to the Windows key
        } `additionalKeys`
        [ ((mod4Mask .|. shiftMask, xK_z), spawn "xscreensaver-command

Bác ơi, chỗ dòng này bác đưa tham số "-lock" lên cùng dòng với "xscreensaver-command" đi bác

Chúc bác khỏe

Quy tắc ứng xử: http://archlinuxvn.org/vn/rules/
Địa chỉ nhóm thư: https://groups.google.com/group/archlinuxvn
You received this message because you are subscribed to a topic in the Google Groups "ArchLinux Việt Nam" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/archlinuxvn/Su2Kgode2Iw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/archlinuxvn/CAOQTeiJizfTvAg0EGyGkMadjO65pbkvU1DMJaAFaH0%3D0OG-HqQ%40mail.gmail.com.

m k h _ s g n