You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Pete Ley
7df7d31f57
|
5 months ago | |
---|---|---|
.. | ||
.bashrc | 5 months ago | |
.xinitrc-exwm | 2 years ago | |
README.org | 5 months ago |
README.org
.bashrc setup
Add local bin file to path:
export PATH="$HOME/bin:$HOME/.local/bin:${PATH}"
Noop init
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
General aliases
alias ls="ls --color=auto"
alias ll="ls -lh --color=auto -X"
alias tree="tree -a -I .git"
Rename picture with date
How to rename a bunch of pictures in a directory using ImageMagick:
#!/bin/sh
for f in $@; do
mv "$f" $( identify -verbose "$f" | grep Timestamp | sed 's/[ \t]*dng:Timestamp: //' | xargs -0 date +%F-%T.png -d )
done
EXWM
Add a `startex` alias that starts EXWM and closes the daemon after.
alias startex="startx ~/.xinitrc-exwm; systemctl --user stop exwm"
.xinitrc-exwm:
#!/usr/bin/env bash
# Set fallback cursor
xsetroot -cursor_name left_ptr
# If Emacs is started in server mode, `emacsclient` is a convenient way to edit
# files in place (used by e.g. `git commit`)
export VISUAL=emacsclient
export EDITOR="$VISUAL"
# Disable access control
xhost +SI:localuser:$USER
# Set keyboard repeat rate
xset r rate 200 30
# Set capslock as ctrl
setxkbmap -layout us -option ctrl:nocaps
systemctl --user start exwm
exec emacsclient -c -s exwm
Python
alias pm="python manage.py"
guix
GUIX_PROFILE="$HOME/.guix-profile"
. "$GUIX_PROFILE/etc/profile"