move all existing stuff to old/
This commit is contained in:
parent
c215878777
commit
35f5e8472b
49 changed files with 0 additions and 0 deletions
|
@ -1,54 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
function prepend_alpha() {
|
||||
_rgb=$1
|
||||
_alpha=$2
|
||||
echo ${_rgb//\#/\#${_alpha}}
|
||||
}
|
||||
|
||||
function color() {
|
||||
_index=$1
|
||||
_alpha=${2:-}
|
||||
_color=${colors[$_index]}
|
||||
if [ "$_alpha" != "" ]; then
|
||||
echo $(prepend_alpha $_color $_alpha)
|
||||
else
|
||||
echo $_color
|
||||
fi
|
||||
}
|
||||
|
||||
# read colors from wal into array 'colors'
|
||||
if [ -f ~/.cache/wal/colors ]; then
|
||||
IFS=$'\n' read -d '' -r -a colors < ~/.cache/wal/colors
|
||||
fi
|
||||
|
||||
_bg=$(color 0 "aa")
|
||||
_bg2=$(color 0 "55")
|
||||
_fg=${colors[5]}
|
||||
_fg2=${colors[8]}
|
||||
_clear="#00000000"
|
||||
|
||||
|
||||
if command -v rofi &> /dev/null; then
|
||||
rofi -show drun -modi drun \
|
||||
-color-window "$_bg, $_bg, $_fg" \
|
||||
-color-normal "$_clear, $_fg, $_bg2, $_fg, $_bg" \
|
||||
-color-active "$_clear, $_fg, $_clear, $_fg, $_clear" \
|
||||
-opacity 10 \
|
||||
-width 80 \
|
||||
-padding 20 \
|
||||
-bw 2 \
|
||||
-separator-style none \
|
||||
-line-padding 3 \
|
||||
-icon-theme "Paper" \
|
||||
-location 0 \
|
||||
-hide-scrollbar \
|
||||
-show-icons true \
|
||||
-font "Abel 11" \
|
||||
-display-run ">" \
|
||||
-theme-str "#prompt-colon { enabled: false; }"
|
||||
elif command -v wofi &> /dev/null; then
|
||||
COMMAND=wofi
|
||||
$COMMAND --show drun --color=$HOME/.cache/wal/colors
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue