The NIX update

This commit is contained in:
2024-10-09 16:55:47 +01:00
parent da1ac8eb6f
commit aace32af13
341 changed files with 1136 additions and 44347 deletions

23
scripts/dm-kill Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# dmenu theming
lines="-l 20"
selected="$(ps -a -u $USER | \
dmenu -i -p "Type to search and select process to kill" \
$lines | \
awk '{print $1" "$4}')";
if [[ ! -z $selected ]]; then
answer="$(echo -e "Yes\nNo" | \
dmenu -i -p "$selected will be killed, are you sure?" \
$lines )"
if [[ $answer == "Yes" ]]; then
selpid="$(awk '{print $1}' <<< $selected)";
kill -9 $selpid
fi
fi
exit 0