summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/mpv/mpv.conf1
-rwxr-xr-x[-rw-r--r--].config/nnn/nnn.bash0
-rw-r--r--.config/shell/aliasrc14
-rwxr-xr-x.config/sxiv/exec/key-handler2
-rw-r--r--.config/x11/xinitrc2
-rw-r--r--.config/zsh/.zshrc2
6 files changed, 10 insertions, 11 deletions
diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf
index d6d468d..d5267b6 100644
--- a/.config/mpv/mpv.conf
+++ b/.config/mpv/mpv.conf
@@ -23,4 +23,3 @@ screenshot-template="%F - [%P]v%#01n"
loop-file=inf
[extension.gif]
loop-file=inf
-
diff --git a/.config/nnn/nnn.bash b/.config/nnn/nnn.bash
index 92a10dd..92a10dd 100644..100755
--- a/.config/nnn/nnn.bash
+++ b/.config/nnn/nnn.bash
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index 46e9ce4..62ccb34 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -8,17 +8,18 @@ alias fuck='doas $(fc -Lln -1)'
alias open='xdg-open'
alias mutt='pushd ~/.mutt/attachments; mutt; popd'
alias jpwine='LANG=ja_JP.UTF-8 WINEDEBUG=-all wine'
-alias vi="$EDITOR"
alias emacsd='/usr/bin/emacs --daemon &'
alias z='zathura'
alias cn='clear;neofetch'
alias nnn='nnn -Hde'
-alias ea='vi ~/.config/shell/aliasrc'
-alias ez='vi ~/.config/zsh/.zshrc'
+alias ea='$EDITOR ~/.config/shell/aliasrc'
+alias ez='$EDITOR ~/.config/zsh/.zshrc'
alias setkeys='xset r rate 250 30 && setxkbmap -option "ctrl:nocaps"'
+alias freyr='docker run -it -v /media/hdd/music:/data freyr-dev'
alias cam='mpv --profile=low-latency --untimed /dev/video0'
-alias freyr='doas docker run -it --rm -v /media/hdd/music:/data freyrcli/freyrjs'
-alias ofn='/usr/bin/ls | cat -n | while read n f; do rename "s/${f%.*}/$(printf "%04d" "$n")/" "$f"; done'
+
+# rename files in pwd in their current order to 4-digit numbers
+alias ofn='/bin/ls | cat -n | while read n f; do perl-rename "s/${f%.*}/$(printf "%04d" "$n")/" "$f"; done'
# setting custom ascii
# alias neofetch='neofetch --source ~/docs/ascii/lain'
@@ -35,6 +36,7 @@ alias grep='grep --color=auto -i'
# ls shortcuts
alias ls='ls -hl --color=always --group-directories-first'
alias la='ls -a'
+alias lc='ls | tail -n +2 | wc -l'
ld() {
if [ "$1" = "" ]; then
@@ -121,7 +123,7 @@ alias dpush='dfiles push origin'
alias eq='equery uses'
alias emin='doas emerge -av'
-alias emrm='doas emerge -ac'
+alias emrm='doas emerge -avc'
alias emup='doas emerge -avuND @world'
alias ems='emerge -s'
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
index 981eb8e..7539f88 100755
--- a/.config/sxiv/exec/key-handler
+++ b/.config/sxiv/exec/key-handler
@@ -5,7 +5,5 @@ do
case "$1" in
"C-d") rm "$file" ;;
"C-c") cat "$file" | xclip -sel c -t image/png ;;
- "C-w") xwallpaper --maximize "$file" ;;
- "C-z") mv "$file" /media/hdd/pics/wallpaper/
esac
done
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
index 8ccffd0..ecd80c1 100644
--- a/.config/x11/xinitrc
+++ b/.config/x11/xinitrc
@@ -16,7 +16,7 @@ setxkbmap -option "ctrl:nocaps"
xrandr --auto --output HDMI-A-0 --mode 1920x1080 --primary
xrandr --auto --output DisplayPort-2 --mode 1600x900 --left-of HDMI-A-0
-~/.fehbg
+~/.local/bin/set-wallpaper &
/usr/bin/emacs --daemon &
pipewire &
mpd &
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 22e2763..d27b9ac 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -68,7 +68,7 @@ fi
neofetch
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
+#[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
if [ -f $XDG_DATA_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
. $XDG_DATA_HOME/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh