Added rofi / sourced aliases / dlkiller

This commit is contained in:
agryphus 2023-09-18 20:00:25 -04:00
parent 43e094e25d
commit ea5cd95099
4 changed files with 47 additions and 7 deletions

View file

@ -1,5 +0,0 @@
#!/bin/sh
# Alias for dmenu_run
blueman-manager

13
.local/bin/dlkiller Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/sh
# For the programs that create a ~/Downloads folder on startup (ie: spotify, zoom)
# Look in the program settings to redirect the Downloads folder before trying this solution
# Usage: 'dlkiller $my-program'
# Must have $SHELL variable set to your preferred shell
$1 &
sleep 4
if [ -d ~/Downloads ] && [ -z "$(ls -A ~/Downloads)" ]; then
rm -r ~/Downloads
fi

5
.local/bin/rofi-alias Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/sh
# Script to have rofi show and run aliases
rofi -run-list-command "alias | awk -F= \"{print \\\$1}\"" -run-command "/usr/bin/zsh -i -c '{cmd}'" -rnow -show run