In this repository there are all my suckless installations with relative configurations.
$ sudo apt install libxft-dev libxinerama1 libxinerama-devThis configuration of dwm, that you can find in config.h, uses a bunch of
software in its keybindings and without these you will face some difficulties
using dwm. So make sure to install these software, at least the terminal,
before using it.
- st: simple terminal, is the terminal used in this configuration, opened
by pressing
super+returnorsuper+backpspace. To install it check the README file inside thestdirectory. You might need to install the font used, more info below. - dmenu: it is a handy menu that can be used in multiple ways, in our
configuration we use it to help the user search for given commands, to use it
you have to press
super+p. To install it check the README file inside thedmenudirectory. - slock: it is used to lock the screen, to use it press
super+shift+q. To install it check the README file inside theslockdirectory. Make sure that the user name is written correctly in the configuration file otherwise it will not work. - dunst: is a notification deamon, that is not used directly by
dwm, but it is set in the configuration settings.xinitrc.sample. To install it, runsudo apt install dunst - xwallpaper: this deamon enables to use an image as a wallpaper. To install
it, run
sudo apt install xwallpaper
Each package have a README file with some information on the installation.
Before installing it, make sure to have compiled it, execute:
sudo make clean install.
For dwm you can choose different paths:
Copy the ./custom/.xinitrc.sample file in the home directory and rename it in .xinitrc
$ cp custom/.xinitrc.sample ~/.xinitrcThen you have to restart your machine.
Xsessions enables you to choose witch ever window manager you want to use, in the login screen. You can run ./custom/install_session, with sudo authorizations, to automatically install the window manager, or you can do the spets needed by yourself:
- add the
statusbarscript, this will populate the status bar with the date, internet connection and other things.
$ cp custom/statusbar /usr/local/bin/
we put the script in the bin directory because it is present in the PATH, so we can use the statusbar script in our dwm.desktop file (described at the end).
If you want to add or modify the status bar you can edit the statusbar script.
- now we need to add the script that actually execute dwm in
/usr/local/bin/directory, doing so we can execute the script wherever we are (becasue the bin directory is in PATH). Copy ./custom/.xinitrc.sample file in/usr/local/bin/and rename it instartdwm
$ cp custom/.xinitrc.sample /usr/local/bin/startdwm- the last step consist in adding the dwm session to the windows manager selection (in order to select it in the login screen), copy ./custom/dwm.desktop file to
/usr/share/xsessions/
$ cp custom/dwm.desktop /usr/share/xsessions/I personally did the second option because with ubuntu (and two accounts) the first method didn't work.
(in the install_session script it will be installed the default wallpaper, to change it you have to change the ~/.config/wallpaper.png file)
If you want to use a wallpaper you have to install xwallpaper and designate a location to store the image you want to use a wallpaper, this location will be used by xwallpaper to render the image.
In order to make the wallpaper persistent after each login we put the xwallpaper command in the .xinitrc or startdwm file, and the path of the image is ~/.config/wallpaper.png
To configure a suckless package you need to edit the config.h file and then compile it (sudo make clean install)
- cursor blinking: No
- cursors shape: block
- font: Monospace
- font-size: 16
With st we are using the Liberation Mono font.
You can search for it in your system by running
fc-list | grep "Liberation Mono"If it does not return anything, you have to install it. To do you you can run
sudo pacman -S ttf-liberationbackground = "#231f20",
foreground = "#d9d8d8",
background = "#e49b1b",
foreground = "#231f20",
black = "#231f20",
red = "#ee2e24",
green = "#00853e",
yellow = "#ffd204",
blue = "#009ddc",
magenta = "#98005d",
cyan = "#85cebc",
white = "#d9d8d8",
black = "#737171",
red = "#ee2e24",
green = "#00853e",
yellow = "#ffd204",
blue = "#009ddc",
magenta = "#98005d",
cyan = "#85cebc",
white = "#ffffff",