diff --git a/.config/nvim/lua/custom/autocmds.lua b/.config/nvim/lua/custom/autocmds.lua index 67def0c..38539f1 100644 --- a/.config/nvim/lua/custom/autocmds.lua +++ b/.config/nvim/lua/custom/autocmds.lua @@ -2,14 +2,14 @@ local autocmd = vim.api.nvim_create_autocmd -- Ibus typing local ibus_cur = "xkb:us::eng" autocmd("InsertEnter", { - pattern = { "*.tex", "*.md" }, + pattern = { "*.tex", "*.md", "*.txt" }, callback = function() os.execute("ibus engine " .. ibus_cur) end, }) autocmd("InsertLeave", { - pattern = { "*.tex", "*.md" }, + pattern = { "*.tex", "*.md", "*.txt" }, callback = function() local f = io.popen("ibus engine", "r") if f then @@ -27,7 +27,7 @@ local function sed(from, to, fname) end -- reloads kitty for current focused window only -local function liveReload_xresources() +local function liveReloadKitty() vim.cmd( string.format "silent !kill -s SIGUSR1 $(xprop -id $(xdotool getwindowfocus) | grep '_NET_WM_PID' | grep -oE '[[:digit:]]*$')" ) @@ -37,8 +37,8 @@ autocmd({ "BufNewFile", "BufRead" }, { callback = function(ctx) -- remove terminal padding sed("window_margin_width 20", "window_margin_width 0", "~/.config/kitty/kitty.conf") - liveReload_xresources() - -- revert xresources change but dont reload it + liveReloadKitty() + -- revert kitty margin width change but dont reload it sed("window_margin_width 0", "window_margin_width 20", "~/.config/kitty/kitty.conf") vim.api.nvim_del_autocmd(ctx.id) end, @@ -48,7 +48,7 @@ autocmd({ "BufNewFile", "BufRead" }, { autocmd("VimLeavePre", { callback = function() sed("window_margin_width 0", "window_margin_width 20", "~/.config/kitty/kitty.conf") - liveReload_xresources() + liveReloadKitty() end, }) @@ -67,13 +67,6 @@ autocmd("FileChangedShellPost", { end, }) -autocmd("FileType", { - pattern = "cpp", - callback = function() - vim.cmd(string.format "silent !ulimit -s unlimited") - end, -}) - autocmd("BufRead", { pattern = { "*.inp", "*.out" }, callback = function() diff --git a/.zshrc b/.zshrc index 9b0b910..4b2ee88 100644 --- a/.zshrc +++ b/.zshrc @@ -56,3 +56,5 @@ source $(dirname $(gem which colorls))/tab_complete.sh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh source /usr/share/z/z.sh +ulimit -s unlimited + diff --git a/bin/update-dotfiles b/bin/update-dotfiles index 6407a73..09529b3 100755 --- a/bin/update-dotfiles +++ b/bin/update-dotfiles @@ -11,3 +11,7 @@ for f in "${needUpdate[@]}"; do rm -rf "${dotfilesPath}/${f}" mkdir -p "$(dirname "${dotfilesPath}/${f}")" && cp -r "$HOME/${f}" "${dotfilesPath}/${f}" done + + +# List all installed packages +yay -Qeqa > "${dotfilesPath}/packages.txt" diff --git a/packages.txt b/packages.txt new file mode 100644 index 0000000..db8d7f9 --- /dev/null +++ b/packages.txt @@ -0,0 +1,222 @@ +amd-ucode +amf-amdgpu-pro +android-tools +anki +asciidoc +auto-cpufreq +autoconf +automake +base +betterdiscord-installer +binutils +bison +blueman +bluez +bluez-utils +brightnessctl +bspwm +btop +cava +clang +cmake +cmatrix +cowsay +cuda +cudnn +dhcpcd +discord +dmenu +dosfstools +dunst +efibootmgr +eww-git +fakeroot +fd +feh +file +findutils +firefox +flex +fortune-mod +gawk +gcc +gd +gettext +git +gnome-keyring +gnu-netcat +google-chrome +grep +groff +grub +gzip +i3lock-color +ibus +ibus-bamboo +imagemagick +jdk-openjdk +jre-openjdk +kitty +libconfig +libev +libtool +libva-mesa-driver +libva-utils +linux +linux-firmware +linux-headers +lsof +lxappearance +m4 +maim +make +mars-mips +maven +mesa-vdpau +meson +miniconda3 +mpv +mtools +nano +nbfc-linux +neofetch +neovim +nerd-fonts-fira-code +nerd-fonts-jetbrains-mono +nerd-fonts-sarasa-mono +network-manager-applet +networkmanager +ngrok +noto-fonts +noto-fonts-cjk +noto-fonts-emoji +noto-fonts-extra +npm +ntp +nvidia +nvidia-settings +nvidia-utils +nvtop +nyx +obsidian +opendoas +openmp +openssh +os-prober +p7zip +pacman +pandoc +papirus-icon-theme +patch +pavucontrol +pinta +pkgconf +playerctl +polybar +pomo +poppler +postman-bin +pulseaudio +pulseaudio-bluetooth +ranger +rar +ripgrep +rofi +rofi-calc +rofi-emoji +ruby +rust-analyzer +rxfetch +screenkey +sed +shellcheck +simplescreenrecorder +spicetify-cli +spotify +sudo +sxhkd +teams +teamviewer +texinfo +tokei +tor +torbrowser-launcher +tree +ttf-caladea +ttf-carlito +ttf-croscore +ttf-dejavu +ttf-droid +ttf-fira-code +ttf-font-awesome +ttf-font-awesome-4 +ttf-iosevka-nerd +ttf-ms-win10-auto +ttf-ubuntu-font-family +ueberzug +usb_modeswitch +usbutils +uthash +vim +visual-studio-code-bin +vlc +which +xampp +xclip +xdotool +xf86-video-amdgpu +xf86-video-vesa +xorg-bdftopcf +xorg-docs +xorg-font-util +xorg-fonts-100dpi +xorg-fonts-75dpi +xorg-fonts-encodings +xorg-iceauth +xorg-mkfontscale +xorg-server +xorg-server-common +xorg-server-devel +xorg-server-xephyr +xorg-server-xnest +xorg-server-xvfb +xorg-sessreg +xorg-setxkbmap +xorg-smproxy +xorg-x11perf +xorg-xauth +xorg-xbacklight +xorg-xcmsdb +xorg-xcursorgen +xorg-xdpyinfo +xorg-xdriinfo +xorg-xev +xorg-xgamma +xorg-xhost +xorg-xinit +xorg-xinput +xorg-xkbcomp +xorg-xkbevd +xorg-xkbutils +xorg-xkill +xorg-xlsatoms +xorg-xlsclients +xorg-xmodmap +xorg-xpr +xorg-xprop +xorg-xrandr +xorg-xrdb +xorg-xrefresh +xorg-xset +xorg-xsetroot +xorg-xvinfo +xorg-xwayland +xorg-xwd +xorg-xwininfo +xorg-xwud +yay +z +zathura +zathura-pdf-mupdf +zoom +zsh