dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit b1415356a1a09de21ff4dc89875106df6872c162
parent 952f2cf87eab6f094fa537a10759ddb2b3b83033
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 25 Nov 2022 16:43:50 +0000

colours, font. add clipmenu

Diffstat:
Mdmenu/bin/rundmc | 19++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/dmenu/bin/rundmc b/dmenu/bin/rundmc @@ -1,6 +1,6 @@ #!/usr/bin/zsh -#DM_CMD=$(dmenu -m 0 -fn tamzen:pixelsize=15 -i -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -l 10) +#DM_CMD=$(dmenu -m 0 -fn trigon:pixelsize=15 -i -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -l 10) dm_bin() { bin_arr=() @@ -8,7 +8,7 @@ dm_bin() { bin_arr+=( "$line" ) done < <( find $HOME/bin ) - choice=$(printf '%s\n' "${bin_arr[@]}" | awk -F/ '{print $NF}' | dmenu -i -l 10 -m 0 -fn tamzen:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'bin: ') + choice=$(printf '%s\n' "${bin_arr[@]}" | awk -F/ '{print $NF}' | dmenu -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'bin: ') if [ "$choice" ] ; then #cmd="printf '%s\n' "${bin_arr[@]}" | grep $HOME/bin/$choice | head -n1" @@ -23,7 +23,7 @@ dm_func() { func_arr+=( "$line" ) done < <( find $HOME/.zsh/functions ) - choice=$(printf '%s\n' "${func_arr[@]}" | awk -F/ '{print $NF}' | dmenu -i -l 10 -m 0 -fn tamzen:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'functions: ') + choice=$(printf '%s\n' "${func_arr[@]}" | awk -F/ '{print $NF}' | dmenu -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'functions: ') if [ "$choice" ] ; then #cmd="printf '%s\n' "${func_arr[@]}" | grep $HOME/bin/$choice | head -n1" @@ -39,7 +39,7 @@ dm_aliases() { alias_arr+=( "$line" ) done < <( alias ) - choice=$(printf '%s\n' "${alias_arr[@]}" | awk -F= '{print $1}' | dmenu -i -l 10 -m 0 -fn tamzen:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'submenu: ') + choice=$(printf '%s\n' "${alias_arr[@]}" | awk -F= '{print $1}' | dmenu -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'submenu: ') if [ "$choice" ] ; then cmd=$(printf '%s\n' "${alias_arr[@]}" | grep ^$choice | head -n1 | sed 's/=/%/' | awk -F% '{ print $NF }' | tr -d "'") @@ -54,7 +54,7 @@ dm_hidden() { hide_arr+=( "$line" ) done < <(hidden -c) - choice=$(printf '%s\n' "${hide_arr[@]}" | awk -F: '{print $1}' | tr -d "'" | dmenu -i -l 10 -m 0 -fn tamzen:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'submenu: ') + choice=$(printf '%s\n' "${hide_arr[@]}" | awk -F: '{print $1}' | tr -d "'" | dmenu -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'submenu: ') if [ "$choice" ] ; then cmd=$(printf '%s\n' "${hide_arr[@]}" | grep "^'$choice'" | awk -F: '{ print $NF }' | tr -d "'") @@ -69,7 +69,7 @@ dm_man() { man_arr+=( "$line" ) done < <(man -k .) - choice=$(printf '%s\n' "${man_arr[@]}" | dmenu -i -l 10 -m 0 -fn tamzen:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'manpage: ') + choice=$(printf '%s\n' "${man_arr[@]}" | dmenu -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'manpage: ') if [ "$choice" ] ; then cmd=$(printf '%s\n' "${man_arr[@]}" | grep ^$choice | awk '{print $1}') @@ -82,11 +82,11 @@ dm_pom() { /usr/bin/notify-send -u 'low' "time's up" } -select_arr=("run" "bin" "functions" "aliases" "hidden" "man" "pom" "scratch") -submenu=$(printf '%s\n' "${select_arr[@]}" | dmenu -i -l 10 -m 0 -fn tamzen:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'submenu: ') +select_arr=("run" "bin" "functions" "aliases" "hidden" "man" "pom" "scratch" "clipmenu") +submenu=$(printf '%s\n' "${select_arr[@]}" | dmenu -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'submenu: ') case $submenu in - run) dmenu_run -i -l 10 -m 0 -fn tamzen:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'rundmc: ' ;; + run) dmenu_run -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'rundmc: ' ;; bin) dm_bin ;; functions) dm_func ;; aliases) dm_aliases ;; @@ -94,5 +94,6 @@ case $submenu in man) dm_man ;; pom) dm_pom ;; scratch) urxvtc -e zsh -c "less $HOME/.vimrc" ;; + clipmenu) clipmenu -i -l 10 -m 0 -fn trigon:pixelsize=15 -nb '#1f1d1b' -nf '#d3cab3' -sb '#454545' -sf '#dab733' -p 'clipmenu: ' ;; *) exit ;; esac