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

Compare commits

...

2 Commits

6 changed files with 42 additions and 3 deletions

View File

@ -23,6 +23,8 @@
- [[#general][General]]
- [[#programming][Programming]]
- [[#ui][UI]]
- [[#npm][NPM]]
- [[#packages-1][Packages]]
- [[#configuration][Configuration]]
- [[#installation][Installation]]
- [[#find--delete-orphaned-symlinks][Find & delete orphaned symlinks]]
@ -48,6 +50,7 @@ A repository of my personal configuration files.
- [[https://github.com/internalfx/mailcap][mailcap]]
- [[https://mpv.io/][mpv]]
- [[https://github.com/phuhl/notify-send.py][notify-send.py]]
- [[https://www.npmjs.com/get-npm][npm]]
- [[https://github.com/cdemoulins/pamixer][pamixer]]
- [[https://github.com/dylanaraps/pfetch][pfetch]]
- [[https://www.freedesktop.org/wiki/Software/PulseAudio/][Pulseaudio]]
@ -149,6 +152,9 @@ A repository of my personal configuration files.
*** UI
- [[https://github.com/morhetz/gruvbox][morhetz/gruvbox]]
- [[https://github.com/ryanoasis/vim-devicons][ryanoasis/vim-devicons]]
* NPM
** Packages
- [[https://github.com/GoogleChrome/lighthouse][lighthouse]]
* Configuration
** Installation

11
install
View File

@ -9,10 +9,18 @@ end
function install_omf_package_if_not_exist
if test (omf list | grep -c "$argv") -eq 0
echo "Installing omf package $argv"
omf install "$argv"
end
end
function install_npm_package_if_not_exist
if ! npm -g list --depth 1 lighthouse >/dev/null 2>&1
echo "Installing npm package $argv"
sudo npm install -g "$argv"
end
end
# Create directories that need to exist
mkdir_if_not_exist ~/.cache/mpd
mkdir_if_not_exist ~/.config/alacritty
@ -65,6 +73,9 @@ end
# Install Neovim plugins
nvim +PlugInstall +qall
# Install npm packages
install_npm_package_if_not_exist lighthouse
# Setup broot if not done already
if [ ! -d ~/.local/share/broot ]
broot --install

19
lighthouse/.local/bin/audit Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
. $HOME/.cache/wal/colors.sh
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" "$@")"
if [ "$url" == "Other" ]; then
read -r -p "Url: " url
fi
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
else
read -r -n 1 -p "Something went wrong. Press any key to exit."
fi

View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
curl --silent "https://corona-stats.online/Netherlands?minimal=true" | sed -n '2p' | sed 's/\x1b\[[0-9;]*m//g' | awk '{ print "😷" $3, "💀" $5"%", $6$7, $8$9 }'

View File

@ -404,7 +404,7 @@ content-foreground = ${colors.primary}
[module/corona]
type = custom/script
exec = curl --silent "https://corona-stats.online/Netherlands?minimal=true" | sed -n '2p' | sed 's/\x1b\[[0-9;]*m//g' | awk '{ print "😷" $6, "💀" $7"%", $9$10, $11$12 }'
exec = ~/.config/polybar/bin/corona
interval = 900
click-left = brave https://corona-stats.online/Netherlands

View File

@ -79,8 +79,8 @@ super + Escape
pkill -USR1 -x sxhkd
# Misc apps
ctrl + alt + {l, n, r, w, s, p, v, k}
alacritty --class float,float -e {lf, neomutt, /usr/bin/newsboat, ~/.config/polybar/bin/wttr-and-wait, spt, castero, nvim, ~/.local/bin/calendar-and-wait}
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}
ctrl + alt + {b, e, S}
{brave, emacs, spotify}