1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

..

No commits in common. "dff2f6cd171f91c40d7e2a5ec7b54330c9451c12" and "40e59fa6b3d19d6984972c6fda3d74f67ce154e5" have entirely different histories.

5 changed files with 12 additions and 34 deletions

View File

@ -58,7 +58,6 @@ A repository of my personal configuration files.
- [[https://github.com/dylanaraps/pywal][pywal]] - [[https://github.com/dylanaraps/pywal][pywal]]
- [[http://www.gnu.org/software/stow/][stow]] - [[http://www.gnu.org/software/stow/][stow]]
- [[https://github.com/muennich/sxiv][sxiv]] - [[https://github.com/muennich/sxiv][sxiv]]
- [[https://github.com/tldr-pages/tldr][tldr]]
- [[https://www.freedesktop.org/wiki/Software/udisks/][udisks]] - [[https://www.freedesktop.org/wiki/Software/udisks/][udisks]]
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]] - [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
- [[https://pwmt.org/projects/zathura/][zathura]] - [[https://pwmt.org/projects/zathura/][zathura]]

View File

@ -1,6 +0,0 @@
#!/usr/bin/env sh
. ~/.cache/wal/colors.sh
command=$(curl --silent "https://github.com/tldr-pages/tldr/tree/master/pages/linux" | grep -o "[1-zA-Z0-9\-]*.md" | cut -f 1 -d '.' | uniq | sort | dmenu -p "tldr" -i -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15")
test ! -z "$command" && alacritty --class float,float -e ~/.config/polybar/bin/tldr-and-wait "$command"

View File

@ -2,27 +2,18 @@
. $HOME/.cache/wal/colors.sh . $HOME/.cache/wal/colors.sh
cachedUrls=$(cat ~/.cache/audit-urls 2>/dev/null)
localServices=$(netstat -ltpn 2>/dev/null | grep "node" | awk '{ print "http://"$4 }') localServices=$(netstat -ltpn 2>/dev/null | grep "node" | awk '{ print "http://"$4 }')
url="$(echo -e "$localServices\nOther" | dmenu -i -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" "$@")"
test -n "$localServices" && dmenUrls+="$localServices" if [ "$url" == "Other" ]; then
test -n "$cachedUrls" && dmenuUrls+="$cachedUrls" read -r -p "Url: " url
fi
url="$(echo -e "$dmenuUrls" | uniq | sort | dmenu -i -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" "$@")"
rm -f "$HOME"/Downloads/lighthouse.html
if [[ -n "$url" && "$url" != "http://" && "$url" != "https://" ]]; then env CHROME_PATH=/usr/local/bin/brave lighthouse --output-path="$HOME"/Downloads/lighthouse.html "$url"
rm -f "$HOME"/Downloads/lighthouse.html
env CHROME_PATH=/usr/local/bin/brave lighthouse --output-path="$HOME"/Downloads/lighthouse.html "$url" if [ -f "$HOME"/Downloads/lighthouse.html ]; then
setsid /usr/local/bin/brave ~/Downloads/lighthouse.html
if [ -f "$HOME"/Downloads/lighthouse.html ]; then else
setsid /usr/local/bin/brave ~/Downloads/lighthouse.html read -r -n 1 -p "Something went wrong. Press any key to exit."
else
read -r -n 1 -p "Something went wrong. Press any key to exit."
fi
# Cache list of audit urls used with dmenu
if [[ ! $(grep "$url" ~/.cache/audit-urls) ]]; then
echo "$url" >>~/.cache/audit-urls
fi
fi fi

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
tldr "$@"
read -n 1 -r -p ""

View File

@ -83,8 +83,6 @@ ctrl + alt + {l, n, r, w, s, p, v, k, a}
alacritty --class float,float -e {lf, neomutt, /usr/bin/newsboat, ~/.config/polybar/bin/wttr-and-wait, spt, castero, nvim, ~/.local/bin/calendar-and-wait, ~/.local/bin/audit} alacritty --class float,float -e {lf, neomutt, /usr/bin/newsboat, ~/.config/polybar/bin/wttr-and-wait, spt, castero, nvim, ~/.local/bin/calendar-and-wait, ~/.local/bin/audit}
ctrl + alt + {b, e, S} ctrl + alt + {b, e, S}
{brave, emacs, spotify} {brave, emacs, spotify}
ctrl + alt + {t}
~/.local/bin/tldr-dmenu
#-----------------------------------------------------------Bspwm-------------------------------------------------------------- #-----------------------------------------------------------Bspwm--------------------------------------------------------------
# quit/restart bspwm # quit/restart bspwm