debian; ubuntu; kali / linux桌面 / 未分类 · 2015年8月23日

xmonad 安装及入门配置

一直想找个好用的平铺式的桌面 ,今天终于找到了,用了一个多小时安装,配置和学习,总算可以用在办公了
my repository
http://xmonad.org/intro.html
第一 下载
git clone https://github.com/davidbrewer/xmonad-ubuntu-conf.git

或者点击下面URL下载后解压
xmonad
第二 安装
mv xmonad-ubuntu-conf/ .xmonad
echo "Installing required packages..."
sudo apt-get install xmonad trayer libghc-xmonad-dev libghc-xmonad-contrib-dev xmobar xcompmgr nitrogen stalonetray moreutils kupfer #synapse ssh-askpass-gnome thunar terminator remmina

echo “Creating xmonad xsession configuration…”
#sudo mv /usr/share/xsessions/xmonad.desktop /usr/share/xsessions/xmonad.desktop.original
#sudo cp ~/.xmonad/xmonad.desktop /usr/share/xsessions
#sudo cp ~/.xmonad/images/custom_xmonad_badge.png /usr/share/unity-greeter
echo “Linking to customized gnome 2 configuration…”
#mv ~/.gtkrc-2.0 ~/gtkrc-2.0.original
#ln -s .xmonad/.gtkrc-2.0 ~/.gtkrc-2.0
apt install trayer
# apt install trayer Set up an icon tray add to startup-hook
trayer --edge top --align right --SetDockType true --SetPartialStrut true \
--expand true --width 5 --transparent true --tint 0x191970 --height 26 &

open startup-hook add
# Use synapse as our app launcher. (-s: don't display until requested)
if [ -z "$(pgrep kupfer)" ] ; then
kupfer &
fi

Installing_xmonad on Debian
对了,这是一个几乎没有panel的桌面,所以快捷键就非常多了,下面是我常用的
xfce-terminal tab 之间是 alt+1 or 2 etc no.
mod-enter #突出当前窗口,并提升到左边主screen
mod-shift-NUMBER: move a window to a workspace using its number
#去到另一个当前窗口
mod-j
mod-h mod-l
mod-z mod-a
mod-shift-c #closing
mod-shift-q: quits xmonad, returning to the login screen
apt-get install dmenu
http://stackoverflow.com/questions/11718196/how-to-start-using-xmonad-on-ubuntu-12-04-lts
using the “super” key as the mod key, which on many keyboards is the windows logo key
#去到另一个当前窗口
mod-j or mod-shift-tab moves your focus to the previous window
#变小
mod-l and mod-h will grow or shrink the size of the master pane.
mod-a and mod-z will grow or shrink the size of the currently focused window.
参考
xmonad a guided tour
http://xmonad.org/tour.html
https://wiki.haskell.org/Xmonad/Config_archive/John_Goerzen’s_Configuration#Configuring_xmonad_to_use_xmobar
Using xmonad in Ubuntu
https://wiki.haskell.org/Xmonad/Using_xmonad_in_Ubuntu
https://wiki.archlinux.org/index.php/Xmonad_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
我的 xmonad 配置
https://zlb.me/2011/07/15/my-xmonad-config/
XMonad Starter Kit 平铺窗口管理器配置分享
https://ruby-china.org/topics/2357
http://lastavenger.github.io/2015/07/20/configure-of-archlinux.html
http://lastavenger.github.io/2016/03/11/thinkpad-l450.html
http://blog.csdn.net/ooaven/article/details/9002302
https://maskray.me/blog/2011-11-30-xmonad-config