Skip to content

Instantly share code, notes, and snippets.

View mistivia's full-sized avatar

小葉薜荔 mistivia

View GitHub Profile
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@mistivia
mistivia / .emacs
Last active December 1, 2024 15:42
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-enabled-themes '(tango-dark))
'(font-use-system-font t)
'(global-display-line-numbers-mode t)
'(menu-bar-mode nil)
'(package-selected-packages
fontname "sans-serif:pixelsize=18:bold"
sticky yes
gap 50 10 10 10
unbind-key all
unbind-mouse all
bind-key CMS-q quit
bind-key CMS-r restart
export PATH=~/.local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export EDITOR='vim'
export PS1='\n[\u@\h] \w\n$ '
export QT_FONT_DPI=128
xrandr --output eDP --set TearFree on
picom --no-fading-openclose -D0 &
feh --bg-fill ~/Pictures/wallpaper.jpg &
flameshot &
fcitx5 &
# Enable touchpad tapping
enable-touchpad-tap
local wezterm = require 'wezterm'
local config = {}
config.font = wezterm.font_with_fallback {
'JetBrains Mono',
'Source Han Sans CN Normal',
}
config.font_size = 14
config.color_scheme = 'Grayscale (light) (terminal.sexy)'
config.enable_tab_bar = false
[user]
name = Mistivia
email = [email protected]
[credential]
helper = store
[init]
defaultBranch = main
[pull]
rebase = true
#!/bin/sh
(( "$@" & ) & )
@mistivia
mistivia / font-config.xml
Created January 7, 2024 11:14
font config at `/etc/fonts/local.conf`
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Liberation Serif</family>
<family>Source Han Serif SC</family>
</prefer>
</alias>
@mistivia
mistivia / curry.rkt
Last active February 22, 2024 05:22
Macro for curried function in Racket
#lang racket
(provide curried-lambda
define-curried
call-curried)
(define-syntax curried-lambda
(syntax-rules ()
((_ (e1) e2 ...)
(lambda (e1) e2 ...))