Update alacritty, tmux configs. Add a couple of new functions to bash_aliases. Add a shell script to toggle Alacritty's opacity in .local/bin/
This commit is contained in:
parent
90f0cf897e
commit
f769891708
5 changed files with 74 additions and 20 deletions
|
|
@ -8,3 +8,14 @@ function dt() {
|
|||
nohup "$@" </dev/null >/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"
|
||||
|
|
|
|||
|
|
@ -1,13 +1,25 @@
|
|||
# [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
|
||||
|
|
|
|||
25
.local/bin/toggle-opacity
Executable file
25
.local/bin/toggle-opacity
Executable file
|
|
@ -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
|
||||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue