resetting a few small things?

This commit is contained in:
Chris Cochrun 2022-09-15 15:21:53 -05:00
parent 54218677ff
commit f1349e79f1
8 changed files with 40 additions and 34 deletions

View file

@ -4,7 +4,7 @@
if [ $(pgrep -c emacsclient) -gt 0 ]; then
echo hi
if [ "$XDG_SESSION_TYPE" == "x11" ]; then
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
#X11
emacsrg=$(wmctrl -lx | rg emacs.Emacs | rg -v org-agenda | awk '{print $1}')
echo $emacsrg
@ -17,7 +17,7 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
exit
fi
else
if [ "$KDE_FULL_SESSION" == "true" ]; then
if [ "$KDE_FULL_SESSION" = "true" ]; then
exec /home/chris/bin/ww -fa Emacs -c emacsclient
exit
else

View file

@ -41,7 +41,7 @@ abspath () {
listfiles () {
find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \
'.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z
'.*\(jpe?g\|bmp\|png\|gif\|heic\)$' -print0 | sort -z
}
target="$(abspath "$1")"