aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorBardofSprites <[email protected]>2026-04-23 00:13:58 -0400
committerBardofSprites <[email protected]>2026-04-23 00:13:58 -0400
commit495b93f5603fbee4cc8fc4a6ded85b88adef8562 (patch)
tree038fb395021472cd25f449ca499c6f9115c00e93 /shell
parentd1eb4b9e84c4777da76ace349d3c016d9ba026ec (diff)
change aliases
Diffstat (limited to 'shell')
-rw-r--r--shell/.bash_aliases37
1 files changed, 27 insertions, 10 deletions
diff --git a/shell/.bash_aliases b/shell/.bash_aliases
index 1731413..6b50c87 100644
--- a/shell/.bash_aliases
+++ b/shell/.bash_aliases
@@ -1,27 +1,40 @@
# -*- mode:sh; -*-
alias pyenv="source /home/bard/.pyvenv/bin/activate"
-alias mf='mpv "$(fzf)"'
alias comp="picom --daemon"
alias killcomp="killall picom"
alias kd="killall Discord"
alias ta="tmux attach"
alias ts="tmux-sessionizer"
alias rec="ffmpeg -f x11grab -s 1920x1080 -i :0.0+0+0 out.mp4"
+alias vim="e"
-# smart launcher aliases
-alias p="smart-launcher ~/Pictures/"
-alias r="smart-launcher ~/Repositories/"
-alias d="smart-launcher ~/Documents/"
-alias c="smart-launcher ~/Code/"
+# playing videos with mpv
+function _mf() {
+ file=$(find . -type f -printf '%T@ %p\n' 2>/dev/null \
+ | sort -nr \
+ | cut -d' ' -f2- \
+ | fzf -m --reverse)
+
+ [[ -n "$file" ]] && mpv "$file"
+}
+alias mf='_mf'
function _recentimages() {
find "$1" -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.jpeg" -o -iname "*.gif" -o -iname "*.bmp" \) -printf "%T@ %p\n" |
sort -nr |
cut -d" " -f2- |
- nsxiv -t -; };
+ nsxiv -t -o -; };
+
+function _recentselect() {
+ find "$1" -type f -printf "%T@ %p\n" |
+ sort -nr |
+ cut -d" " -f2- |
+ fzf --reverse --walker=file,dir,follow,hidden --scheme=path -m
+}
alias recentimages='_recentimages'
+alias select='_recentselect'
function xrdb-theme() {
local theme_file
@@ -66,8 +79,12 @@ alias lsl='ls -lhpv --color=auto --group-directories-first'
alias lsla='ls -lhpvA --color=auto --group-directories-first'
# emacs stuff
-# change daemon permissions for script
-alias ep="chmod 700 /run/user/1000/emacs/"
-alias en="emacsclient -c -nw"
+e() {
+ if [ $# -eq 0 ]; then
+ emacsclient -c -n -a "" .
+ else
+ emacsclient -c -n -a "" "$@"
+ fi
+}
alias catworld="cat /var/lib/portage/world"