Made the script dash compatible.
This commit is contained in:
parent
a5181c505c
commit
56ca92cb33
@ -4,7 +4,7 @@
|
||||
# and it will list all your files and open them
|
||||
# in your prefered program with xdg-open
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
# cd into the given directory
|
||||
cd $1
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# dmenu script to open up my games
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
get_category () {
|
||||
category=$( game-run list | $DMENU -p "Choose game category:")
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# kill those pesky proceses
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
pid=$(ps -u $USER -o pid,%mem,%cpu,comm,cmd | sort -b -k3 -r | $DMENU -l 15 -i -p "Choose procces to kill: " | awk '{print $1}')
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
# Feed this script a link or it will get it from your clipboard and it will give dmenu
|
||||
# with some choice of programs to open the link with.
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
case "$(printf "mpv\\nbrowser\\ncopy url [X11]\\ncopy url [Wayland]\\nw3m" | $DMENU -p "Open link with what program?")" in
|
||||
mpv) "$VIDEO" "$@" ;;
|
||||
|
@ -3,6 +3,6 @@
|
||||
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
|
||||
# password prompt if needed.
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
$DMENU -P -p "$1" <&- && echo
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# simple power menu script
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
case "$(printf "shutdown\\nreboot" | $DMENU -p "Choose your poison")" in
|
||||
"shutdown") poweroff ;;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
portMan () {
|
||||
notAvailable=$(pactl list sinks | grep 'analog-output-headphones' | grep 'not available')
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
choice=$(dmenu_path | grep dmenu- | $DMENU -p "Choose script to run:")
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# dmenu script for quickly setting ryzenadj profiles with my other script easily
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
get_category () {
|
||||
category=$( sudo ryzenset list | $DMENU -p "Choose profile category:")
|
||||
|
@ -3,7 +3,7 @@
|
||||
# It lets you choose the kind of screenshot to take, including
|
||||
# copying the image or even highlighting an area to copy.
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
dir="$HOME/pics/screenshots"
|
||||
[ ! -d "$dir" ] && mkdir $dir -p
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
file=$(find $HOME -type f | $DMENU -l 15)
|
||||
[ -z "$file" ] && exit
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# a simple dmenu usb managment script
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
driveCount(){
|
||||
count="$(printf '%s\n' "$1" | wc -l)"
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# Search offline copy of the arch wiki
|
||||
|
||||
source $HOME/.config/dmenu/config
|
||||
. $HOME/.config/dmenu/config
|
||||
|
||||
dir="/usr/share/doc/arch-wiki/html/en/"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user