Skip to content

Instantly share code, notes, and snippets.

@xvzftube
Last active December 25, 2020 06:17
Show Gist options
  • Save xvzftube/0b5d4fcdef77d557e4a99d3651f3a89e to your computer and use it in GitHub Desktop.
Save xvzftube/0b5d4fcdef77d557e4a99d3651f3a89e to your computer and use it in GitHub Desktop.
xmonad setup
# in debian session use the following commands then logout
sudo apt install xmonad libghc-xmonad-contrib-dev xterm dmenu
# get an xmonad.hs file
cd ~/.xmonad/ && wget http://code.haskell.org/xmonad/man/xmonad.hs && cd
cd /usr/share/fonts && sudo https://github.com/adobe-fonts/source-code-pro.git && cd && sudo fc-cache -fv
# install st and set font. If something goes wrong delete config.h and try again manually.
git clone https://git.suckless.org/st
cd st
sed -i '7 a static char *font = "Source Code Pro:pixelsize=18:antialias=true:autohint=true";' config.def.h
sed -i '9d' config.def.h
sudo make install
cd
# make st the default terminal for xmonad
sed -i '19 a myTerminal = "sh -c st"' ~/.xmonad/xmonad.hs
sed -i '21d' ~/.xmonad/xmonad.hs
# type ctrl-q for xmonad to use new terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment