# rice **Repository Path**: vrboxing/rice ## Basic Information - **Project Name**: rice - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-26 - **Last Updated**: 2021-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # My ricing (dot files and dwm) ![my screenshot](./screenshot.png) dwm is an extremely fast, small, and dynamic window manager for X. And this is my configuration of it. ## Features of my build * Support for brightness and volume keys * Support for AZERTY keyboards (for the tags) * Uses SUPER key (A.K.A ~~Windows~~ key) instead of ALT key * Uses only 3 tags, who needs more? * Doesn't have the weird "Firefox in X tag" thingys * Decent status bar (no emoji for now, but that will come) * Other fonts * Gaps and shortcuts for controlling them (vanitygaps patch) * Nice wallpaper and transparent terminal * Nice colorscheme for terminal * Underscore as text cursor instead of the ugly box * Custom firefox theme * Custom firefox startpage * BetterDiscord and DarkNeon theme ## Requirements This is the list of used software for this project (on Debian, but should be pretty similar on Arch) I had to re-compile libxft with the bgra patch myself to make colored emojis work properly (on Debian, if you use Arch, just install libxft-bgra) 1. Install the tools to build dwm (gcc and build-essential in this case) ```bash sudo apt install make gcc build-essential ``` 2. Install Xlib headers required by dwm ```bash sudo apt install xorg libxinerama-dev libx11-dev libxft-dev ``` 3. Install dependencies for audio, brightness + dmenu ```bash sudo apt install suckless-tools brightnessctl pulseaudio ``` 4. For more graphic and aestetic changes, install feh for wallpaper support and enable transparency for windows with picom (or compton) ```bash sudo apt install feh picom ``` 5. Install a terminal (alacritty) (actually installing cargo, dependencies and then building it with cargo) ```bash sudo apt install cargo libxkbcommon-dev cargo install alacritty ``` 6. (optional) Show off on r/unixporn. `cava` for audio visualizer, `tty-clock` for the nice clock, `neofetch` for the informations and `scrot` for screenshooting ```bash sudo apt install cava tty-clock neofetch scrot ``` 7. Install libxft-bgra (here are the instructions on debian): ```bash # Install dependencies sudo apt install libfreetype-dev fontconfig libxext-dev libxrender-dev xutils-dev dh-autoreconf git make # Download and patch repository git clone https://gitlab.freedesktop.org/xorg/lib/libxft.git wget https://gitlab.freedesktop.org/xorg/lib/libxft/merge_requests/1.patch cd libxft/ patch -p1 < ../1.patch # Compile and install sh autogen.sh --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man make sudo make install # Replace old libxft by the new patched version mv /usr/lib/libXft* /usr/lib/x86_64* ``` ## Installation > **WARNING**, you WILL have to modify the commands in .xinitrc file. Some of those depennds on your hardware. Also note you can replace "cp" commands by "ln -s" commands to kepp all the files in one place. ### dwm and alacritty rice 1. Download the repository and compile dwm ```bash git clone https://codeberg.org/SnowCode/rice cd dwm sudo make clean install ``` 2. Add the xinit script, you need to change this file to fit your computer and your preferences ```bash cp .xinitrc ~/.xinitrc ``` 3. Add the bashrc script, the alias probably won't fit your needs ```bash cp .bashrc ~/.bashrc source ~/.bashrc ``` 4. Add all the fonts to your font directory ```bash mkdir ~/.fonts cp .fonts/* ~/.fonts ``` 5. Enable the alacritty config, another possible location is ~/.config/alacritty/alacritty.yml ``` cp .alacritty.yml ~/.alacritty.yml ``` 6. Add the binaries to /usr/bin, make sure to check for conflicts in filenames! ```bash sudo cp -iv bin/* /usr/bin ``` 7. Exit and login by starting your .xinitrc script ```bash pkill xorg sleep startx ``` ### Firefox rice 1. Go into `about:config` in firefox and set the following variable to `true` ```bash toolkit.legacyUserProfileCustomizations.stylesheets ``` 2. Add the userChrome.css file into the right directory (you can find the path to that directory in `about:support`) ```bash mkdir /path/to/firefox/directory/chrome/ ln -s firefox/userChrome.css ~/.mozilla/path/to/firefox/directory/chrome/ ``` 3. Host the file `startpage.html` and `tailwind.css` into a webserver. `TODO tutorial here` 4. Add the [NewTab Override](https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/) addon, then link the startpage URL into the addon. Make sure to select `Set focus to the web page instead of the address bar`. 5. Restart Firefox and right click on the tool bar and click on `Customize toolbar`. There, simply remove all the useless stuff you want. (Or add things). ### Discord rice 1. Installing `betterdiscordctl` ```bash curl -O https://raw.githubusercontent.com/bb010g/betterdiscordctl/master/betterdiscordctl chmod +x betterdiscordctl sudo mv betterdiscordctl /usr/bin/ ``` 2. Installing BetterDiscord (Make sure Discord is already installed!) ```bash betterdiscordctl install ``` 3. Install DarkNeon theme ```bash cd ~/.config/BetterDiscord/themes/ wget https://raw.githubusercontent.com/CommandCrafterHD/DiscordDarkNeon/master/css/DarkNeon.theme.css ``` 4. Restart Discord ```bash pkill Discord discord ``` 5. You may have to go into the settings, then in "Themes" to enable the theme. Then you can restart Discord again to load the theme.