This commit is contained in:
Clay Manuel Gomera Arias 2022-03-02 16:40:24 -04:00
parent 184ab918bc
commit a78fdfe5b7
7 changed files with 4 additions and 2145 deletions

View file

@ -436,7 +436,7 @@ List of keybindings (SPC h b b)")
:desc "Increment register" "+" #'increment-register
:desc "Point to register" "SPC" #'point-to-register))
(setq shell-file-name "/bin/fish"
(setq shell-file-name "/bin/zsh"
vterm-max-scrollback 5000)
(setq eshell-rc-script "~/.config/doom/eshell/profile"
eshell-aliases-file "~/.config/doom/eshell/aliases"

View file

@ -883,7 +883,7 @@ Settings for the various shells and terminal emulators within Emacs.
+ 'eshell-aliases-file' -- sets an aliases file for the eshell.
#+BEGIN_SRC emacs-lisp
(setq shell-file-name "/bin/fish"
(setq shell-file-name "/bin/zsh"
vterm-max-scrollback 5000)
(setq eshell-rc-script "~/.config/doom/eshell/profile"
eshell-aliases-file "~/.config/doom/eshell/aliases"

View file

@ -8,7 +8,6 @@ dir3="$HOME/.config/picom/"
dir4="$HOME/.config/vifm/"
dir6="$HOME/.config/doom/"
dir7="$HOME/.config/scripts/"
dir8="$HOME/.config/zsh/"
# File List
newsboaturl="$HOME/.newsboat/urls"
@ -42,7 +41,6 @@ echo "Deploying the vifm config";
cp -r "$dir4" "$deploydir/.config/";
echo "Deploying the zsh config";
cp "$zshrc" "$deploydir/";
cp -r "$dir8" "$deploydir/.config/";
echo "Deploying the starship config";
cp "$starshiprc" "$deploydir/.config/";
echo "Deploying the bash config";

View file

@ -14,12 +14,12 @@
## MAIN VARIABLES AND COMMANDS ##
walldir="$HOME/Pictures/Wallpapers/" # wallpapers folder, change it to yours, make sure that it ends with a /
walldir="Pictures/Wallpapers/" # wallpapers folder, change it to yours, make sure that it ends with a /
cd "$walldir" || exit
## SELECT PICTURE FUNCTION ##
selectpic() {
wallpaper=$(fd --full-path "$walldir" | dmenu -l 10 -b -i -p "Select a wallpaper:")
wallpaper=$(fd -p "$walldir" | dmenu -l 10 -b -i -p "Select a wallpaper:")
if [ "$wallpaper" ]; then
chosenwall=$wallpaper
else

View file

@ -1,57 +0,0 @@
#!/bin/sh
# _____ ___ ___
# / /::\ / /\ /__/|
# / /:/\:\ / /::\ | |:| ***This script was made by Clay Gomera (Drake)***
# / /:/ \:\ / /:/\:\ | |:| - Description: A simple wifi-menu dmenu script
# /__/:/ \__\:| / /:/~/:/ __| |:| - Dependencies: dmenu, notify-send, NetworkManager, ping
# \ \:\ / /:/ /__/:/ /:/___ /__/\_|:|____
# \ \:\ /:/ \ \:\/:::::/ \ \:\/:::::/
# \ \:\/:/ \ \::/~~~~ \ \::/~~~~
# \ \::/ \ \:\ \ \:\
# \__\/ \ \:\ \ \:\
# \__\/ \__\/
# Dmenu variables
DMENU1="dmenu -l 10 -b -i -p"
DMENU2="dmenu -b -i -p"
# Scanning Networks and notification
notify-send "Scanning Networks"
nmcli -t d wifi rescan
scan=$(nmcli --fields SSID,SECURITY,BARS device wifi list | sed '/^--/d' | sed 1d | sed -E "s/WPA*.?\S/~~/g" | sed "s/~~ ~~/~~/g;s/802\.1X//g;s/--/~~/g;s/ *~/~/g;s/~ */~/g;s/_/ /g" | column -t -s '~')
# Selecting Network
selectnet() {
bssid=$(echo "$scan" | uniq -u | $DMENU1 "Select Wifi  :" | cut -d' ' -f1)
if [ "$bssid" ]; then
query=$bssid
else
exit 0
fi
}
selectnet
# Typing password
selectpass() {
pass=$($DMENU2 "Enter Password  :")
if [ "$pass" ]; then
passqry=$pass
else
exit 0
fi
}
selectpass
# Main connection command
nmcli device wifi connect "$query" password "$passqry" || nmcli device wifi connect "$query"
# Check notification
notify-send "Checking if the connection was successful"
# Check process
sleep 10
if ping -q -c 2 -W 2 google.com >/dev/null; then
notify-send "Your internet is working :)"
else
notify-send "Your internet is not working :("
fi

File diff suppressed because it is too large Load diff

25
.zshrc
View file

@ -88,31 +88,6 @@ fi
IFS=$SAVEIFS
### Plugins ###
source $HOME/.config/zsh/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle heroku
antigen bundle pip
antigen bundle lein
antigen bundle command-not-found
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# zsh-completions
antigen bundle zsh-users/zsh-completions
# Load the theme.
antigen theme gruvbox-dark
# Tell Antigen that you're done.
antigen apply
### ALIASES ###
# navigation