Config scripts and notes in literate style configuration using Org-Babel.
My current OS is manjaro. Need to setup yay first.
uname -a
yay -S $(grep -vE "^\s*#" ./packages/arch | tr "\n" " ")
Set fish
as default shell
chsh -s $(which fish)
stow -t ~/ fish
stow -t ~/ git
stow -t ~/ scripts
Stow config files.
stow -t ~/ stumpwm
stow -t ~/ polybar
stow -t ~/ dunst
stow -t ~/ picom
stow -t ~/ redshift
stow -t ~/ rofi
Use theme set up from here and the following colors.
/* colors */ * { al: #00000000; bg: #2E3440ff; se: #374C6Bff; fg: #D8DEE9cc; ac: #81A1C1ff; red: #434C5Eff; green: #475C6Bff; yellow: #8a9899ff; blue: #42A5F5ff; purple: #B48EADff; cyan: #4DD0E1ff; }
Need two sbcl setups. The one from main repo is going to run stumpwm with swank. The following snip setups that. Needs quicklisp:
sbcl --eval "(ql:quickload '(clx-truetype swank stumpwm cl-strings inferior-shell))" --quit
mkdir -p ~/stumpwm
Clone the repo and use make from there on
git clone https://github.com/stumpwm/stumpwm
# Should checkout to some version
git clone https://github.com/stumpwm/stumpwm-contrib ./contrib
Here goes the xinitrc
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec stumpwm
xset r rate 660 25
chmod +x ~/.xinitrc
I might also need to disable the default display manager. See this.
There might be a font loading issue which is fixed by (xft:cache-fonts)
.
Currently using the Atomic theme.
git clone https://github.com/lfelipe1501/Atomic-GRUB2-Theme.git
cp -r Atomic-GRUB2-Theme/Atomic /usr/share/grub/themes
Change grub theme line in /etc/default/grub
update-grub
Desktop file for www
.
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/home/lepisma/bin/www
Name=www
Comment=Browser dispatch
[Desktop Entry]
Type=Application
Name=Compose Mail
Exec=/home/lepisma/bin/compose-mail %u
StartupNotify=false
MimeType=x-scheme-handler/mailto
Setup default programs:
xdg-mime default org.kde.dolphin.desktop inode/directory
xdg-mime default feh.desktop image/jpeg
xdg-mime default feh.desktop image/png
xdg-mime default www.desktop x-scheme-handler/http
xdg-mime default www.desktop x-scheme-handler/https
xdg-mime default compose-mail.desktop x-scheme-handler/mailto
xdg-mime default org.kde.okular.desktop application/pdf
handlr set .doc libreoffice-writer.desktop
handlr set .docx libreoffice-writer.desktop
git clone [email protected]/lepisma/iosevka-lepisma /tmp/iosevka-lepisma
mkdir /usr/share/fonts/iosevka/
mv /tmp/iosevka-lepisma/ttf/patched/*ttf /usr/share/fonts/iosevka/
Override medium fonts
yes | cp iosevka/iosevka-lepisma-regular.ttf iosevka/iosevka-lepisma-medium.ttf
yes | cp iosevka/iosevka-lepisma-italic.ttf iosevka/iosevka-lepisma-mediumitalic.ttf
yes | cp iosevka/iosevka-lepisma-oblique.ttf iosevka/iosevka-lepisma-mediumoblique.ttf
fc-cache -f
git clone [email protected]:edwardtufte/et-book /tmp/et-book
mkdir /usr/share/fonts/et-book/
mv /tmp/et-book/et-book/*/*.ttf /usr/share/fonts/et-book/
fc-cache -f
- All the icons
Better install this using the Emacs package:
(require 'all-the-icons) (all-the-icons-install-fonts)
- SauceCodePro Nerd font
- Fira Code / Fira Sans. Also install Fira code symbol which is used for ligatures in Emacs.
- Source Code / Source Sans
[Appearance]
AntiAliasFonts=true
BoldIntense=true
ColorScheme=Nordic
Font=Iosevka,12,-1,5,50,0,0,0,0,0
LineSpacing=4
UseFontLineChararacters=false
[Cursor Options]
CursorShape=1
[General]
Command=/usr/bin/fish
DimWhenInactive=false
Directory=/home/lepisma/Desktop
LocalTabTitleFormat=%d | %n
Name=lepisma
Parent=FALLBACK/
RemoteTabTitleFormat=%d | %n
TerminalCenter=false
TerminalMargin=10
[Interaction Options]
AutoCopySelectedText=true
[Scrolling]
HistoryMode=2
ScrollBarPosition=2
[Terminal Features]
BlinkingCursorEnabled=true
UrlHintsModifiers=67108864
cp ./konsole/Nordic.colorscheme ~/.local/share/konsole/Nordic.colorscheme
KEYMAP="us"
FONT="ter-v18n"
Setup roswell, quicklisp and other tools.
ros install lake
Symlink pod
to roswell local projects.
ln -s ./pod ~/.roswell/local-projects
Setup pod scripts.
lake setup
Setup miniconda. Install basic packages
pip install -r ./packages/pip
Setup jupyter notebook theme.
jt -t grade3 -f iosevka -nf iosevka -tf iosevka -tfs 12 -cellw 1200
Some package config
stow -t ~/ bbq
stow -t ~/ beets
IPython init
get_ipython().magic("%load_ext autoreload")
get_ipython().magic("%autoreload 2")
Get nvm and use brigand/fast-nvm-fish. Install some command line tools.
cat ./packages/node | while read -l line
npm i -g $line
end
Setup pkr
wget https://raw.githubusercontent.com/reichlab/pkr/master/pkr
mv pkr ~/bin/
chmod +x ~/bin/pkr
:set prompt "\ESC[32mλ> \ESC[m"
:set -XOverloadedStrings
:set +m
:set +t
:set +s
Stow offlineimap
stow -t ~/ offlineimap
Copy over the template authinfo.gpg
cp ./misc/.authinfo.gpg ~/
Dumping commands. Need to enable bluetooth service and stuff.
pacmd list-sinks | grep -e 'name:' -e 'index:'
pacmd set-default-sink <n>
Run configure-tablet
.
Two finger for right click.
Section "InputClass"
Identifier "touchpad overrides"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
Option "TappingButtonMap" "lrm"
EndSection
Swap keys on laptop’s board.
clear lock
clear control
keycode 66 = Control_L
add control = Control_L Control_R
Set up kmonad service for macropad.
This guide helps me setting up 1060. Although the battery drain goes up a bit, it’s not really bad.
Relevant portion for xinitrc
:
# Goes above exec stump..
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
Some modules that I might need to blacklist:
i2c_hid
r8169
ideapad_laptop