mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Compare commits
2 Commits
aee74ed0e4
...
0c5e4a72fc
Author | SHA1 | Date | |
---|---|---|---|
0c5e4a72fc | |||
83567b1c21 |
@ -23,6 +23,8 @@
|
|||||||
- [[#general][General]]
|
- [[#general][General]]
|
||||||
- [[#programming][Programming]]
|
- [[#programming][Programming]]
|
||||||
- [[#ui][UI]]
|
- [[#ui][UI]]
|
||||||
|
- [[#npm][NPM]]
|
||||||
|
- [[#packages-1][Packages]]
|
||||||
- [[#configuration][Configuration]]
|
- [[#configuration][Configuration]]
|
||||||
- [[#installation][Installation]]
|
- [[#installation][Installation]]
|
||||||
- [[#find--delete-orphaned-symlinks][Find & delete orphaned symlinks]]
|
- [[#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://github.com/internalfx/mailcap][mailcap]]
|
||||||
- [[https://mpv.io/][mpv]]
|
- [[https://mpv.io/][mpv]]
|
||||||
- [[https://github.com/phuhl/notify-send.py][notify-send.py]]
|
- [[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/cdemoulins/pamixer][pamixer]]
|
||||||
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
||||||
- [[https://www.freedesktop.org/wiki/Software/PulseAudio/][Pulseaudio]]
|
- [[https://www.freedesktop.org/wiki/Software/PulseAudio/][Pulseaudio]]
|
||||||
@ -149,6 +152,9 @@ A repository of my personal configuration files.
|
|||||||
*** UI
|
*** UI
|
||||||
- [[https://github.com/morhetz/gruvbox][morhetz/gruvbox]]
|
- [[https://github.com/morhetz/gruvbox][morhetz/gruvbox]]
|
||||||
- [[https://github.com/ryanoasis/vim-devicons][ryanoasis/vim-devicons]]
|
- [[https://github.com/ryanoasis/vim-devicons][ryanoasis/vim-devicons]]
|
||||||
|
* NPM
|
||||||
|
** Packages
|
||||||
|
- [[https://github.com/GoogleChrome/lighthouse][lighthouse]]
|
||||||
|
|
||||||
* Configuration
|
* Configuration
|
||||||
** Installation
|
** Installation
|
||||||
|
11
install
11
install
@ -9,10 +9,18 @@ end
|
|||||||
|
|
||||||
function install_omf_package_if_not_exist
|
function install_omf_package_if_not_exist
|
||||||
if test (omf list | grep -c "$argv") -eq 0
|
if test (omf list | grep -c "$argv") -eq 0
|
||||||
|
echo "Installing omf package $argv"
|
||||||
omf install "$argv"
|
omf install "$argv"
|
||||||
end
|
end
|
||||||
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
|
# Create directories that need to exist
|
||||||
mkdir_if_not_exist ~/.cache/mpd
|
mkdir_if_not_exist ~/.cache/mpd
|
||||||
mkdir_if_not_exist ~/.config/alacritty
|
mkdir_if_not_exist ~/.config/alacritty
|
||||||
@ -65,6 +73,9 @@ end
|
|||||||
# Install Neovim plugins
|
# Install Neovim plugins
|
||||||
nvim +PlugInstall +qall
|
nvim +PlugInstall +qall
|
||||||
|
|
||||||
|
# Install npm packages
|
||||||
|
install_npm_package_if_not_exist lighthouse
|
||||||
|
|
||||||
# Setup broot if not done already
|
# Setup broot if not done already
|
||||||
if [ ! -d ~/.local/share/broot ]
|
if [ ! -d ~/.local/share/broot ]
|
||||||
broot --install
|
broot --install
|
||||||
|
19
lighthouse/.local/bin/audit
Executable file
19
lighthouse/.local/bin/audit
Executable 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
|
3
polybar/.config/polybar/bin/corona
Executable file
3
polybar/.config/polybar/bin/corona
Executable 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 }'
|
@ -404,7 +404,7 @@ content-foreground = ${colors.primary}
|
|||||||
|
|
||||||
[module/corona]
|
[module/corona]
|
||||||
type = custom/script
|
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
|
interval = 900
|
||||||
|
|
||||||
click-left = brave https://corona-stats.online/Netherlands
|
click-left = brave https://corona-stats.online/Netherlands
|
||||||
|
@ -79,8 +79,8 @@ super + Escape
|
|||||||
pkill -USR1 -x sxhkd
|
pkill -USR1 -x sxhkd
|
||||||
|
|
||||||
# Misc apps
|
# Misc apps
|
||||||
ctrl + alt + {l, n, r, w, s, p, v, k}
|
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}
|
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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user