Giter Site home page Giter Site logo

cfg-stumpwm-with-others's Introduction

cfg

Config scripts and notes in literate style configuration using Org-Babel.

Basic packages

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 basics

stow -t ~/ fish
stow -t ~/ git
stow -t ~/ scripts

Window manager and related tools

Stow config files.

stow -t ~/ stumpwm
stow -t ~/ polybar
stow -t ~/ dunst
stow -t ~/ picom
stow -t ~/ redshift
stow -t ~/ rofi

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;
}

Stumpwm

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).

Grub

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 files and defaults

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

Fonts

Custom iosevka

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

Et book

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

Other fonts to setup

  • 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

Konsole theming

[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

Linux Console

KEYMAP="us"
FONT="ter-v18n"

Language setup

Common Lisp

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

Python 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")

JS

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

R

Setup pkr

wget https://raw.githubusercontent.com/reichlab/pkr/master/pkr
mv pkr ~/bin/
chmod +x ~/bin/pkr

Haskell

:set prompt "\ESC[32mλ> \ESC[m"
:set -XOverloadedStrings
:set +m
:set +t
:set +s

Setup email

Stow offlineimap

stow -t ~/ offlineimap

Copy over the template authinfo.gpg

cp ./misc/.authinfo.gpg ~/

Setup hardware

Bluetooth sinks

Dumping commands. Need to enable bluetooth service and stuff.

pacmd list-sinks | grep -e 'name:' -e 'index:'
pacmd set-default-sink <n>

Tablet

Run configure-tablet.

Touchpad

Two finger for right click.

Section "InputClass"
	Identifier "touchpad overrides"
	Driver "libinput"
	MatchIsTouchpad "on"
	Option "Tapping" "on"
	Option "TappingButtonMap" "lrm"
EndSection

Keyboard

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.

Graphics Card

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

Modules

Some modules that I might need to blacklist:

  • i2c_hid
  • r8169
  • ideapad_laptop

cfg-stumpwm-with-others's People

Contributors

lepisma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.