Using xmonad with xfce4

I’ve been using XMonad as my desktop environment for 13 years. It’s effecient and productive, but with a little bit ugly because actually, XMonad is not a desktop environment, it’s just a window manager.

I want to try xmonad work with a desktop environment, and I want to try xfce4 as my desktop environment.

Installation

$ sudo apt install xfce4-panel xfce4-power-manager xfce4-settings xfce4-terminal

Configuration

You have to change your xmonad to spawn xfce4 after login:

myStartupHook = do
    setWMName "LG3D"
    spawnOnce "xcompmgr"
    spawnOnce "xfce4-panel"
    spawnOnce "xfce4-power-manager"
    spawnOnce "xfsettingsd"

Full configuration is on github: https://github.com/jiajunhuang/dotxmonad/blob/master/xmonad.hs

Compile and re-login

$ xmonad --recompile
$ xmonad --restart

Then logout and login again.


更多文章
  • GORM源码阅读与分析
  • 随想
  • Golang中的错误处理
  • Golang 的槽点
  • 一个想当然的bug
  • 读《稀缺》
  • 读《影响力》
  • 读《自控力》
  • Containerd简明教程
  • 软件设计套路之推拉模式
  • 记一次Golang TLS编程踩坑
  • 杂谈
  • 使用autossh实现内网穿透
  • Linux线程内存模型
  • 关闭手机通知,修复碎片化的生活