diff options
| -rw-r--r-- | aliases/.aliases/aliases | 3 | ||||
| -rw-r--r-- | hypr/.config/hypr/hyprland.conf | 21 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/plugins/misc.lua | 2 | ||||
| -rwxr-xr-x | scripts/.scripts/mem.sh | 3 | ||||
| -rw-r--r-- | zsh/.zshrc | 15 |
5 files changed, 20 insertions, 24 deletions
diff --git a/aliases/.aliases/aliases b/aliases/.aliases/aliases index b1da4e2..4973c24 100644 --- a/aliases/.aliases/aliases +++ b/aliases/.aliases/aliases @@ -90,6 +90,9 @@ alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'" # Switch to B alias tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'" # Switch to Zsh alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'" # Switch to Fish +# Custom scripts +alias mem="~/.scripts/mem.sh" + # Display Manager Switching alias togdm="sudo pacman -S gdm --noconfirm --needed ; sudo systemctl enable gdm.service -f ; echo 'Gdm is active - reboot now'" # Switch to GDM alias tolightdm="sudo pacman -S lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings --noconfirm --needed ; sudo systemctl enable lightdm.service -f ; echo 'Lightm is active - reboot now'" # Switch to LightDM diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf index 7a1328b..ad5de19 100644 --- a/hypr/.config/hypr/hyprland.conf +++ b/hypr/.config/hypr/hyprland.conf @@ -263,27 +263,6 @@ bind = CTRL ALT, END, exec, $term --class btop -T btop -e btop # bind = ALT, down, exec, $scriptsDir/changeWallpaperDesktop - -# Variety -# trash wallpaper -bind = ALT, t, exec, variety -t -# next wallpaper -bind = ALT, n, exec, variety -n -bind = ALT SHIFT, n, exec, variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt) && ~/.config/hypr/scripts/statusbar & -bind = ALT, right, exec, variety -n -# previous wallpaper -bind = ALT, p, exec, variety -p -bind = ALT SHIFT, p, exec, variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt) && ~/.config/hypr/scripts/statusbar & -bind = ALT, left, exec, variety -p -# favorite wallpaper -bind = ALT, f, exec, variety -f -# pause wallpaper -bind = ALT, up, exec, variety --toggle-pause -# pause wallpaper + wal -bind = ALT SHIFT, up, exec, variety --toggle-pause && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt) && ~/.config/hypr/scripts/statusbar & -# resume wallpaper -bind = ALT, down, exec, variety --resume - # effect bind = ALT, g, exec, $scriptsDir/glassmorphismToggle diff --git a/nvim/.config/nvim/lua/plugins/misc.lua b/nvim/.config/nvim/lua/plugins/misc.lua index 7266a01..200e2df 100644 --- a/nvim/.config/nvim/lua/plugins/misc.lua +++ b/nvim/.config/nvim/lua/plugins/misc.lua @@ -27,7 +27,7 @@ return { -- VimTeX configuration goes here vim.g.vimtex_view_method = "zathura" -- Set LuaLaTeX as the default compiler - vim.g.vimtex_compiler_method = "lualatex" + vim.g.vimtex_compiler_method = "lualatex -shell-escape" end, }, diff --git a/scripts/.scripts/mem.sh b/scripts/.scripts/mem.sh new file mode 100755 index 0000000..284859c --- /dev/null +++ b/scripts/.scripts/mem.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +pidof $1 | xargs -I {} ps -p {} -o rss | tail -n +2 | paste -sd'+' | bc | awk '{print $1/1024 "MB"}' @@ -136,8 +136,9 @@ export PATH="$PATH:/opt/usr/bin/" export PATH="$PATH:$HOME/.scripts/" export PATH="$PATH:$HOME/.cache/lm-studio/bin" export PATH="$PATH:$HOME/.cargo/bin/" -# export PATH="$PATH:/opt/android-sdk/tools/bin" -export ANDROID_HOME="/opt/android-sdk" +export ANDROID_HOME="$HOME/Android/sdk" +export PATH=$PATH:$ANDROID_HOME/emulator +export PATH=$PATH:$ANDROID_HOME/platform-tools # Useful functions @@ -167,6 +168,16 @@ ex () fi } +# Makes yazi change the cwd automatically when exiting +function y() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + builtin cd -- "$cwd" + fi + rm -f -- "$tmp" +} + # Interactive cd fcd() { |
