Hyprland-dotfiles/.bashrc

147 lines
4.4 KiB
Bash
Raw Normal View History

2023-03-08 08:20:33 -05:00
# _ _
# | |__ __ _ ___| |__ _ __ ___
# | '_ \ / _` / __| '_ \| '__/ __|
# _| |_) | (_| \__ \ | | | | | (__
# (_)_.__/ \__,_|___/_| |_|_| \___|
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
2023-02-07 09:59:20 -05:00
# ~/.bashrc
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-02-07 09:59:20 -05:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
2023-12-28 15:27:32 -05:00
# Define Editor
export EDITOR=nvim
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-02-07 09:59:20 -05:00
# ALIASES
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-02-11 11:22:33 -05:00
2023-06-19 09:04:00 -04:00
alias c='clear'
alias nf='neofetch'
alias pf='pfetch'
2023-12-21 15:32:34 -05:00
alias ls='eza -a --icons'
alias ll='eza -al --icons'
alias lt='eza -a --tree --level=1 --icons'
2023-04-08 10:26:43 -04:00
alias shutdown='systemctl poweroff'
2023-12-28 15:27:32 -05:00
alias v='$EDITOR'
2024-02-17 11:01:13 -05:00
alias vim='$EDITOR'
2023-04-15 14:43:19 -04:00
alias ts='~/dotfiles/scripts/snapshot.sh'
2023-02-20 13:24:55 -05:00
alias matrix='cmatrix'
2023-04-04 10:38:59 -04:00
alias wifi='nmtui'
2023-04-11 07:37:23 -04:00
alias od='~/private/onedrive.sh'
2023-08-19 05:21:42 -04:00
alias rw='~/dotfiles/waybar/reload.sh'
2023-09-01 06:05:42 -04:00
alias winclass="xprop | grep 'CLASS'"
2023-09-20 07:09:50 -04:00
alias dot="cd ~/dotfiles"
2024-01-11 10:03:36 -05:00
alias cleanup='~/dotfiles/scripts/cleanup.sh'
2024-04-29 11:12:13 -04:00
# -----------------------------------------------------
# ML4W Apps
# -----------------------------------------------------
2024-01-25 10:33:18 -05:00
alias ml4w='~/dotfiles/apps/ML4W_Welcome-x86_64.AppImage'
2024-03-07 09:51:34 -05:00
alias ml4w-settings='~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage'
2024-04-29 11:12:13 -04:00
alias ml4w-sidebar='~/dotfiles/eww/ml4w-sidebar/launch.sh'
alias ml4w-hyprland='~/dotfiles/apps/ML4W_Hyprland_Settings-x86_64.AppImage'
2024-05-02 09:59:08 -04:00
alias ml4w-diagnosis='~/dotfiles/scripts/diagnosis.sh'
2023-02-07 09:59:20 -05:00
# -----------------------------------------------------
2023-08-28 07:33:53 -04:00
# Window Managers
# -----------------------------------------------------
2023-08-28 07:33:53 -04:00
alias Qtile='startx'
2023-11-10 16:12:15 -05:00
# Hyprland with Hyprland
2023-08-28 07:33:53 -04:00
# -----------------------------------------------------
2023-02-23 10:45:51 -05:00
# GIT
# -----------------------------------------------------
2023-06-19 09:04:00 -04:00
2023-02-23 10:45:51 -05:00
alias gs="git status"
alias ga="git add"
2023-02-24 05:05:07 -05:00
alias gc="git commit -m"
2023-02-23 10:45:51 -05:00
alias gp="git push"
2023-03-08 07:00:40 -05:00
alias gpl="git pull"
2023-04-14 08:34:31 -04:00
alias gst="git stash"
2023-08-31 08:53:53 -04:00
alias gsp="git stash; git pull"
alias gcheck="git checkout"
alias gcredential="git config credential.helper store"
2023-02-23 10:45:51 -05:00
# -----------------------------------------------------
2023-02-09 04:27:03 -05:00
# SCRIPTS
# -----------------------------------------------------
2023-06-19 09:04:00 -04:00
2023-02-07 09:59:20 -05:00
alias gr='python ~/dotfiles/scripts/growthrate.py'
2023-05-11 07:18:52 -04:00
alias ChatGPT='python ~/mychatgpt/mychatgpt.py'
2023-05-12 08:19:19 -04:00
alias chat='python ~/mychatgpt/mychatgpt.py'
2023-03-09 03:25:31 -05:00
alias ascii='~/dotfiles/scripts/figlet.sh'
2023-02-07 09:59:20 -05:00
# -----------------------------------------------------
2023-02-09 04:27:03 -05:00
# VIRTUAL MACHINE
# -----------------------------------------------------
2023-06-19 09:04:00 -04:00
2023-04-11 04:36:48 -04:00
alias vm='~/private/launchvm.sh'
2023-04-08 10:26:43 -04:00
alias lg='~/dotfiles/scripts/looking-glass.sh'
2023-02-07 09:59:20 -05:00
# -----------------------------------------------------
2023-03-06 11:55:42 -05:00
# EDIT CONFIG FILES
# -----------------------------------------------------
2023-06-19 09:04:00 -04:00
2023-12-28 15:27:32 -05:00
alias confq='$EDITOR ~/dotfiles/qtile/config.py'
alias confp='$EDITOR ~/dotfiles/picom/picom.conf'
alias confb='$EDITOR ~/dotfiles/.bashrc'
2023-02-07 09:59:20 -05:00
# -----------------------------------------------------
2023-02-09 08:30:40 -05:00
# EDIT NOTES
# -----------------------------------------------------
2023-06-19 09:04:00 -04:00
2023-12-28 15:27:32 -05:00
alias notes='$EDITOR ~/notes.txt'
2023-02-09 08:30:40 -05:00
# -----------------------------------------------------
2023-06-19 09:04:00 -04:00
# SYSTEM
# -----------------------------------------------------
2023-06-19 09:04:00 -04:00
alias update-grub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
alias setkb='setxkbmap de;echo "Keyboard set back to de."'
# -----------------------------------------------------
# SCREEN RESOLUTINS
# -----------------------------------------------------
# Qtile
2023-06-19 09:04:00 -04:00
alias res1='xrandr --output DisplayPort-0 --mode 2560x1440 --rate 120'
alias res2='xrandr --output DisplayPort-0 --mode 1920x1080 --rate 120'
2023-08-21 04:46:13 -04:00
export PATH="$HOME/.local/bin/:/usr/lib/ccache/bin/:$PATH"
2023-06-19 09:04:00 -04:00
2024-02-17 11:01:13 -05:00
# -----------------------------------------------------
# DEVELOPMENT
# -----------------------------------------------------
alias dotsync="~/dotfiles-versions/dotfiles/.dev/sync.sh dotfiles"
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-02-07 09:59:20 -05:00
# START STARSHIP
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-02-07 09:59:20 -05:00
eval "$(starship init bash)"
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-02-09 04:27:03 -05:00
# PYWAL
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-02-07 09:59:20 -05:00
cat ~/.cache/wal/sequences
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-11-10 16:12:15 -05:00
# PFETCH if on wm
2023-03-08 08:20:33 -05:00
# -----------------------------------------------------
2023-03-19 12:58:09 -04:00
echo ""
2023-11-10 16:12:15 -05:00
if [[ $(tty) == *"pts"* ]]; then
pfetch
else
if [ -f /bin/qtile ]; then
echo "Start Qtile X11 with command Qtile"
fi
if [ -f /bin/hyprctl ]; then
echo "Start Hyprland with command Hyprland"
fi
fi