commit 7de9d20ced2fc845fb1016dd8dde97be0d9fc03c
parent 674be3ce52cb3169e7a7cc2febbd97ef1cfc25f6
Author: regexghost <dev@regexghost.com>
Date: Sat, 20 Jun 2026 21:07:06 +0100
addec capture-window alias, trim newlines in copy alias and other minor changes
Diffstat:
5 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc
@@ -68,7 +68,7 @@ rss () {
# Aliases to Specific Commands
alias x='chmod +x'
-alias copy='xclip -selection c'
+alias copy='tr -d "\n" | xclip -selection c'
alias batl='find . -maxdepth 1 | sort | tail -n 1 | xargs bat --theme=base16'
alias watchlc="watch 'ls | wc -l'"
alias watchdu="watch 'du -s -h *'"
@@ -82,6 +82,7 @@ alias q='exit'
alias reload='. ~/.kshrc'
alias pong='ping -c 2 -W 2'
alias wp='feh --bg-fill --no-fehbg ~/.config/regexghost/wallpaper.jpg'
+alias capture-window='echo "Focus window to capture" && sleep 1 && id="$(xdotool getactivewindow)" && echo "Got id" && sleep 1 && import -frame -window "$id"'
# Bug todo
diff --git a/dotfiles/Power_Management-Substitution-jwm-pi-.kshrc b/dotfiles/Power_Management-Substitution-jwm-pi-.kshrc
@@ -2,7 +2,7 @@
## Shutdown with confirmation
shutdown_commands () {
mocp -M "$XDG_CONFIG_HOME/moc" --stop
- rm -rf "$XDG_CACHE_HOME/reddit-rss"
+ /usr/bin/rm -rf "$XDG_CACHE_HOME/reddit-rss"
cp -r /tmp/reddit-rss "$XDG_CACHE_HOME/reddit-rss"
tmux send-keys -t buffer_tmux.o C-s
tmux send-keys -t buffer_tmux.o C-q
diff --git a/screenshots/fastfetch.png b/screenshots/fastfetch.png
Binary files differ.
diff --git a/screenshots/jwm-fastfetch.png b/screenshots/jwm-fastfetch.png
Binary files differ.
diff --git a/wm-scripts/jwm-scratchpad.sh b/wm-scripts/jwm-scratchpad.sh
@@ -13,8 +13,8 @@ launch_window () {
hide_window () {
xdotool windowmove "$scratchpad" -1000 -1000
-# xdotool set_desktop_for_window "$scratchpad" 5
xdotool windowactivate "$old_focus"
+# xdotool set_desktop_for_window "$scratchpad" 5
# xdotool windowminimize "$scratchpad"
}
@@ -22,8 +22,8 @@ show_window () {
xdotool getactivewindow > ~/.cache/old_window
desktop="$(xdotool get_desktop)"
xdotool set_desktop_for_window "$scratchpad" "$desktop"
- xdotool windowmove "$scratchpad" 610 300
xdotool windowactivate "$scratchpad"
+ xdotool windowmove "$scratchpad" 610 300
}
if [ "$scratchpad" = "" ]; then