diff --git a/.bash_aliases b/.bash_aliases index 20f971b..55464f2 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -8,3 +8,14 @@ function dt() { nohup "$@" /dev/null 2>&1 & disown } + +function csa(){ cd $1 && ls -a; } +function cs(){ cd $1 && ls; } + +function mkcdir () +{ + mkdir "$1" && + cd "$1" +} + +alias scripts="jq .scripts package.json" diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index bbbbbc9..63349ed 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -1,29 +1,41 @@ -# [shell] -# program = "/bin/bash" -# args = ["-l","-c","tmux attach || tmux"] +[terminal.shell] +program = "/bin/bash" +args = [ "-l", "-c", "tmux attach || tmux" ] + +# [general] +# import = [ +# "~/.config/alacritty/themes/dayfox.toml" +#] [window] -opacity = 0.75 -padding = { x = 5, y = 5} +# opacity = 0.85 +decorations = "None" -[colors.primary] -background = "#000000" + [window.padding] + x = 10 + y = 10 + +# [colors.primary] +# background = "#000000" + +# [bell] +# command = { program = "paplay", args = ["/usr/share/sounds/freedesktop/stereo/message.oga"] } [font] size = 11 -[font.bold] -family = "SpaceMono Nerd Font Mono" -style = "Bold" + [font.bold] + family = "SpaceMono Nerd Font Mono" + style = "Bold" -[font.bold_italic] -family = "SpaceMono Nerd Font Mono" -style = "Bold Italic" + [font.bold_italic] + family = "SpaceMono Nerd Font Mono" + style = "Bold Italic" -[font.italic] -family = "SpaceMono Nerd Font Mono" -style = "Italic" + [font.italic] + family = "SpaceMono Nerd Font Mono" + style = "Italic" -[font.normal] -family = "SpaceMono Nerd Font Mono" -style = "Regular" + [font.normal] + family = "SpaceMono Nerd Font Mono" + style = "Regular" diff --git a/.local/bin/toggle-opacity b/.local/bin/toggle-opacity new file mode 100755 index 0000000..70b6357 --- /dev/null +++ b/.local/bin/toggle-opacity @@ -0,0 +1,25 @@ +#!/bin/bash + +# Path to alacritty config file +CONFIG_FILE="$HOME/.config/alacritty/alacritty.toml" + +# Check if config file exists +if [ ! -f "$CONFIG_FILE" ]; then + echo "Error: Config file not found at $CONFIG_FILE" + exit 1 +fi + +# Check if opacity line exists (commented or not) +if grep -q "^opacity = 0.85" "$CONFIG_FILE"; then + # Line is uncommented, comment it out + sed -i 's/^opacity = 0.85/# opacity = 0.85/' "$CONFIG_FILE" + echo "Opacity disabled (line commented out)" +elif grep -q "^# opacity = 0.85" "$CONFIG_FILE"; then + # Line is commented, uncomment it + sed -i 's/^# opacity = 0.85/opacity = 0.85/' "$CONFIG_FILE" + echo "Opacity enabled (line uncommented)" +else + # Line doesn't exist, add it uncommented + echo "opacity = 0.85" >> "$CONFIG_FILE" + echo "Opacity line added and enabled" +fi diff --git a/.tmux.conf b/.tmux.conf index 5abecf3..c1d5c99 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -14,5 +14,11 @@ set -g status-style bg=white,fg=black # List of plugins set -g @plugin 'tmux-plugins/tpm' +set-option -g status-right "" +set-option -g status-left "" +set -g status-style bg=default + +# set-window-option -g visual-bell on + # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' diff --git a/README.md b/README.md index a29d961..554c673 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The repo has two branches, the main branch I use on Ubuntu distros with an GNOME While in $HOME 1. Add the following to .bashrc alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' 2. source .bashrc -3. echo ".cfg">> .gitignore. This is to preent potential recursive problems +3. echo ".cfg">> .gitignore. This is to prevent potential recursive problems 4. git clone --bare https://github.com/leoalho/dotfiles.git $HOME/.cfg 5. Checkout the content to $HOME: config checkout 6. config config --local status.showUntrackedFiles no