Skip to content

Instantly share code, notes, and snippets.

@aeghn
aeghn / improve_fonts.md
Created November 22, 2020 10:53 — forked from j1cs/improve_fonts.md
Improve fonts archlinux

Improve Fonts

Newest

Make your Arch fonts beautiful easily! This is what I do when I install Arch Linux to improve the fonts.

You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts

@aeghn
aeghn / aemacs
Last active August 16, 2020 11:15
#!/bin/bash
DEFAULT_SOCKET=default
CHINBOX_SOCKET=chinbox
#export LIBRARY_PATH="$HOME/.local/include/"
_emacs="$HOME/.local/bin/emacs"
_emacsclient="$HOME/.local/bin/emacsclient"
#_emacs="/usr/local/bin/emacs"
#_emacsclient="/usr/local/bin/emacsclient"
#!/bin/bash
# Author: Aeghn
# Jump between Emacs and i3wm
WM_CLASS_STRING=$(xprop -id $(xdotool getwindowfocus) WM_CLASS)
WM_CLASS_STRING=${WM_CLASS_STRING##* }
emacsclient=~/.local/bin/emacsclient
@aeghn
aeghn / rofipass
Last active November 2, 2022 15:53
rofipass
#!/usr/bin/env bash
shopt -s nullglob globstar
set -o pipefail
export PASSWORD_STORE_DIR="path/to/password-store"
export EDITOR='vim'
PREV_FILE="$HOME/.cache/rofi-pass-cahce"
#!/usr/bin/env bash
# Author: Aeghn
# A script for buffer switching between emacs buffers, firefox tabs and other windows.
# dependences: jq i3 qutebrowser emacs
# set -eo pipefail
# QUTEBROWSER_SESSION_FILE="/tmp/qutebrowser_buffers_zsbd"
#!/usr/bin/env python3
import i3ipc
import os
i3 = i3ipc.Connection()
focused = i3.get_tree().find_focused()
window_title = focused.window_title
window_class = focused.window_class
@aeghn
aeghn / i3title.sh
Created April 7, 2020 04:08
Workaround for showing window title in i3 bar
#!/bin/bash
get_temp_ws_name() {
i3-msg -t get_workspaces | jshon -a -e name -u | grep -Ev "^[[:digit:]]+$"
}
old_title=$(get_temp_ws_name)
if [ $? -ne 0 ]; then
i3-msg "workspace temp"
#!/bin/bash
DIR="$HOME/repos/memacs"
export SHELL=$(which bash)
start(){
local name="$1"
cd $DIR
echo -e "> booting $name Emacs"
HOME="$DIR/$name" emacs