diff options
Diffstat (limited to 'dwm-6.3')
| -rw-r--r-- | dwm-6.3/Makefile | 1 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dmenuunicode | 18 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-goto | 14 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-mute | 4 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-search | 14 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-vol_down | 3 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-vol_up | 3 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/passmenu | 35 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/power | 8 |
9 files changed, 0 insertions, 100 deletions
diff --git a/dwm-6.3/Makefile b/dwm-6.3/Makefile index 5ac0a5e..3009009 100644 --- a/dwm-6.3/Makefile +++ b/dwm-6.3/Makefile @@ -43,7 +43,6 @@ install: all mkdir -p ${DESTDIR}${MANPREFIX}/man1 sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 - cp scripts/* $(PREFIX)/bin uninstall: rm -f ${DESTDIR}${PREFIX}/bin/dwm\ ${DESTDIR}${MANPREFIX}/man1/dwm.1 diff --git a/dwm-6.3/scripts/dmenuunicode b/dwm-6.3/scripts/dmenuunicode deleted file mode 100755 index 7d9a4ea..0000000 --- a/dwm-6.3/scripts/dmenuunicode +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# The famous "get a menu of emojis to copy" script. - -# Get user selection via dmenu from emoji file. -chosen=$(cut -d ';' -f1 ~/.local/share/larbs/emoji | dmenu -i -l 30 | sed "s/ .*//") - -# Exit if none chosen. -[ -z "$chosen" ] && exit - -# If you run this command with an argument, it will automatically insert the -# character. Otherwise, show a message that the emoji has been copied. -if [ -n "$1" ]; then - xdotool type "$chosen" -else - printf "$chosen" | xclip -selection clipboard - notify-send "'$chosen' copied to clipboard." & -fi diff --git a/dwm-6.3/scripts/dwm-goto b/dwm-6.3/scripts/dwm-goto deleted file mode 100755 index f297b25..0000000 --- a/dwm-6.3/scripts/dwm-goto +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -URL=$(cat ~/.config/surf/history.txt | sed 's/^[^ *]* //' | sort -u | dmenu -p "Enter a URL: ") -POSTURL=$(echo $URL | sed 's/-e//; s/reddit.com/old.reddit.com/') -CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $POSTURL" - -echo $POSTURL -if [[ -z "$URL" ]]; then - exit -else - # saves url to history - echo $URL >> ~/.config/surf/history.txt - $CMD -fi diff --git a/dwm-6.3/scripts/dwm-mute b/dwm-6.3/scripts/dwm-mute deleted file mode 100755 index 5a23e63..0000000 --- a/dwm-6.3/scripts/dwm-mute +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -pamixer -t -dunstify "Toggled mute" & diff --git a/dwm-6.3/scripts/dwm-search b/dwm-6.3/scripts/dwm-search deleted file mode 100755 index ff49fc7..0000000 --- a/dwm-6.3/scripts/dwm-search +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -QUERY=$(tac ~/.config/surf/search.txt | sort -u | dmenu -l 20 -p "Search DuckDuckGo: ") -SEARCH=$(echo $QUERY | sed 's/ /+/g; s/-e//') -URL="duckduckgo.com/?q=$SEARCH" -CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL" - -if [[ -z "$SEARCH" ]]; then - exit -else - # saves search to history - echo $QUERY | sed 's/-e//' >> ~/.config/surf/search.txt - $CMD -fi diff --git a/dwm-6.3/scripts/dwm-vol_down b/dwm-6.3/scripts/dwm-vol_down deleted file mode 100755 index 8ecec15..0000000 --- a/dwm-6.3/scripts/dwm-vol_down +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -pamixer --allow-boost -d 5 diff --git a/dwm-6.3/scripts/dwm-vol_up b/dwm-6.3/scripts/dwm-vol_up deleted file mode 100755 index 4e11111..0000000 --- a/dwm-6.3/scripts/dwm-vol_up +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -pamixer --allow-boost -i 5 diff --git a/dwm-6.3/scripts/passmenu b/dwm-6.3/scripts/passmenu deleted file mode 100755 index 76d92ab..0000000 --- a/dwm-6.3/scripts/passmenu +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -shopt -s nullglob globstar - -typeit=0 -if [[ $1 == "--type" ]]; then - typeit=1 - shift -fi - -if [[ -n $WAYLAND_DISPLAY ]]; then - dmenu=dmenu-wl - xdotool="ydotool type --file -" -elif [[ -n $DISPLAY ]]; then - dmenu=dmenu - xdotool="xdotool type --clearmodifiers --file -" -else - echo "Error: No Wayland or X11 display detected" >&2 - exit 1 -fi - -prefix=${PASSWORD_STORE_DIR-~/.password-store} -password_files=( "$prefix"/**/*.gpg ) -password_files=( "${password_files[@]#"$prefix"/}" ) -password_files=( "${password_files[@]%.gpg}" ) - -password=$(printf '%s\n' "${password_files[@]}" | "$dmenu" "$@") - -[[ -n $password ]] || exit - -if [[ $typeit -eq 0 ]]; then - pass show -c "$password" 2>/dev/null -else - pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool -fi diff --git a/dwm-6.3/scripts/power b/dwm-6.3/scripts/power deleted file mode 100755 index d376fa9..0000000 --- a/dwm-6.3/scripts/power +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# A dmenu wrapper script for system functions. - -case "$(printf "🔃 reboot\n🖥️shutdown\n" | dmenu -i -p 'Power: ')" in - '🔃 reboot') sudo reboot ;; - '🖥️shutdown') sudo poweroff ;; - *) exit 1 ;; -esac |