diff --git a/.bash_exports b/.bash_exports index ae650a9..c600aff 100644 --- a/.bash_exports +++ b/.bash_exports @@ -1,6 +1,7 @@ # editor export EDITOR=nvim + # infinite bash history # remove '-1' in both places if your bash version < 4.3 export HISTFILESIZE=-1 @@ -9,6 +10,9 @@ export HISTSIZE=-1 # writes bash history after every command export PROMPT_COMMAND="history -a" +# GCM +export GCM_CREDENTIAL_STORE=cache + # pyenv if command -v pyenv >/dev/null 2>&1; then diff --git a/.bash_profile b/.bash_profile index 2a18f4f..5831706 100644 --- a/.bash_profile +++ b/.bash_profile @@ -5,3 +5,11 @@ fi if [ -f "$HOME/.bash_exports" ]; then . "$HOME/.bash_exports" fi + +# if ! shopt -oq posix; then +# if [ -f /usr/share/bash-completion/bash_completion ]; then +# . /usr/share/bash-completion/bash_completion +# elif [ -f /etc/bash_completion ]; then +# . /etc/bash_completion +# fi +# fi diff --git a/.bashrc b/.bashrc index 4f0d248..7577604 100644 --- a/.bashrc +++ b/.bashrc @@ -14,19 +14,27 @@ alias aliass='aliasm > ~/.bash_aliases' # ls aliases alias ll='ls -lah --color=auto' -alias l='ls --color=auto' -alias ks='ls --color=auto' -alias s='ls --color=auto' alias ls='ls --color=auto' +alias sl='ls --color=auto' +alias ks='ls --color=auto' +alias l='ls --color=auto' +alias s='ls --color=auto' # cd aliases alias cdp='cd ~/Programming' alias cds='cd ~/services' -alias t='cd ~/tmp' +alias cdd='cd ~/Downloads' +alias cdt='cd ~/tmp' +alias cda='cd /run/media/$USER/' # rm aliases alias cleartmp='rm -r ~/tmp/*' +# grep aliases +alias grep='grep --color=auto' +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' + # edit configs aliases alias cfghypr='(nvim ~/.config/hypr)' alias cfgkitty='(nvim ~/.config/kitty)' @@ -36,6 +44,7 @@ alias cfgwaybar='(nvim ~/.config/waybar)' alias cfgdunst='(nvim ~/.config/dunst)' alias cfgyazi='(nvim ~/.config/yazi)' alias cfgfastfetch='(nvim ~/.config/fastfetch)' +alias cfgbash='(nvim ~/.config/bash)' # utils aliases alias y='yazi' @@ -46,9 +55,16 @@ alias scrcpy-def='scrcpy -S --no-audio -K' alias hload='hyprctl reload' alias shy='start-hyprland' alias wifi-reload='nmcli r wifi off && nmcli r wifi on' +alias wifi-reload-off='nmcli r wifi off' +alias wifi-reload-on='nmcli r wifi on' alias swagger-docs='sudo host-docs' alias share='python3 -m http.server' +alias globalshare='(cd ~/Share && python3 -m http.server)' alias download='aria2c -x16 -s16' +alias docker-enable='sudo systemctl start docker.service' +alias docker-disable='sudo systemctl stop docker.service && sudo systemctl stop docker.socket' +alias docker-status='sudo systemctl status docker.service' +alias sudo-gtk='sudo WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR"' # kitty aliases alias ssh='kitty +kitten ssh' @@ -58,8 +74,11 @@ alias edit-in-kitty='kitten edit-in-kitty' alias pzf='yay -Qq | fzf --preview '\''yay -Qil {}'\'' --layout reverse --bind '\''enter:execute(yay -Qil {} | less)'\'' --bind '\''ctrl-r:execute(yay -R {} | less)'\''' alias paclean='sudo pacman -Rs ' +# fastfetch +alias fastfetch='python3 ~/.config/fastfetch/detect_os.py' +alias ff='python3 ~/.config/fastfetch/detect_os.py' + # fun aliases -alias ff='fastfetch' alias mm='unimatrix -f -a -s 92 -l coo -c yellow' alias mmbee='unimatrix -f -a -s 86 -u '\''bee'\'' -c yellow' alias mmbeesquit='unimatrix -f -s 86 -u '\''beesquit'\'' -c yellow' diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 00edce0..407cc6f 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -29,4 +29,3 @@ foreground = "#C0CAF5" background = "#20212C6A" foreground = "#C0CAF5" frame_color = "#F38BA8" - diff --git a/.config/hypr/config/autostart.conf b/.config/hypr/config/autostart.conf index f2cda4d..113e6c7 100644 --- a/.config/hypr/config/autostart.conf +++ b/.config/hypr/config/autostart.conf @@ -9,8 +9,8 @@ exec-once = uwsm app -- /usr/lib/xdg-desktop-portal-gtk exec-once = uwsm app -- hypridle -exec-once = uwsm app -- swww-daemon -exec-once = uwsm app -- swww img "$WALLPAPER" +exec-once = uwsm app -- awww-daemon +exec-once = uwsm app -- awww img "$WALLPAPER" exec-once = uwsm app -- waybar exec-once = uwsm app -- dunst diff --git a/.config/hypr/config/binds.conf b/.config/hypr/config/binds.conf index 90cb95f..38a80a0 100644 --- a/.config/hypr/config/binds.conf +++ b/.config/hypr/config/binds.conf @@ -21,7 +21,7 @@ bind = $mainMod SHIFT, T, layoutmsg, swapsplit # apps binds bind = $mainMod, Q, exec, kitty bind = $mainMod, E, exec, thunar -bind = $mainMod, R, exec, rofi -show drun +bind = $mainMod, R, exec, rofi -show drun -no-history -matching prefix -drun-match-fields name -no-tokenize bind = $mainMod SHIFT, R, exec, .config/rofi/network-manager/run-manager.sh diff --git a/.config/hypr/scripts/swww.sh b/.config/hypr/scripts/awww.sh similarity index 68% rename from .config/hypr/scripts/swww.sh rename to .config/hypr/scripts/awww.sh index dc68169..ef0689a 100644 --- a/.config/hypr/scripts/swww.sh +++ b/.config/hypr/scripts/awww.sh @@ -3,4 +3,4 @@ X_POS=$(awk "BEGIN {srand(); print rand()}") Y_POS=$(awk "BEGIN {srand(); print rand()}") -swww img $WALLPAPER --transition-type grow --transition-pos "$X_POS, $Y_POS" --transition-fps 60 +awww img $WALLPAPER --transition-type grow --transition-pos "$X_POS, $Y_POS" --transition-fps 60 diff --git a/.config/hypr/scripts/testing/eDPower.sh b/.config/hypr/scripts/testing/eDPower.sh index 4a4ed3d..000e13c 100755 --- a/.config/hypr/scripts/testing/eDPower.sh +++ b/.config/hypr/scripts/testing/eDPower.sh @@ -4,6 +4,6 @@ check=$(hyprctl monitors | awk '/HDMI-A-1/{print $1}' | tr -d '\n') if [ $check != '' ]; then hyprctl keyword monitor "eDP-1, disable" - swww kill - uwsm app -- swww-daemon + awww kill + uwsm app -- awww-daemon fi diff --git a/.config/waybar/modules/power.jsonc b/.config/waybar/modules/power.jsonc index 8bba755..1affc00 100644 --- a/.config/waybar/modules/power.jsonc +++ b/.config/waybar/modules/power.jsonc @@ -18,7 +18,7 @@ "smooth-scrolling-threshold": 1, "on-scroll-down": "brightnessctl --class='backlight' set 5%+", "on-scroll-up": "brightnessctl --class='backlight' set 5%-", - "on-click": "python $HOME/.config/hypr/scripts/swww.py", + "on-click": "python $HOME/.config/hypr/scripts/awww.py", "tooltip-format": "{percent}%", }, } diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..5ee0a26 --- /dev/null +++ b/.inputrc @@ -0,0 +1,3 @@ +set colored-stats on +set colored-completion-prefix on +set completion-ignore-case on diff --git a/yadm-readd.sh b/yadm-readd.sh index eed8ed6..c0bf108 100755 --- a/yadm-readd.sh +++ b/yadm-readd.sh @@ -10,6 +10,7 @@ yadm add ~/.config/waybar/ yadm add ~/.config/dunst/ yadm add ~/.config/kitty/ +yadm add ~/.inputrc yadm add ~/.bash_profile yadm add ~/.bashrc yadm add ~/.bash_exports