From 284ea2c1115f3546568a9eb1856280fe64801110 Mon Sep 17 00:00:00 2001 From: BardofSprites <89086143+BardofSprites@users.noreply.github.com> Date: Thu, 17 Jul 2025 10:26:50 -0400 Subject: simple shell env changes --- shell/.bash_aliases | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'shell/.bash_aliases') diff --git a/shell/.bash_aliases b/shell/.bash_aliases index 82d798b..1731413 100644 --- a/shell/.bash_aliases +++ b/shell/.bash_aliases @@ -9,6 +9,12 @@ alias ta="tmux attach" alias ts="tmux-sessionizer" alias rec="ffmpeg -f x11grab -s 1920x1080 -i :0.0+0+0 out.mp4" +# smart launcher aliases +alias p="smart-launcher ~/Pictures/" +alias r="smart-launcher ~/Repositories/" +alias d="smart-launcher ~/Documents/" +alias c="smart-launcher ~/Code/" + 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 | @@ -17,6 +23,19 @@ function _recentimages() { alias recentimages='_recentimages' +function xrdb-theme() { + local theme_file + theme_file=$(find ~/.Xresources.d/ -type l | fzf) + + if [[ -n "$theme_file" ]]; then + xrdb -merge "$theme_file" + echo "Loaded theme: $(basename "$theme_file")" + else + echo "No theme selected." + fi +} + + alias checkmail="$HOME/.local/bin/scripts/checkmail" # gentoo related alias sysupdate="sudo eix-sync" -- cgit v1.2.3